feat: add content review flow
This commit is contained in:
@@ -1003,6 +1003,27 @@ definitions:
|
||||
description: Likes 累计点赞数。
|
||||
type: integer
|
||||
type: object
|
||||
dto.SuperContentBatchReviewForm:
|
||||
properties:
|
||||
action:
|
||||
description: Action 审核动作(approve/reject)。
|
||||
enum:
|
||||
- approve
|
||||
- reject
|
||||
type: string
|
||||
content_ids:
|
||||
description: ContentIDs 待审核内容ID列表。
|
||||
items:
|
||||
type: integer
|
||||
minItems: 1
|
||||
type: array
|
||||
reason:
|
||||
description: Reason 审核说明(驳回时填写,便于作者修正)。
|
||||
type: string
|
||||
required:
|
||||
- action
|
||||
- content_ids
|
||||
type: object
|
||||
dto.SuperContentReviewForm:
|
||||
properties:
|
||||
action:
|
||||
@@ -2138,6 +2159,28 @@ paths:
|
||||
summary: Review content
|
||||
tags:
|
||||
- Content
|
||||
/super/v1/contents/review/batch:
|
||||
post:
|
||||
consumes:
|
||||
- application/json
|
||||
description: Batch review contents
|
||||
parameters:
|
||||
- description: Batch review form
|
||||
in: body
|
||||
name: form
|
||||
required: true
|
||||
schema:
|
||||
$ref: '#/definitions/dto.SuperContentBatchReviewForm'
|
||||
produces:
|
||||
- application/json
|
||||
responses:
|
||||
"200":
|
||||
description: Reviewed
|
||||
schema:
|
||||
type: string
|
||||
summary: Batch review contents
|
||||
tags:
|
||||
- Content
|
||||
/super/v1/coupons:
|
||||
get:
|
||||
consumes:
|
||||
|
||||
Reference in New Issue
Block a user