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.
256 lines
7.7 KiB
256 lines
7.7 KiB
package game |
|
|
|
import ( |
|
"github.com/gogf/gf/v2/frame/g" |
|
"tyj_admin/internal/model/entity" |
|
) |
|
|
|
// 修改GM权限 |
|
type ChangeGmReq struct { |
|
g.Meta `path:"/mange/changegm" tags:"账号" method:"post" summary:"修改GM权限"` |
|
Account string `p:"account"` |
|
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 { |
|
g.Meta `path:"/mange/searchgm" tags:"账号" method:"post" summary:"修改GM权限"` |
|
Type int `p:"type"` // 查询类型 1, uid, 2 账号 |
|
Account string `p:"account"` |
|
ServerId int `p:"serverId"` |
|
Uid string `p:"uid"` // uid |
|
} |
|
|
|
type SearchGmRes struct { |
|
g.Meta `mime:"application/json"` |
|
Gm int32 `json:"gm"` |
|
} |
|
|
|
type SetGmToClientReq struct { |
|
g.Meta `path:"/mange/setclientgm" tags:"账号" method:"get" summary:"开GM权限"` |
|
ServerId int `p:"serverId"` |
|
Uids string `p:"uids"` |
|
State int `p:"state"` |
|
} |
|
|
|
type SetGmToClientRes struct { |
|
g.Meta `mime:"application/json"` |
|
} |
|
|
|
type ResetPwdReq struct { |
|
g.Meta `path:"/mange/resetpwd" tags:"账号" method:"post" summary:"修改登录密码"` |
|
Account string `p:"account"` |
|
ServerId int `p:"serverId" v:"required|min:1#服务器ID不能为空"` |
|
Pwd string `p:"pwd"` |
|
} |
|
|
|
type ResetPwdRes struct { |
|
} |
|
|
|
type MigrateSearchReq struct { |
|
g.Meta `path:"/mange/migratesearch" tags:"账号" method:"get" summary:"迁移查询"` |
|
SrcServerId int `json:"srcServerId"` |
|
SrcUid int64 `p:"srcUid"` |
|
DesServerId int `json:"desServerId"` |
|
DrcUid int32 `p:"drcUid"` |
|
} |
|
|
|
type MigrateSearchRes struct { |
|
g.Meta `mime:"application/json"` |
|
RoleList []*entity.Unit `json:"list"` |
|
} |
|
|
|
type MigrateReq struct { |
|
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 { |
|
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"` |
|
} |
|
|
|
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不能为空"` |
|
} |
|
|
|
type CopyUnitRes struct { |
|
g.Meta `mime:"application/json"` |
|
Filename string `json:"filename"` |
|
StoreFilename string `json:"storeFilename"` |
|
DeadFilename string `json:"deadFilename"` |
|
DecorationFilename string `json:"decorationFilename"` |
|
} |
|
|
|
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不能为空"` |
|
} |
|
|
|
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 DelAccountReq struct { |
|
g.Meta `path:"/mange/delAccount" tags:"账号" method:"get" summary:"删除账号"` |
|
SrcName string `p:"SrcName"` |
|
ServerId int `p:"serverId"` |
|
Password string `p:"password"` |
|
} |
|
|
|
type DelAccountRes struct { |
|
} |
|
|
|
type LogAccountReq struct { |
|
g.Meta `path:"/mange/logAccount" tags:"账号" method:"get" summary:"删除账号"` |
|
Server int32 `p:"server"` |
|
Day int32 `p:"day"` |
|
CDate string `p:"cDate"` |
|
} |
|
|
|
type LogAccountRes struct { |
|
g.Meta `mime:"application/json"` |
|
//List []entity.LoginLogoutInfo `p:"list"` |
|
}
|
|
|