-
Notifications
You must be signed in to change notification settings - Fork 2
feat: 분실물 API Controller 분리 및 분실물 조회 API 필터 추가 #2130
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
Conversation
dh2906
left a comment
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.
고생하셨습니다!
| @Parameter(description = "게시글 제목") | ||
| @RequestParam(required = false) String query, |
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.
| @Parameter(description = "게시글 제목") | |
| @RequestParam(required = false) String query, | |
| @Parameter(description = "게시글 제목") | |
| @RequestParam(required = false) String title, |
명세에 게시글 제목이라 되어있으니 네이밍을 수정하는건 어떤가요??
| @Operation(summary = "분실물 게시글 등록") | ||
| @PostMapping("/lost-item") | ||
| ResponseEntity<LostItemArticleResponse> createLostItemArticle( | ||
| @Auth(permit = {STUDENT, COUNCIL}) Integer userId, | ||
| @RequestBody @Valid LostItemArticlesRequest lostItemArticlesRequest | ||
| ); |
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.
구현체와 권한 허용이 다르게 나와있어요!
구현체에서는 @Auth(permit = {GENERAL, STUDENT, COUNCIL})으로 되어있어서 확인 부탁드립니당
| @Operation(summary = "분실물 게시글 삭제") | ||
| @DeleteMapping("/lost-item/{id}") | ||
| ResponseEntity<Void> deleteLostItemArticle( | ||
| @PathVariable("id") Integer articleId, | ||
| @Auth(permit = {STUDENT, COUNCIL}) Integer councilId | ||
| ); |
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.
여기도 권한 허용이 달라 확인 부탁드립니다!
| @Service | ||
| @RequiredArgsConstructor | ||
| public class LostItemArticleService { |
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.
@Transactional(readOnly=true)가 빠진 것 같아요
🔍 개요
🚀 주요 변경 내용
1. 분실물 게시글 동적 조회 GET API에 여러 동적 필터가 추가
API 설명
2. “찾는중” 상태인 분실물 게시글 개수 반환 GET API 추가
API 설명
요청 정보
응답 예시(200)
{ "not_found_count": 2 }3. 분실물 게시글 관련 API 엔트포인트 컨트롤러 분리
💬 참고 사항
✅ Checklist (완료 조건)