댓글 시스템 복구

This commit is contained in:
2026-04-07 12:44:24 +09:00
parent 2c0b5268fa
commit 6bac13006a
16 changed files with 1403 additions and 15 deletions

View File

@@ -48,6 +48,8 @@
- 홈 피드(`/`)는 `GET /api/tierlists/public?q=...`를 사용한다.
- `featuredTierLists`: 상단 추천 티어표
- `tierLists`: 추천 제외 최신 공개 티어표
- 저장된 티어표에는 댓글 스레드가 붙을 수 있다. 작성자 본인 편집 화면에서는 `작업 팁` 아래, 작성자가 아닌 사용자의 보기 전용 화면에서는 `preview` 보드 아래에서 같은 댓글 카드를 사용한다.
- 댓글 알림 메뉴는 좌측 사이드 `댓글 관리`로 노출하며, 읽지 않은 댓글이 하나라도 있으면 빨간 dot을 표시한다.
- 우측 패널
- 현재 화면 문맥에 맞는 설명, 빠른 액션, 계정 상태 같은 보조 정보를 배치한다.
- 에디터/관리자 세부 옵션은 후속 단계에서 이 패널로 점진 이관한다.
@@ -148,6 +150,25 @@
- `userId`: string
- `topicId`: string
- `createdAt`: number
- `tierListComments`
- `id`: string
- `tierListId`: string
- `authorId`: string
- `parentCommentId`: string
- `content`: string
- `createdAt`: number
- `updatedAt`: number
- 답글은 1단계까지만 허용한다.
- `commentNotifications`
- `id`: string
- `userId`: string
- `tierListId`: string
- `commentId`: string
- `actorUserId`: string
- `notificationType`: `tierlist_comment | comment_reply`
- `isRead`: boolean
- `readAt`: number
- `createdAt`: number
- `templateRequests`
- `id`: string
- `type`: string
@@ -200,6 +221,9 @@
- `GET /api/tierlists/me`
- `GET /api/tierlists/favorites/me`
- `GET /api/tierlists/:id`
- `GET /api/tierlists/:id/comments`
- `POST /api/tierlists/:id/comments`
- `DELETE /api/tierlists/:id/comments/:commentId`
- `POST /api/tierlists/:id/template-request`
- `POST /api/tierlists/:id/favorite`
- `DELETE /api/tierlists/:id/favorite`
@@ -216,6 +240,10 @@
- 해당 작성자의 공개 티어표 목록을 반환한다.
- `POST /api/users/:userId/follow`
- `DELETE /api/users/:userId/follow`
- 댓글 알림
- `GET /api/comments/inbox`
- `GET /api/comments/inbox/unread-count`
- `POST /api/comments/inbox/read`
- 관리자
- `POST /api/admin/templates`
- 요청 본문은 `slug`, `name`, `isPublic`, `thumbnailSrc`를 사용하고, 내부 `topics.id`는 서버가 자동 생성한다.