Files
quyun-v2/backend/app/http/super/v1/dto/super_payout.go

75 lines
2.5 KiB
Go
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
package dto
import (
"quyun/v2/app/requests"
"quyun/v2/pkg/consts"
)
// SuperPayoutAccountListFilter 超管结算账户列表过滤条件。
type SuperPayoutAccountListFilter struct {
requests.Pagination
// TenantID 租户ID过滤精确匹配
TenantID *int64 `query:"tenant_id"`
// TenantCode 租户编码过滤(模糊匹配)。
TenantCode *string `query:"tenant_code"`
// TenantName 租户名称过滤(模糊匹配)。
TenantName *string `query:"tenant_name"`
// UserID 用户ID过滤精确匹配
UserID *int64 `query:"user_id"`
// Username 用户名过滤(模糊匹配)。
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
CreatedAtTo *string `query:"created_at_to"`
}
// SuperPayoutAccountItem 超管结算账户列表项。
type SuperPayoutAccountItem struct {
// ID 结算账户ID。
ID int64 `json:"id"`
// TenantID 租户ID。
TenantID int64 `json:"tenant_id"`
// TenantCode 租户编码。
TenantCode string `json:"tenant_code"`
// TenantName 租户名称。
TenantName string `json:"tenant_name"`
// UserID 用户ID。
UserID int64 `json:"user_id"`
// Username 用户名。
Username string `json:"username"`
// Type 账户类型。
Type string `json:"type"`
// Name 账户名称/开户行。
Name string `json:"name"`
// Account 收款账号。
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"`
}