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.
88 lines
2.3 KiB
88 lines
2.3 KiB
3 days ago
|
package game
|
||
|
|
||
|
import (
|
||
|
"github.com/gogf/gf/v2/frame/g"
|
||
|
"tyj_admin/internal/model/entity"
|
||
|
)
|
||
|
|
||
|
type GetBattlePassReq struct {
|
||
|
g.Meta `path:"/battlePass/get" tags:"战令" method:"get" summary:"获取战令"`
|
||
|
ServerId int32 `p:"serverId"`
|
||
|
PeriodId int32 `p:"periodId"`
|
||
|
}
|
||
|
|
||
|
type GetBattlePassRes struct {
|
||
|
g.Meta `mime:"application/json"`
|
||
|
List []map[string]interface{} `json:"list"`
|
||
|
}
|
||
|
|
||
|
type CheckPeriodIdReq struct {
|
||
|
g.Meta `path:"/battlePass/checkPeriodId" tags:"战令" method:"get" summary:"获取战令"`
|
||
|
PeriodId int32 `p:"periodId"`
|
||
|
}
|
||
|
|
||
|
type CheckPeriodIdRes struct {
|
||
|
g.Meta `mime:"application/json"`
|
||
|
List []map[string]interface{} `json:"list"`
|
||
|
}
|
||
|
|
||
|
type UpdateBattlePassReq struct {
|
||
|
g.Meta `path:"/battlePass/update" tags:"战令" method:"get" summary:"更新战令"`
|
||
|
Id string `p:"Id"`
|
||
|
BeginTime string `p:"BeginTime"`
|
||
|
EndTime string `p:"EndTime"`
|
||
|
State int32 `p:"State"`
|
||
|
//Server int32 `p:"Server"`
|
||
|
//PeriodId int32 `p:"PeriodId"`
|
||
|
}
|
||
|
|
||
|
type UpdateBattlePassRes struct {
|
||
|
}
|
||
|
|
||
|
type InsertBattlePassReq struct {
|
||
|
g.Meta `path:"/battlePass/insert" tags:"战令" method:"get" summary:"添加战令"`
|
||
|
BeginTime string `p:"BeginTime"`
|
||
|
EndTime string `p:"EndTime"`
|
||
|
State int32 `p:"State"`
|
||
|
Server int32 `p:"Server"`
|
||
|
PeriodId int32 `p:"PeriodId"`
|
||
|
}
|
||
|
|
||
|
type InsertBattlePassRes struct {
|
||
|
}
|
||
|
|
||
|
type CheckBattlePassReq struct {
|
||
|
g.Meta `path:"/battlePass/check" tags:"战令" method:"get" summary:"校验战令"`
|
||
|
BeginTime string `p:"BeginTime"`
|
||
|
Server int64 `p:"Server"`
|
||
|
PeriodId int64 `p:"PeriodId"`
|
||
|
}
|
||
|
|
||
|
type CheckBattlePassRes struct {
|
||
|
g.Meta `mime:"application/json"`
|
||
|
Total int64 `json:"total"`
|
||
|
}
|
||
|
|
||
|
type InsertBattlePassLogReq struct {
|
||
|
g.Meta `path:"/battlePassLog/add" tags:"log接口" method:"post" summary:"操作日志"`
|
||
|
PeriodId int32 `p:"periodId"`
|
||
|
Server int32 `p:"server"`
|
||
|
Uid int64 `p:"unitId"`
|
||
|
}
|
||
|
|
||
|
type InsertBattlePassLogRes struct {
|
||
|
g.Meta `mime:"application/json"`
|
||
|
}
|
||
|
|
||
|
type GetBattlePassLogReq struct {
|
||
|
g.Meta `path:"/battlePassLog/get" tags:"log接口" method:"get" summary:"操作日志"`
|
||
|
PeriodId int32 `p:"periodId"`
|
||
|
}
|
||
|
|
||
|
type GetBattlePassLogRes struct {
|
||
|
g.Meta `mime:"application/json"`
|
||
|
List []entity.ServerBattlePass `json:"list"`
|
||
|
RechargeTotal int `json:"rechargeTotal"`
|
||
|
Total int `json:"total"`
|
||
|
}
|