feat: add Go backend
This commit is contained in:
@@ -0,0 +1,45 @@
|
||||
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 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{}
|
||||
Reference in New Issue
Block a user