61 lines
2.0 KiB
Go
61 lines
2.0 KiB
Go
package tradeorder
|
|
|
|
import (
|
|
"hotgo/internal/model/input/form"
|
|
"hotgo/internal/model/input/sysin"
|
|
|
|
"github.com/gogf/gf/v2/frame/g"
|
|
)
|
|
|
|
type ListReq struct {
|
|
g.Meta `path:"/tradeOrder/list" method:"get" tags:"交易订单" summary:"交易订单列表"`
|
|
sysin.TradeOrderListInp
|
|
}
|
|
type ListRes struct {
|
|
form.PageRes
|
|
List []*sysin.TradeOrderListModel `json:"list"`
|
|
}
|
|
type ViewReq struct {
|
|
g.Meta `path:"/tradeOrder/view" method:"get" tags:"交易订单" summary:"交易订单详情"`
|
|
sysin.TradeOrderViewInp
|
|
}
|
|
type ViewRes struct{ *sysin.TradeOrderViewModel }
|
|
type MatchProductsReq struct {
|
|
g.Meta `path:"/tradeOrder/matchProducts" method:"get" tags:"交易订单" summary:"获取可匹配商品"`
|
|
sysin.TradeOrderMatchProductListInp
|
|
}
|
|
type MatchProductsRes struct {
|
|
form.PageRes
|
|
List []*sysin.TradeOrderMatchProductModel `json:"list"`
|
|
}
|
|
type MatchReq struct {
|
|
g.Meta `path:"/tradeOrder/match" method:"post" tags:"交易订单" summary:"人工匹配订单商品"`
|
|
sysin.TradeOrderMatchInp
|
|
}
|
|
type MatchRes struct{}
|
|
type UpdateAmountReq struct {
|
|
g.Meta `path:"/tradeOrder/updateAmount" method:"post" tags:"交易订单" summary:"更改手动订单金额"`
|
|
sysin.TradeOrderUpdateAmountInp
|
|
}
|
|
type UpdateAmountRes struct{}
|
|
type ForcePayReq struct {
|
|
g.Meta `path:"/tradeOrder/forcePay" method:"post" tags:"交易订单" summary:"强制支付手动订单"`
|
|
sysin.TradeOrderManualActionInp
|
|
}
|
|
type ForcePayRes struct{}
|
|
type FreezeReq struct {
|
|
g.Meta `path:"/tradeOrder/freeze" method:"post" tags:"交易订单" summary:"冻结手动订单"`
|
|
sysin.TradeOrderManualActionInp
|
|
}
|
|
type FreezeRes struct{}
|
|
type ApplyReq struct {
|
|
g.Meta `path:"/tradeOrder/apply" method:"post" tags:"交易订单" summary:"提交订单人工处理审批"`
|
|
sysin.TradeOrderApplyInp
|
|
}
|
|
type ApplyRes struct{ *sysin.FinanceApprovalModel }
|
|
type ExecuteReq struct {
|
|
g.Meta `path:"/tradeOrder/execute" method:"post" tags:"交易订单" summary:"执行已审批订单处理"`
|
|
sysin.TradeOrderExecuteInp
|
|
}
|
|
type ExecuteRes struct{}
|