feat: add payout account review flow
This commit is contained in:
@@ -118,6 +118,16 @@ definitions:
|
||||
- OrderTypeContentPurchase
|
||||
- OrderTypeRecharge
|
||||
- OrderTypeWithdrawal
|
||||
consts.PayoutAccountStatus:
|
||||
enum:
|
||||
- pending
|
||||
- approved
|
||||
- rejected
|
||||
type: string
|
||||
x-enum-varnames:
|
||||
- PayoutAccountStatusPending
|
||||
- PayoutAccountStatusApproved
|
||||
- PayoutAccountStatusRejected
|
||||
consts.Role:
|
||||
enum:
|
||||
- user
|
||||
@@ -940,6 +950,19 @@ definitions:
|
||||
realname:
|
||||
description: Realname 收款人姓名。
|
||||
type: string
|
||||
review_reason:
|
||||
description: ReviewReason 审核说明/驳回原因。
|
||||
type: string
|
||||
reviewed_at:
|
||||
description: ReviewedAt 审核时间(RFC3339)。
|
||||
type: string
|
||||
status:
|
||||
allOf:
|
||||
- $ref: '#/definitions/consts.PayoutAccountStatus'
|
||||
description: Status 审核状态(pending/approved/rejected)。
|
||||
status_description:
|
||||
description: StatusDescription 审核状态描述(用于展示)。
|
||||
type: string
|
||||
type:
|
||||
description: Type 账户类型(bank/alipay)。
|
||||
type: string
|
||||
@@ -2100,6 +2123,22 @@ definitions:
|
||||
realname:
|
||||
description: Realname 收款人姓名。
|
||||
type: string
|
||||
review_reason:
|
||||
description: ReviewReason 审核说明/驳回原因。
|
||||
type: string
|
||||
reviewed_at:
|
||||
description: ReviewedAt 审核时间(RFC3339)。
|
||||
type: string
|
||||
reviewed_by:
|
||||
description: ReviewedBy 审核操作者ID。
|
||||
type: integer
|
||||
status:
|
||||
allOf:
|
||||
- $ref: '#/definitions/consts.PayoutAccountStatus'
|
||||
description: Status 审核状态。
|
||||
status_description:
|
||||
description: StatusDescription 审核状态描述(用于展示)。
|
||||
type: string
|
||||
tenant_code:
|
||||
description: TenantCode 租户编码。
|
||||
type: string
|
||||
@@ -2122,6 +2161,20 @@ definitions:
|
||||
description: Username 用户名。
|
||||
type: string
|
||||
type: object
|
||||
dto.SuperPayoutAccountReviewForm:
|
||||
properties:
|
||||
action:
|
||||
description: Action 审核动作(approve/reject)。
|
||||
enum:
|
||||
- approve
|
||||
- reject
|
||||
type: string
|
||||
reason:
|
||||
description: Reason 审核说明(驳回时必填)。
|
||||
type: string
|
||||
required:
|
||||
- action
|
||||
type: object
|
||||
dto.SuperReportExportForm:
|
||||
properties:
|
||||
end_at:
|
||||
@@ -4266,6 +4319,34 @@ paths:
|
||||
summary: Remove payout account
|
||||
tags:
|
||||
- Finance
|
||||
/super/v1/payout-accounts/{id}/review:
|
||||
post:
|
||||
consumes:
|
||||
- application/json
|
||||
description: Review payout account across tenants
|
||||
parameters:
|
||||
- description: Payout account ID
|
||||
format: int64
|
||||
in: path
|
||||
name: id
|
||||
required: true
|
||||
type: integer
|
||||
- description: Review form
|
||||
in: body
|
||||
name: form
|
||||
required: true
|
||||
schema:
|
||||
$ref: '#/definitions/dto.SuperPayoutAccountReviewForm'
|
||||
produces:
|
||||
- application/json
|
||||
responses:
|
||||
"200":
|
||||
description: Reviewed
|
||||
schema:
|
||||
type: string
|
||||
summary: Review payout account
|
||||
tags:
|
||||
- Finance
|
||||
/super/v1/reports/export:
|
||||
post:
|
||||
consumes:
|
||||
|
||||
Reference in New Issue
Block a user