You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

63 lines
1.7 KiB

package game
import (
"github.com/gogf/gf/v2/frame/g"
"tyj_admin/internal/model/entity"
)
type OrderSearchReq struct {
g.Meta `path:"/order/list" tags:"查询订单" method:"get" summary:"订单列表"`
SearchType int `p:"searchType"` //1.账号查询,2角色UID查询,3 时间段查询 4.订单号查询
Id string `p:"id"`
OrderId string `p:"orderId"`
ServerId int `p:"serverId"`
Uid int32 `p:"uid"`
Account string `p:"account"` //rechargeorder表的 uid
Channel string `p:"channel"'` //渠道
LowTime int64 `p:"lowTime"`
UpTime int64 `p:"upTime"`
}
type OrderSearchRes struct {
g.Meta `mime:"application/json"`
Orders []*entity.Order `json:"list"`
}
type OrderCountReq struct {
g.Meta `path:"/order/count" tags:"查询订单" method:"get" summary:"订单列表"`
Amount int `p:"amount"`
CompareType int `p:"compareType"`
Gender int `p:"gender"`
LowAge int `p:"lowAge"`
UpAge int `p:"upAge"`
ServerId int `p:"serverId"`
}
type OrderCountRes struct {
g.Meta `mime:"application/json"`
Orders []*entity.OrderCount `json:"list"`
}
// 充值
type OrderDepositReq struct {
g.Meta `path:"/order/deposit" tags:"充值" method:"post" summary:"补单充值"`
Account string `p:"account"`
DepositId int32 `p:"depositId"`
ServerId int32 `p:"serverId"`
Platform int `p:"platform"`
}
type OrderDepositRes struct {
}
// 加游戏币
type AddCoinReq struct {
g.Meta `path:"/order/addcoin" tags:"修改游戏币" method:"post" summary:"修改游戏币"`
Uid string `p:"uid"`
Amount int32 `p:"amount"`
AmountType int32 `p:"amountType"`
ServerId int `p:"serverId"`
}
type AddCoinRes struct {
}