[Feature] 공지사항 목록/상세 API 구현 #78

Closed
opened 2026-02-10 04:31:34 +00:00 by seonkyu.kim · 0 comments
Owner

📋 개요

API_Specification.md §1.1~1.2에 정의된 공지사항 목록/상세 API를 구현한다.

  • POST /v1/in/public/notice/list — 공지사항 목록 (페이징)
  • POST /v1/in/public/notice/info — 공지사항 상세

📐 API 명세

목록 API (PUBLIC_01)

  • Request: { page, size } (선택, 기본 1/20)
  • Response: { items: [{ notice_id, title, is_important, created_at }], pagination: { page, size, total_count, total_pages } }
  • 활성화된 공지만 조회, 상단 고정(IsPinned) 우선 정렬

상세 API (PUBLIC_02)

  • Request: { notice_id } (필수)
  • Response: { notice_id, title, content, is_important, created_at }

체크리스트

  • SPMS.Application/DTOs/Notice/ — Request/Response DTO 생성
  • SPMS.Domain/Interfaces/INoticeRepository.cs — Repository 인터페이스
  • SPMS.Infrastructure/Persistence/Repositories/NoticeRepository.cs — Repository 구현
  • SPMS.Application/Interfaces/INoticeService.cs — Service 인터페이스
  • SPMS.Application/Services/NoticeService.cs — Service 구현
  • SPMS.API/Controllers/NoticeController.cs — Controller 구현
  • DI 등록 (Application + Infrastructure)
  • 빌드 성공 확인
## 📋 개요 API_Specification.md §1.1~1.2에 정의된 공지사항 목록/상세 API를 구현한다. - `POST /v1/in/public/notice/list` — 공지사항 목록 (페이징) - `POST /v1/in/public/notice/info` — 공지사항 상세 ## 📐 API 명세 ### 목록 API (PUBLIC_01) - Request: `{ page, size }` (선택, 기본 1/20) - Response: `{ items: [{ notice_id, title, is_important, created_at }], pagination: { page, size, total_count, total_pages } }` - 활성화된 공지만 조회, 상단 고정(IsPinned) 우선 정렬 ### 상세 API (PUBLIC_02) - Request: `{ notice_id }` (필수) - Response: `{ notice_id, title, content, is_important, created_at }` ## ✅ 체크리스트 - [x] `SPMS.Application/DTOs/Notice/` — Request/Response DTO 생성 - [x] `SPMS.Domain/Interfaces/INoticeRepository.cs` — Repository 인터페이스 - [x] `SPMS.Infrastructure/Persistence/Repositories/NoticeRepository.cs` — Repository 구현 - [x] `SPMS.Application/Interfaces/INoticeService.cs` — Service 인터페이스 - [x] `SPMS.Application/Services/NoticeService.cs` — Service 구현 - [x] `SPMS.API/Controllers/NoticeController.cs` — Controller 구현 - [x] DI 등록 (Application + Infrastructure) - [x] 빌드 성공 확인
seonkyu.kim added the
Priority
Low
Status
Available
Type
Feature
labels 2026-02-10 04:31:41 +00:00
seonkyu.kim self-assigned this 2026-02-10 04:31:44 +00:00
seonkyu.kim added this to the Phase 2-2: Public & 디바이스 & 파일 API milestone 2026-02-10 04:31:46 +00:00
seonkyu.kim added
Status
In Progress
and removed
Status
Available
labels 2026-02-10 04:36:09 +00:00
seonkyu.kim added
Status
Done
and removed
Status
In Progress
labels 2026-02-10 04:38:40 +00:00
Sign in to join this conversation.
No description provided.