feat: adjust manual and automatic order matching

This commit is contained in:
richjohnrambo
2026-10-18 20:17:17 +08:00
parent 48f304212e
commit ac152d2f10
7 changed files with 220 additions and 23 deletions
@@ -101,9 +101,6 @@ func (in *AppMemberEditInp) Filter(ctx context.Context) error {
if in.TradePassword != "" && len(in.TradePassword) < 6 {
return gerror.New("交易密码不能少于6位")
}
if in.AvailableAmount != nil && *in.AvailableAmount < 0 {
return gerror.New("账户余额不能小于0")
}
if !dict.HasOptionKey(consts.AppMemberRiskStatusOptions, in.RiskStatus) {
return gerror.New("风控状态不合法")
}
@@ -54,6 +54,7 @@ type TradeOrderListModel struct {
CreatedAt *gtime.Time `json:"createdAt"`
ApprovalStatus int `json:"approvalStatus"`
PaymentStatus string `json:"paymentStatus"`
ScheduledMatchAt string `json:"scheduledMatchAt"`
CanMatch bool `json:"canMatch"`
CanChangeAmount bool `json:"canChangeAmount"`
CanForcePay bool `json:"canForcePay"`