Skip to content

Conversation

@DHkimgit
Copy link
Collaborator

🔍 개요


🚀 주요 변경 내용

1. 분실물 게시글 동적 조회 GET API에 여러 동적 필터가 추가

API 설명

image
  • sort, author, category 조건 추가

2. “찾는중” 상태인 분실물 게시글 개수 반환 GET API 추가

API 설명

  • 분실물 게시판에서 현재까지 “찾는중” 상태인 게시글의 총 개수를 조회하는 API
  • 인증 없이도 조회 가능
  • 삭제된 게시글은 제외됨

요청 정보

  • Method: GET
  • URL: /articles/lost-item/notfound/count
  • Path Variable: 없음
  • Request Body: 없음
  • Authorization: 없음

응답 예시(200)

{
  "not_found_count": 2
}

3. 분실물 게시글 관련 API 엔트포인트 컨트롤러 분리

💬 참고 사항


✅ Checklist (완료 조건)

  • 코드 스타일 가이드 준수
  • 테스트 코드 포함됨
  • Reviewers / Assignees / Labels 지정 완료
  • 보안 및 민감 정보 검증 (API 키, 환경 변수, 개인정보 등)

@DHkimgit DHkimgit self-assigned this Jan 13, 2026
@DHkimgit DHkimgit added 기능 새로운 기능을 개발합니다. Team Campus 캠퍼스 팀에서 작업할 이슈입니다 labels Jan 13, 2026
@github-actions
Copy link

github-actions bot commented Jan 13, 2026

Unit Test Results

673 tests   670 ✔️  1m 15s ⏱️
165 suites      3 💤
165 files        0

Results for commit 16816e8.

♻️ This comment has been updated with latest results.

Copy link
Contributor

@dh2906 dh2906 left a comment

Choose a reason for hiding this comment

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

고생하셨습니다!

Comment on lines 93 to 94
@Parameter(description = "게시글 제목")
@RequestParam(required = false) String query,
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
@Parameter(description = "게시글 제목")
@RequestParam(required = false) String query,
@Parameter(description = "게시글 제목")
@RequestParam(required = false) String title,

명세에 게시글 제목이라 되어있으니 네이밍을 수정하는건 어떤가요??

Comment on lines 120 to 125
@Operation(summary = "분실물 게시글 등록")
@PostMapping("/lost-item")
ResponseEntity<LostItemArticleResponse> createLostItemArticle(
@Auth(permit = {STUDENT, COUNCIL}) Integer userId,
@RequestBody @Valid LostItemArticlesRequest lostItemArticlesRequest
);
Copy link
Contributor

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})으로 되어있어서 확인 부탁드립니당

Comment on lines 136 to 141
@Operation(summary = "분실물 게시글 삭제")
@DeleteMapping("/lost-item/{id}")
ResponseEntity<Void> deleteLostItemArticle(
@PathVariable("id") Integer articleId,
@Auth(permit = {STUDENT, COUNCIL}) Integer councilId
);
Copy link
Contributor

Choose a reason for hiding this comment

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

여기도 권한 허용이 달라 확인 부탁드립니다!

Comment on lines 36 to 38
@Service
@RequiredArgsConstructor
public class LostItemArticleService {
Copy link
Contributor

Choose a reason for hiding this comment

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

@Transactional(readOnly=true)가 빠진 것 같아요

@DHkimgit DHkimgit merged commit 770897f into develop Jan 16, 2026
5 checks passed
@DHkimgit DHkimgit deleted the feat/2129-lostitem-list branch January 16, 2026 04:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Team Campus 캠퍼스 팀에서 작업할 이슈입니다 기능 새로운 기능을 개발합니다.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[캠퍼스] 분실물 API Controller 분리 및 분실물 조회 API 필터 추가 外

4 participants