-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[FEATURE] 관리자페이지 초안 작성 #41
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
변경해주세요
picture.setPictureStatus(PictureStatus.AFTER_APPROVE); | ||
pictureRepository.save(picture); | ||
} else { | ||
throw new IllegalStateException("이미 승인된 요청입니다."); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Exception을 Custom하게 제작한 다음에 해당 Exception을 사용해주세요.
Java의 기본 Exception은 Advice에서 핸들링이 되지 않습니다
Api/src/main/java/picasso/server/api/admin/controller/AdminController.java
Outdated
Show resolved
Hide resolved
Api/src/main/java/picasso/server/api/admin/controller/AdminController.java
Outdated
Show resolved
Hide resolved
public String list(Model model) { | ||
List<Picture> pictures = adminService.findAll(); | ||
|
||
|
||
model.addAttribute("pictures", pictures); | ||
return "admin/list"; | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
page형식으로 1페이지 10건, 2페이지 11-20까지 10건 가져오는 방식으로 변경부탁드릴게요.
# Conflicts: # Domain/src/main/resources/data.sql
approvePicture 메서드에 isSessionUserAdmin 주석처리
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
dz
No description provided.