Skip to content
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

Merged
merged 23 commits into from
Sep 21, 2023
Merged

[FEATURE] 관리자페이지 초안 작성 #41

merged 23 commits into from
Sep 21, 2023

Conversation

Romangduck
Copy link
Collaborator

No description provided.

Copy link
Owner

@donsonioc2010 donsonioc2010 left a 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("이미 승인된 요청입니다.");
Copy link
Owner

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에서 핸들링이 되지 않습니다

Domain/src/main/resources/data.sql Outdated Show resolved Hide resolved
Comment on lines 39 to 45
public String list(Model model) {
List<Picture> pictures = adminService.findAll();


model.addAttribute("pictures", pictures);
return "admin/list";
}
Copy link
Owner

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건 가져오는 방식으로 변경부탁드릴게요.

Copy link
Owner

@donsonioc2010 donsonioc2010 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

dz

@donsonioc2010 donsonioc2010 merged commit 8bcfa93 into dev Sep 21, 2023
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants