feat: add payout account review flow
This commit is contained in:
@@ -1,6 +1,9 @@
|
||||
package dto
|
||||
|
||||
import "quyun/v2/app/requests"
|
||||
import (
|
||||
"quyun/v2/app/requests"
|
||||
"quyun/v2/pkg/consts"
|
||||
)
|
||||
|
||||
// SuperPayoutAccountListFilter 超管结算账户列表过滤条件。
|
||||
type SuperPayoutAccountListFilter struct {
|
||||
@@ -17,6 +20,8 @@ type SuperPayoutAccountListFilter struct {
|
||||
Username *string `query:"username"`
|
||||
// Type 账户类型过滤(bank/alipay)。
|
||||
Type *string `query:"type"`
|
||||
// Status 审核状态过滤(pending/approved/rejected)。
|
||||
Status *consts.PayoutAccountStatus `query:"status"`
|
||||
// CreatedAtFrom 创建时间起始(RFC3339)。
|
||||
CreatedAtFrom *string `query:"created_at_from"`
|
||||
// CreatedAtTo 创建时间结束(RFC3339)。
|
||||
@@ -45,8 +50,25 @@ type SuperPayoutAccountItem struct {
|
||||
Account string `json:"account"`
|
||||
// Realname 收款人姓名。
|
||||
Realname string `json:"realname"`
|
||||
// Status 审核状态。
|
||||
Status consts.PayoutAccountStatus `json:"status"`
|
||||
// StatusDescription 审核状态描述(用于展示)。
|
||||
StatusDescription string `json:"status_description"`
|
||||
// ReviewedBy 审核操作者ID。
|
||||
ReviewedBy int64 `json:"reviewed_by"`
|
||||
// ReviewedAt 审核时间(RFC3339)。
|
||||
ReviewedAt string `json:"reviewed_at"`
|
||||
// ReviewReason 审核说明/驳回原因。
|
||||
ReviewReason string `json:"review_reason"`
|
||||
// CreatedAt 创建时间(RFC3339)。
|
||||
CreatedAt string `json:"created_at"`
|
||||
// UpdatedAt 更新时间(RFC3339)。
|
||||
UpdatedAt string `json:"updated_at"`
|
||||
}
|
||||
|
||||
type SuperPayoutAccountReviewForm struct {
|
||||
// Action 审核动作(approve/reject)。
|
||||
Action string `json:"action" validate:"required,oneof=approve reject"`
|
||||
// Reason 审核说明(驳回时必填)。
|
||||
Reason string `json:"reason"`
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user