🎨 新增支付动态配置&优化支付回调&新增三方支付
This commit is contained in:
@@ -20,10 +20,11 @@ type GetOrderList struct {
|
||||
}
|
||||
|
||||
type PayReq struct {
|
||||
UserId uint64 `json:"user_id"` // 用户ID
|
||||
OrderId uint `json:"order_id"`
|
||||
Mode string `json:"mode"` // h5 jsapi
|
||||
WxCode string `json:"wx_code"`
|
||||
PayMethod int `json:"pay_method" vd:"$>0; msg:'参数不能为空'"`
|
||||
OrderNo string `json:"order_no" vd:"@:len($)>0; msg:'订单编号参数不能为空'"`
|
||||
UserId uint64 `json:"user_id"` // 用户ID
|
||||
OrderId uint `json:"order_id"` // 订单ID
|
||||
Mode string `json:"mode"` // 支付模式: h5, jsapi, alipay, wxpay
|
||||
PayCode string `json:"pay_code"` // 支付配置编码(从数据库获取)
|
||||
WxCode string `json:"wx_code"` // 微信授权码
|
||||
PayMethod int `json:"pay_method" vd:"$>0; msg:'参数不能为空'"` // 支付方式
|
||||
OrderNo string `json:"order_no" vd:"@:len($)>0; msg:'订单编号参数不能为空'"` // 订单编号
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user