Skip to content

Commit 7cf81ff

Browse files
committed
Merge branch 'feat/#372' into develop
2 parents 225656b + 3e8f429 commit 7cf81ff

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

src/reports/routes/report.route.ts

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ router.post('/', authenticateJwt, postReport); // 특정 프롬프트에 대한
8888
* description: |
8989
* 커서 기반 페이지네이션(cursor-based-pagination) 사용.
9090
* - `cursor`는 이전 요청에서 받은 마지막 목록의 ID를 의미하며, 이를 기준으로 이후 데이터를 조회.
91-
* - 첫 요청 시에는 `cursor`를 생략하여 최신 리뷰부터 조회.
91+
* - 첫 요청 시에는 `cursor`를 생략하여 최신 신고부터 조회.
9292
* - `has_more` 속성으로 더 불러올 데이터가 있는지 미리 확인 가능.
9393
* tags: [Report]
9494
* security:
@@ -100,16 +100,16 @@ router.post('/', authenticateJwt, postReport); // 특정 프롬프트에 대한
100100
* schema:
101101
* type: integer
102102
* description: >
103-
* 마지막으로 조회된 ID.
104-
* 처음 요청 시 생략 가능.
103+
* 마지막으로 조회된 ID.
104+
* 처음 요청 시 생략 가능.
105105
* 예: 첫 요청에서 id=80~70까지 받았다면 다음 요청 시 `cursor=70`
106106
* - in: query
107107
* name: limit
108108
* required: false
109109
* schema:
110110
* type: integer
111111
* default: 10
112-
* description: 가져올 리뷰 수 (기본값 10)
112+
* description: 가져올 신고 수 (기본값 10)
113113
* responses:
114114
* 200:
115115
* description: 신고된 프롬프트 목록을 성공적으로 불러왔습니다.
@@ -154,6 +154,10 @@ router.post('/', authenticateJwt, postReport); // 특정 프롬프트에 대한
154154
* has_more:
155155
* type: boolean
156156
* example: false
157+
* total_count:
158+
* type: integer
159+
* example: 57
160+
* description: 시스템에 존재하는 전체 신고 수
157161
* statusCode:
158162
* type: integer
159163
* example: 200
@@ -163,6 +167,7 @@ router.post('/', authenticateJwt, postReport); // 특정 프롬프트에 대한
163167
* description: 서버 오류
164168
*/
165169

170+
166171
router.get('/', authenticateJwt, getReportedPrompts); // 신고 당한 프롬프트 목록 조회(관리자용)
167172
/**
168173
* @swagger

0 commit comments

Comments
 (0)