feat: 完善手动派单后台操作
This commit is contained in:
@@ -52,7 +52,11 @@ type TradeOrderListModel struct {
|
||||
UnfrozenAt *gtime.Time `json:"unfrozenAt"`
|
||||
CreatedAt *gtime.Time `json:"createdAt"`
|
||||
ApprovalStatus int `json:"approvalStatus"`
|
||||
PaymentStatus string `json:"paymentStatus"`
|
||||
CanMatch bool `json:"canMatch"`
|
||||
CanChangeAmount bool `json:"canChangeAmount"`
|
||||
CanForcePay bool `json:"canForcePay"`
|
||||
CanFreeze bool `json:"canFreeze"`
|
||||
CanReview bool `json:"canReview"`
|
||||
CanApply bool `json:"canApply"`
|
||||
CanExecute bool `json:"canExecute"`
|
||||
@@ -111,6 +115,20 @@ type TradeOrderMatchInp struct {
|
||||
|
||||
func (in *TradeOrderMatchInp) Filter(ctx context.Context) error { return nil }
|
||||
|
||||
type TradeOrderUpdateAmountInp struct {
|
||||
Id uint64 `json:"id" v:"required|min:1#订单ID不能为空|订单ID不能为空"`
|
||||
Amount string `json:"amount" v:"required#更改金额不能为空"`
|
||||
Quantity uint `json:"quantity" v:"required|min:1|max:999#更改数量不能为空|更改数量最少为1|更改数量不能超过999"`
|
||||
}
|
||||
|
||||
func (in *TradeOrderUpdateAmountInp) Filter(ctx context.Context) error { return nil }
|
||||
|
||||
type TradeOrderManualActionInp struct {
|
||||
Id uint64 `json:"id" v:"required|min:1#订单ID不能为空|订单ID不能为空"`
|
||||
}
|
||||
|
||||
func (in *TradeOrderManualActionInp) Filter(ctx context.Context) error { return nil }
|
||||
|
||||
type FinanceApprovalModel struct {
|
||||
ApprovalId uint64 `json:"approvalId"`
|
||||
ApprovalNo string `json:"approvalNo"`
|
||||
|
||||
Reference in New Issue
Block a user