package game import ( "github.com/gogf/gf/v2/frame/g" "tyj_admin/api/v1/common" "tyj_admin/internal/model/entity" ) type OrderSearchReq struct { g.Meta `path:"/order/list" tags:"订单" method:"get" summary:"订单列表"` PageNum int64 `p:"pageNum"` PageSize int64 `p:"pageSize"` Account string `p:"account"` Uid int32 `p:"uid"` Status int32 `p:"status"` OrderId string `p:"orderId"` ExternalOrderId string `p:"externalOrderId"` Channel string `p:"channel"` //渠道 } type OrderSearchRes struct { g.Meta `mime:"application/json"` Orders []*entity.Order `json:"list"` Total int `json:"total"` } type OrderCountReq struct { g.Meta `path:"/order/count" tags:"订单" method:"get" summary:"订单列表"` Account string `p:"account"` Amount int `p:"amount"` CompareType int `p:"compareType"` GM int `p:"GM"` Server int `p:"server"` PageNo int `p:"pageNo"` PageSize int `p:"pageSize"` } type OrderCountRes struct { g.Meta `mime:"application/json"` Orders []*entity.OrderCount `json:"list"` Total int `json:"total"` } type OrderLogReq struct { g.Meta `path:"/order/log" tags:"订单" method:"get" summary:"订单列表记录"` Channel string `p:"channel"` StartTime int64 `p:"startTime"` EndTime int64 `p:"endTime"` CompareType int `p:"compareType"` CompareType1 int `p:"compareType1"` RechargeMin int `p:"rechargeMin"` RechargeTotal int `p:"rechargeTotal"` ServerId int `p:"server"` } type AmountTotal struct { Channel string `json:"channel" description:""` CreateTime string `json:"createTime" description:""` Config int `json:"config" description:""` TotalAmount int `json:"totalAmount" description:""` Platform int `json:"platform" description:""` } type AccountTotal struct { Channel string `json:"channel" description:""` Config int `json:"config" description:""` CreateTime string `json:"createTime" description:""` TotalAccount int `json:"totalAccount" description:""` } type ConfigCount struct { Channel string `json:"channel" description:""` Config int `json:"config" description:""` TotalConfig int `json:"totalConfig" description:""` } type OrderLogRes struct { g.Meta `mime:"application/json"` AccountTotal []AccountTotal `json:"accountTotal"` AmountTotal []AmountTotal `json:"amountTotal"` RechargeAccountTotal []AccountTotal `json:"rechargeAccountTotal"` } type OrderLogPlatformReq struct { g.Meta `path:"/order/logPlatform" tags:"订单" method:"get" summary:"订单列表记录"` Channel string `p:"channel"` StartTime int64 `p:"startTime"` EndTime int64 `p:"endTime"` CompareType int `p:"compareType"` CompareType1 int `p:"compareType1"` RechargeMin int `p:"rechargeMin"` RechargeTotal int `p:"rechargeTotal"` ServerId int `p:"server"` } type OrderLogPlatformRes struct { g.Meta `mime:"application/json"` AccountTotal []AccountTotal `json:"accountTotal"` AmountTotal []AmountTotal `json:"amountTotal"` RechargeAccountTotal []AccountTotal `json:"rechargeAccountTotal"` } type OrderBehaviorReq struct { g.Meta `path:"/order/behavior" tags:"订单" method:"get" summary:"订单记录"` StartTime string `p:"startTime"` } type OrderBehaviorRes struct { g.Meta `mime:"application/json"` Account []AccountTotal `json:"account"` RechargeAccount []AccountTotal `json:"rechargeAccount"` AmountList []AmountTotal `json:"amountList"` } type RechargePerReq struct { g.Meta `path:"/order/rechargePer" tags:"订单" method:"get" summary:"订单记录"` StartTime string `p:"startTime"` EndTime string `p:"endTime"` } type RechargePerRes struct { g.Meta `mime:"application/json"` Account []AccountTotal `json:"account"` RechargeAccount []AccountTotal `json:"rechargeAccount"` } // 充值 type OrderDepositReq struct { g.Meta `path:"/order/deposit" tags:"订单" method:"post" summary:"补单充值"` Uid int64 `p:"account"` DepositId int32 `p:"depositId"` Amount int32 `p:"amount"` Count int32 `p:"count"` Platform int `p:"platform"` ServerId int `p:"serverId"` //Channel string `p:"channel"` } 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 { } // 充值控制 type RechargeControlReq struct { g.Meta `path:"/order/rechargeControl" tags:"订单" method:"get" summary:"充值控制"` Channel string `p:"channel"` } type RechargeControlRes struct { g.Meta `mime:"application/json"` State int32 `json:"state" description:"0-无法充值,1-允许充值"` } // 获取充值控制 type GetRechargeControlReq struct { g.Meta `path:"/order/control/get" tags:"订单" method:"get" summary:"获取充值控制"` } type GetRechargeControlRes struct { g.Meta `mime:"application/json"` Control []*entity.GameRechargeControl `json:"list"` } // 更新充值控制 type AddRechargeControlReq struct { g.Meta `path:"/order/control/add" tags:"订单" method:"get" summary:"更新充值控制"` Channel string `p:"channel"` } type AddRechargeControlRes struct { } // 删除充值控制 type DeleteRechargeControlReq struct { g.Meta `path:"/order/control/del" tags:"订单" method:"get" summary:"删除充值控制"` Channel string `p:"channel"` } type DeleteRechargeControlRes struct { } // 修改订单状态 type ChangeOrderStateReq struct { g.Meta `path:"/order/changeState" tags:"订单" method:"get" summary:"修改订单状态"` State int `p:"state"` Order string `p:"order"` Remark string `p:"remark"` } type ChangeOrderStateRes struct { g.Meta `mime:"application/json"` ResData int `json:"data"` } // 修改订单状态 type GetGMOrderListReq struct { g.Meta `path:"/order/gmList" tags:"订单" method:"get" summary:"获取订单"` Uid int32 `p:"uid"` ServerId int32 `p:"server"` Config int32 `p:"config"` TradeNo string `p:"tradeNo"` CTime string `p:"cTime"` ETime string `p:"eTime"` User string `p:"user"` Channel string `p:"channel"` common.PageReq } type GetGMOrderListRes struct { g.Meta `mime:"application/json"` List []entity.GameRechargeLog `json:"list"` common.ListRes } // 查询充值情况 type CheckRechargeSignReq struct { g.Meta `path:"/getOrderLevel" tags:"订单" method:"get" summary:"查询充值情况"` Id int64 `p:"unitId"` ServerId int32 `p:"server"` } type CheckRechargeSignRes struct { g.Meta `mime:"application/json"` List []int `json:"list"` } // 插入充值情况 type AddRechargeSignReq struct { g.Meta `path:"/setOrderLevel" tags:"订单" method:"get" summary:"插入充值情况"` Id int64 `p:"unitId"` ServerId int32 `p:"server"` Config int32 `p:"config"` Time int32 `p:"time"` Token string `p:"token"` } type AddRechargeSignRes struct { g.Meta `mime:"application/json"` List []int `json:"list"` } // 重置充值情况 type ResetRechargeSignReq struct { g.Meta `path:"/order/resetSign" tags:"订单" method:"get" summary:"重置充值情况"` } type ResetRechargeSignRes struct { g.Meta `mime:"application/json"` }