You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

52 lines
1.8 KiB

package request
type SearchTimeArea struct {
StartTime string `json:"start_time" form:"start_time"` // 开始时间
EndTime string `json:"end_time" form:"end_time"` // 结束时间
}
type BillSearch struct {
SearchTimeArea
Status int `json:"status" form:"status"` // 类型 1-支出 2-收入
Receipt int `json:"receipt" form:"receipt"` // 是否已到账 1-是 2-否
PageInfo
}
type WithdrawalSearch struct {
SearchTimeArea
CheckStatus string `json:"check_status" form:"check_status"` // 审核状态 0:待审核 1:审核通过 2:审核未通过
DealStatus string `json:"deal_status" form:"deal_status"` // 处理状态 0:待处理 1:已处理
PageInfo
}
type ExamineWithdrawal struct {
FlowNo string `json:"flow_no"` // 流水号
CheckStatus string `json:"check_status"` // 审核状态 1:审核通过 2:审核未通过
Remark string `json:"remark"` // 备注
}
type RetryWithdrawal struct {
FlowNo string `json:"flow_no"` // 流水号
}
type TransferWithdrawal struct {
FlowNo string `json:"flow_no"` // 流水号
AccountType string `json:"account_type"` // 账户类型 paypal
Account string `json:"account"` // 账户
AccountName string `json:"account_name"` // 账户名
Amount float64 `json:"amount"` // 金额
}
type TransferResult struct {
FlowNo string `json:"flow_no"` // 流水号
Status string `json:"status"` // 状态 1:成功 2:失败
Remark string `json:"remark"` // 备注
}
type BillFundSearch struct {
SearchTimeArea
PageInfo
UserID string `json:"user_id" form:"user_id"` // uuid
TransactionType int `json:"transaction_type" form:"transaction_type"` // 类型 1-支出 2-收入
Status int `json:"status" form:"status"` // 状态 1:进行中 2:已完成 3:已失败
}