Files
lckt-server/model/app/request/order.go
2025-09-01 22:37:54 +08:00

30 lines
1.1 KiB
Go

package request
import common "git.echol.cn/loser/lckt/model/common/request"
type BalancePay struct {
UserId uint `json:"user_id" binding:"required"` // 用户ID
OrderNo string `json:"order_no" binding:"required"` // 订单号
OrderId uint `json:"order_id" binding:"required"` // 订单ID
}
type GetOrderList struct {
common.PageInfo
Status int `json:"status" form:"status"` // 订单状态
Title string `json:"title" form:"title"` // 订单标题
Name string `json:"name" form:"name"` // 订单名称
PayType int `json:"pay_type" form:"pay_type"`
OrderType int `json:"order_type" form:"order_type"`
StartTime string `json:"start_time" form:"start_time"`
EndTime string `json:"end_time" form:"end_time"`
}
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:'订单编号参数不能为空'"`
}