-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
#327 fridge exception 구조 변경 및 assembler 삭제
- Loading branch information
Showing
92 changed files
with
1,005 additions
and
1,088 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,5 +6,5 @@ | |
@Data | ||
@Getter | ||
public class RemoveFoodRequest { | ||
private Long foodIdx; | ||
private Long foodId; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,5 +6,5 @@ | |
@Data | ||
@NoArgsConstructor | ||
public class WithDrawRequest { | ||
private Long userIdx; | ||
private Long userId; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
src/main/java/com/example/icebutler_server/admin/exception/FoodNotFoundException.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
package com.example.icebutler_server.admin.exception; | ||
|
||
public class FoodNotFoundException extends RuntimeException{ | ||
public FoodNotFoundException() {super("해당 idx를 가진 음식을 찾을 수 없습니다.");} | ||
public FoodNotFoundException() {super("해당 id를 가진 음식을 찾을 수 없습니다.");} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
22 changes: 10 additions & 12 deletions
22
src/main/java/com/example/icebutler_server/admin/service/AdminService.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,25 @@ | ||
package com.example.icebutler_server.admin.service; | ||
|
||
import com.example.icebutler_server.admin.dto.condition.SearchCond; | ||
import com.example.icebutler_server.admin.dto.request.*; | ||
import com.example.icebutler_server.admin.dto.request.JoinRequest; | ||
import com.example.icebutler_server.admin.dto.request.LoginRequest; | ||
import com.example.icebutler_server.admin.dto.request.ModifyFoodRequest; | ||
import com.example.icebutler_server.admin.dto.response.AdminResponse; | ||
import com.example.icebutler_server.admin.dto.response.LogoutResponse; | ||
import com.example.icebutler_server.admin.dto.response.SearchFoodsResponse; | ||
import com.example.icebutler_server.global.resolver.LoginStatus; | ||
import com.example.icebutler_server.admin.dto.response.PostAdminRes; | ||
import com.example.icebutler_server.admin.dto.response.SearchFoodsResponse; | ||
import com.example.icebutler_server.admin.dto.response.UserResponse; | ||
import com.example.icebutler_server.user.dto.response.MyProfileRes; | ||
import org.springframework.data.domain.Page; | ||
import org.springframework.data.domain.Pageable; | ||
|
||
public interface AdminService { | ||
AdminResponse join(JoinRequest request); | ||
PostAdminRes login(LoginRequest request); | ||
void logout(Long adminIdx); | ||
Page<UserResponse> search(Pageable pageable, String nickname, boolean active,Long adminIdx); | ||
void withdraw(Long userIdx,Long adminIdx, String authorization); | ||
void logout(Long adminId); | ||
Page<UserResponse> search(Pageable pageable, String nickname, boolean active, Long adminId); | ||
void withdraw(Long userId, Long adminId, String authorization); | ||
|
||
Page<SearchFoodsResponse> searchFoods(String cond, Pageable pageable,Long adminIdx); | ||
Page<SearchFoodsResponse> searchFoods(String cond, Pageable pageable, Long adminId); | ||
|
||
void modifyFood(Long foodIdx, ModifyFoodRequest request,Long adminIdx); | ||
void modifyFood(Long foodId, ModifyFoodRequest request, Long adminId); | ||
|
||
void removeFoods(Long foodIdx,Long adminIdx); | ||
void removeFoods(Long foodId, Long adminId); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
18 changes: 0 additions & 18 deletions
18
src/main/java/com/example/icebutler_server/alarm/dto/assembler/NotificationAssembler.java
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.