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.

484 lines
14 KiB

package game
import (
"github.com/gogf/gf/v2/frame/g"
"tyj_admin/api/v1/common"
"tyj_admin/internal/model/entity"
)
// 修改GM权限
type ChangeGmReq struct {
4 months ago
g.Meta `path:"/mange/changegm" tags:"账号" method:"post" summary:"修改GM权限"`
Account string `p:"account"`
4 months ago
ServerId int `p:"serverId"`
Uid string `p:"uid"`
Type int `p:"type"` // 查询类型 1, uid, 2 账号
ChangeValue int `p:"gmState"` //0正常,1-黑名单,3-gm
}
type ChangeGmRes struct {
}
type SearchGmReq struct {
4 months ago
g.Meta `path:"/mange/searchgm" tags:"账号" method:"post" summary:"修改GM权限"`
Type int `p:"type"` // 查询类型 1, uid, 2 账号
Account string `p:"account"`
4 months ago
ServerId int `p:"serverId"`
Uid string `p:"uid"` // uid
}
type SearchGmRes struct {
g.Meta `mime:"application/json"`
4 months ago
Gm int32 `json:"gm"`
}
type SetGmToClientReq struct {
3 months ago
g.Meta `path:"/mange/setclientgm" tags:"账号" method:"get" summary:"开GM权限"`
ServerId int `p:"serverId"`
Uids string `p:"uids"`
State int `p:"state"`
4 months ago
}
type SetGmToClientRes struct {
g.Meta `mime:"application/json"`
}
type ResetPwdReq struct {
4 months ago
g.Meta `path:"/mange/resetpwd" tags:"账号" method:"post" summary:"修改登录密码"`
Account string `p:"account"`
ServerId int `p:"serverId" v:"required|min:1#服务器ID不能为空"`
2 months ago
Pwd string `p:"pwd"`
}
type ResetPwdRes struct {
}
type MigrateSearchReq struct {
4 months ago
g.Meta `path:"/mange/migratesearch" tags:"账号" method:"get" summary:"迁移查询"`
SrcServerId int `json:"srcServerId"`
4 months ago
SrcUid int64 `p:"srcUid"`
DesServerId int `json:"desServerId"`
4 months ago
DrcUid int32 `p:"drcUid"`
}
type MigrateSearchRes struct {
g.Meta `mime:"application/json"`
4 months ago
RoleList []*entity.Unit `json:"list"`
}
type MigrateReq struct {
4 months ago
g.Meta `path:"/mange/migrate" tags:"账号" method:"get" summary:"迁移"`
SrcServerId int `p:"srcServerId"`
SrcUid int32 `p:"srcUid"`
DesServerId int `p:"desServerId"`
DesUid int32 `p:"desUid"`
}
type MigrateRes struct {
}
type StatisticsReq struct {
4 months ago
g.Meta `path:"/mange/statistics" tags:"统计数据" method:"get" summary:"统计数据"`
LowTime int64 `p:"lowTime"`
UpTime int64 `p:"upTime"`
ServerId int `p:"serverId"` //0,总服,其他分服
}
type StatisticsRes struct {
g.Meta `mime:"application/json"`
RegisterNum int64 `json:"registerNum"`
DepositNum int64 `json:"depositNum"`
Sum int32 `json:"sum"` //总充值
Remain []*entity.Remain `json:"list"`
}
4 months ago
type AddItemReq struct {
g.Meta `path:"/mange/addItem" tags:"账号" method:"get" summary:"添加物品"`
Account string `p:"Account"`
Type int32 `p:"Type"`
ConfigId int32 `p:"ConfigId"`
Num int32 `p:"Num"`
Region int32 `p:"Region"`
ServerId int `p:"serverId" v:"required|min:1#服务器ID不能为空"`
}
type AddItemRes struct {
}
type AddItemListReq struct {
g.Meta `path:"/mange/addItemList" tags:"账号" method:"get" summary:"添加物品"`
Account string `p:"Account"`
Type int32 `p:"Type"`
ServerId int `p:"serverId" v:"required|min:1#服务器ID不能为空"`
}
type AddItemListRes struct {
}
type EditPeopleReq struct {
g.Meta `path:"/mange/editPeople" tags:"账号" method:"get" summary:"编辑人物"`
Account string `p:"Account"`
PeopleId int32 `p:"PeopleId"`
NumericType int32 `p:"NumericType"`
Value int64 `p:"Value"`
ServerId int `p:"serverId" v:"required|min:1#服务器ID不能为空"`
}
type EditPeopleRes struct {
}
type AddGameUnitReq struct {
g.Meta `path:"/mange/addGameUnit" tags:"账号" method:"get" summary:"编辑人物"`
Account string `p:"Account"`
CfgId int32 `p:"CfgId"`
GameUnitType int32 `p:"GameUnitType"`
Name string `p:"Name"`
FamilyName string `p:"FamilyName"`
X float32 `p:"X"`
Y float32 `p:"Y"`
IsFlip bool `p:"IsFlip"`
ArtConfigId int32 `p:"ArtConfigId"`
ServerId int `p:"serverId" v:"required|min:1#服务器ID不能为空"`
}
type AddGameUnitRes struct {
}
type AddVillagerSkillReq struct {
g.Meta `path:"/mange/addVillagerSkill" tags:"账号" method:"get" summary:"添加技能"`
Account string `p:"Account"`
GameUnitId int64 `p:"GameUnitId"`
VillagerSkillId int32 `p:"VillagerSkillId"`
ServerId int `p:"serverId" v:"required|min:1#服务器ID不能为空"`
}
type AddVillagerSkillRes struct {
}
type SetWeatherReq struct {
g.Meta `path:"/mange/setWeather" tags:"账号" method:"get" summary:"改变天气"`
Account string `p:"Account"`
WeatherConfigId int32 `p:"WeatherConfigId"`
ServerId int `p:"serverId" v:"required|min:1#服务器ID不能为空"`
}
type SetWeatherRes struct {
}
type ClearResourceReq struct {
g.Meta `path:"/mange/clearResource" tags:"账号" method:"get" summary:"删除资源"`
Account string `p:"Account"`
ServerId int `p:"serverId"`
}
type ClearResourceRes struct {
}
type CopyUnitReq struct {
g.Meta `path:"/mange/copyUnit" tags:"账号" method:"get" summary:"复制账号"`
SrcName int `p:"SrcName" v:"required|min:1#账号ID不能为空"`
SrcServer int `p:"SrcServer" v:"required|min:1#服务器ID不能为空"`
4 months ago
}
type CopyUnitRes struct {
g.Meta `mime:"application/json"`
Filename string `json:"filename"`
StoreFilename string `json:"storeFilename"`
DeadFilename string `json:"deadFilename"`
DecorationFilename string `json:"decorationFilename"`
4 months ago
}
type UpdateUnitReq struct {
g.Meta `path:"/mange/updateUnit" tags:"账号" method:"get" summary:"更新账号"`
Filename string `p:"filename" v:"required#文件名不能为空"`
StoreFilename string `p:"storeFilename" v:"required#文件名不能为空"`
DeadFilename string `p:"deadFilename" v:"required#文件名不能为空"`
DecorationFilename string `p:"decorationFilename" v:"required#文件名不能为空"`
DestName int `p:"DestName" v:"required|min:1#账号ID不能为空"`
DestServer int `p:"DestServer" v:"required|min:1#服务器ID不能为空"`
4 months ago
}
type UpdateUnitRes struct {
}
type SearchAccountReq struct {
g.Meta `path:"/mange/searchAccount" tags:"账号" method:"get" summary:"搜索账号"`
//Day int `p:"day"`
//Scale int `p:"scale"`
//Min int `p:"time"`
Type int `p:"type"`
Data int `p:"data"`
CompareType int `p:"compareType"`
PageSize int `p:"pageSize"`
PageNum int `p:"pageNum"`
ServerId int `p:"serverId" `
StartTime int `p:"startTime" `
EndTime int `p:"endTime" `
}
type SearchAccountRes struct {
g.Meta `mime:"application/json"`
Accounts []map[string]interface{} `json:"accounts"`
Total int `json:"total"`
AvgScale float64 `json:"avgScale"`
AvgDay float64 `json:"avgDay"`
}
type FinishGatherReq struct {
g.Meta `path:"/mange/finishGather" tags:"账号" method:"get" summary:"删除资源"`
Account string `p:"Account"`
GatherIds []int64 `p:"GatherIds"`
ServerId int `p:"serverId" v:"required|min:1#服务器ID不能为空"`
}
type FinishGatherRes struct {
}
type GetBazaarReq struct {
g.Meta `path:"/bazaar/get" tags:"赶集" method:"get" summary:"获取赶集"`
Year int32 `p:"Year"`
Date int32 `p:"Date"`
ServerId int `p:"serverId"`
}
type GetBazaarRes struct {
g.Meta `mime:"application/json"`
Bazaar []map[string]interface{} `json:"bazaar"`
}
type UpdateBazaarReq struct {
g.Meta `path:"/bazaar/update" tags:"赶集" method:"post" summary:"更新赶集"`
Bazaar map[string]interface{} `p:"bazaar"`
}
type UpdateBazaarRes struct {
}
type InsertBazaarReq struct {
g.Meta `path:"/bazaar/insert" tags:"赶集" method:"post" summary:"添加赶集"`
Bazaar map[string]interface{} `p:"bazaar"`
}
type InsertBazaarRes struct {
}
type InsertBatchBazaarReq struct {
g.Meta `path:"/bazaar/insertBatch" tags:"赶集" method:"post" summary:"添加赶集"`
Bazaars []map[string]interface{} `p:"bazaars"`
}
type InsertBatchBazaarRes struct {
}
type GetMonthlyLotteryReq struct {
g.Meta `path:"/monthlyLottery/get" tags:"每月抽奖" method:"get" summary:"获取每月抽奖 -1为不限次数"`
Date string `p:"Date"`
}
type GetMonthlyLotteryRes struct {
g.Meta `mime:"application/json"`
MonthlyLottery []map[string]interface{} `json:"monthlyEvent"`
}
type UpdateMonthlyLotteryReq struct {
g.Meta `path:"/monthlyLottery/update" tags:"每月抽奖" method:"get" summary:"更新每月抽奖"`
MonthlyLottery map[string]interface{} `p:"monthlyLottery"`
}
type UpdateMonthlyLotteryRes struct {
}
type InsertMonthlyLotteryReq struct {
g.Meta `path:"/monthlyLottery/insert" tags:"每月抽奖" method:"get" summary:"添加每月抽奖"`
MonthlyLottery map[string]interface{} `p:"monthlyLottery"`
}
type InsertMonthlyLotteryRes struct {
}
type GetPropExchangeReq struct {
g.Meta `path:"/propExchange/get" tags:"道具兑换" method:"get" summary:"获取道具兑换"`
Id int64 `p:"id"`
Year string `p:"year"`
}
type GetPropExchangeRes struct {
g.Meta `mime:"application/json"`
PropExchange []map[string]interface{} `json:"propExchange"`
}
type UpdatePropExchangeReq struct {
g.Meta `path:"/propExchange/update" tags:"道具兑换" method:"get" summary:"更新道具兑换"`
PropExchange map[string]interface{} `p:"propExchange"`
}
type UpdatePropExchangeRes struct {
}
type InsertPropExchangeReq struct {
g.Meta `path:"/propExchange/insert" tags:"道具兑换" method:"get" summary:"添加道具兑换"`
PropExchange map[string]interface{} `p:"propExchange"`
}
type InsertPropExchangeRes struct {
}
type CheckPropExchangeReq struct {
g.Meta `path:"/propExchange/check" tags:"道具兑换" method:"get" summary:"查询道具兑换"`
PropExchange map[string]interface{} `p:"propExchange"`
}
type CheckPropExchangeRes struct {
g.Meta `mime:"application/json"`
PropExchange int64 `json:"propExchange"`
}
type GetModelReq struct {
g.Meta `path:"/model/get" tags:"模板" method:"get" summary:"获取模板"`
MType int64 `p:"mType"`
Id int64 `p:"id"`
}
type GetModelRes struct {
g.Meta `mime:"application/json"`
Model []map[string]interface{} `json:"model"`
}
type UpdateModelReq struct {
g.Meta `path:"/model/update" tags:"模板" method:"get" summary:"更新模板"`
Model map[string]interface{} `p:"model"`
}
type UpdateModelRes struct {
}
type InsertModelReq struct {
g.Meta `path:"/model/insert" tags:"模板" method:"get" summary:"添加模板"`
Model map[string]interface{} `p:"model"`
}
type InsertModelRes struct {
}
type DelModelReq struct {
g.Meta `path:"/model/del" tags:"模板" method:"get" summary:"删除模板"`
Id int64 `p:"id"`
StallId int32 `p:"stallId"`
}
type DelModelRes struct {
}
type SetAuditModeReq struct {
g.Meta `path:"/set/auditMode" tags:"set接口" method:"post" summary:"审核模式"`
AuditMode int `p:"auditMode" ` // 1-不需要走热更新; 0-需要走热更新
Channel string `p:"channel"`
Version string `p:"version"`
Name string `p:"name"`
}
type SetAuditModeRes struct {
g.Meta `mime:"application/json"`
}
type DelAuditModeReq struct {
g.Meta `path:"/set/delAuditMode" tags:"set接口" method:"post" summary:"审核模式"`
Label string `p:"label"`
Name string `p:"name"`
}
type DelAuditModeRes struct {
g.Meta `mime:"application/json"`
}
type AuditModeReq struct {
g.Meta `path:"/set/checkAuditMode" tags:"set接口" method:"get" summary:"auditMode"`
Channel string `p:"channel"`
Version string `p:"version"`
}
type AuditModeRes struct {
g.Meta `mime:"application/json"`
AuditMode int32 `json:"auditMode"`
}
type GetAllAuditModeReq struct {
g.Meta `path:"/set/getAllAuditMode" tags:"set接口" method:"get" summary:"getAllAuditMode"`
Name string `p:"name"`
}
type GetAllAuditModeRes struct {
g.Meta `mime:"application/json"`
List map[string]string `json:"list"`
}
type GetAllowChannelReq struct {
g.Meta `path:"/set/getAllowChannel" tags:"set接口" method:"get" summary:"getAllowChannel"`
}
type GetAllowChannelRes struct {
g.Meta `mime:"application/json"`
List map[string]string `json:"list"`
}
type SetAllowChannelReq struct {
g.Meta `path:"/set/allowChannel" tags:"set接口" method:"post" summary:"审核模式"`
Channel string `p:"channel"`
Version string `p:"version"`
}
type SetAllowChannelRes struct {
g.Meta `mime:"application/json"`
}
type DelAllowChannelReq struct {
g.Meta `path:"/set/delAllowChannel" tags:"set接口" method:"post" summary:"审核模式"`
Label string `p:"label"`
}
type DelAllowChannelRes struct {
g.Meta `mime:"application/json"`
}
type GetOperLogReq struct {
g.Meta `path:"/log/getOperLog" tags:"log接口" method:"get" summary:"操作日志"`
Label string `p:"label"`
common.PageReq
}
type GetOperLogRes struct {
g.Meta `mime:"application/json"`
List []entity.SysOperLog `json:"list"`
common.ListRes
}
type GetLoginOutGmReq struct {
2 months ago
g.Meta `path:"/loginOut/getGm" tags:"log接口" method:"get" summary:"操作日志"`
UnitId int64 `p:"uid"`
Uid string `p:"id"`
Account string `p:"account"`
State int `p:"state"`
CompareType int `p:"compareType"`
RechargeTotal int `p:"rechargeTotal"`
ServerId int `p:"serverId"`
StoneAmount int `p:"stoneAmount"`
VouchersNum int `p:"vouchersNum"`
CDate int64 `p:"cDate"`
common.PageReq
}
type GetLoginOutGmRes struct {
g.Meta `mime:"application/json"`
Logs []entity.LoginLogoutInfoGm `json:"logs"`
common.ListRes
}
1 month ago
type ReConfigServerReq struct {
g.Meta `path:"/reloadServer" tags:"外部接口" method:"get" summary:"重置服务器列表"`
SType int32 `p:"sType"`
}
type ReConfigServerRes struct {
g.Meta `mime:"application/json"`
}