You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
284 lines
6.9 KiB
Go
284 lines
6.9 KiB
Go
package validator
|
|
|
|
import "mygo/model"
|
|
|
|
type LoginBody struct {
|
|
Username string `json:"username"`
|
|
PassWord string `json:"password"`
|
|
T string `json:"_t"`
|
|
Code string `json:"code"`
|
|
}
|
|
|
|
type CreateAdminBody struct {
|
|
UserName string `json:"username"`
|
|
PassWord string `json:"password"`
|
|
RealName string `json:"realname"`
|
|
}
|
|
|
|
type UserListBody struct {
|
|
UserName string `json:"username"`
|
|
RealName string `json:"realname"`
|
|
Page int `json:"page"`
|
|
Limit int `json:"limit"`
|
|
}
|
|
|
|
type UpdateAdminBody struct {
|
|
UserID string `json:"user_id"`
|
|
Root int `json:"root"`
|
|
RealName string `json:"realname"`
|
|
Avatar string `json:"avatar"`
|
|
}
|
|
|
|
type CreateRoleBody struct {
|
|
RoleName string `json:"role_name"`
|
|
RoleCode string `json:"role_code"`
|
|
Description string `json:"description"`
|
|
}
|
|
|
|
type UpdateRoleBody struct {
|
|
RoleID string `json:"role_id"`
|
|
RoleName string `json:"role_name"`
|
|
Description string `json:"description"`
|
|
}
|
|
|
|
type RoleBindUserBody struct {
|
|
Users []string `json:"users"`
|
|
RoleID string `json:"role_id"`
|
|
}
|
|
|
|
type UserBindRoleBody struct {
|
|
UserID string `json:"user_id"`
|
|
RoleID string `json:"role_id"`
|
|
}
|
|
|
|
type UserBindByRoleCodeBody struct {
|
|
UserID string `json:"user_id"`
|
|
RoleCode string `json:"role_code"`
|
|
}
|
|
|
|
type CreateRouteBody struct {
|
|
ParentId string `json:"parent_id"`
|
|
Name string `json:"name"`
|
|
Icon string `json:"icon"`
|
|
Sort int `json:"sort"`
|
|
Component string `json:"component"`
|
|
Redirect string `json:"redirect"`
|
|
Perms string `json:"perms"`
|
|
PermsType int `json:"perms_type"`
|
|
Title string `json:"title"`
|
|
Path string `json:"path"`
|
|
MenuType int `json:"menu_type"`
|
|
BtnStatus int `json:"btn_status"`
|
|
HideInBread int `json:"hideInBread"`
|
|
HideInMenu int `json:"hideInMenu"`
|
|
NotCache int `json:"notCache"`
|
|
IsMmin int `json:"isMmin"`
|
|
}
|
|
|
|
type UpdateRouteBody struct {
|
|
ID string `json:"route_id"`
|
|
CreateRouteBody
|
|
}
|
|
|
|
type RoleBindRouteBody struct {
|
|
Routes []string `json:"routes"`
|
|
RoleID string `json:"role_id"`
|
|
}
|
|
|
|
type UpdatePwdBody struct {
|
|
Id string `json:"id"`
|
|
PassWord string `json:"password"`
|
|
}
|
|
|
|
type MemberListBody struct {
|
|
Page int64 `json:"page"`
|
|
Limit int64 `json:"limit"`
|
|
UID int64 `json:"uid"`
|
|
}
|
|
|
|
type CheckUserNameBody struct {
|
|
UserName string `json:"username,omitempty"`
|
|
}
|
|
|
|
type GetAgentBody struct {
|
|
UID string `json:"uid,omitempty"`
|
|
}
|
|
|
|
type SetAgentBody struct {
|
|
UserName string `json:"username,omitempty"`
|
|
RealName string `json:"realname,omitempty"`
|
|
PassWord string `json:"password,omitempty"`
|
|
SecondPassWord string `json:"secondpassword,omitempty"`
|
|
}
|
|
|
|
type UpdateAgentBody struct {
|
|
AgentID string `json:"_id,omitempty"`
|
|
UserName string `json:"username,omitempty"`
|
|
RealName string `json:"realname,omitempty"`
|
|
PassWord string `json:"password,omitempty"`
|
|
SecondPassWord string `json:"secondpassword,omitempty"`
|
|
}
|
|
|
|
type UidBody struct {
|
|
UID int64 `json:"uid,omitempty"`
|
|
}
|
|
|
|
type DelAgentBody struct {
|
|
AgentID string `json:"agent_id"`
|
|
}
|
|
|
|
type ReqFreezeBody struct {
|
|
UID int64 `json:"uid"`
|
|
FreezeReason string `json:"freeze_reason"`
|
|
FreezeDate string `json:"freeze_date"`
|
|
}
|
|
|
|
type ReqFreezeAgentBody struct {
|
|
AgentID string `json:"agent_id"`
|
|
}
|
|
|
|
type PageLimitBody struct {
|
|
Page int64 `json:"page"`
|
|
Limit int64 `json:"limit"`
|
|
}
|
|
|
|
type GetServerListBody struct {
|
|
Page int64 `json:"page"`
|
|
Limit int64 `json:"limit"`
|
|
StartTime string `json:"start_time"`
|
|
EndTime string `json:"end_time"`
|
|
}
|
|
|
|
type GameCodeBody struct {
|
|
Code string `json:"code"`
|
|
Total int `json:"total"`
|
|
Num int `json:"num"`
|
|
Vip int `json:"vip"`
|
|
Items []model.Item `json:"items"`
|
|
ExpireType string `json:"expire_type" `
|
|
StartExpire string `json:"start_expire"`
|
|
EndExpire string `json:"end_expire"`
|
|
Status int `json:"status"`
|
|
}
|
|
|
|
type ChangeStatusBody struct {
|
|
Code string `json:"code"`
|
|
Status int `json:"status"`
|
|
}
|
|
|
|
type AddServerBody struct {
|
|
ServerName string `json:"server_name"`
|
|
}
|
|
|
|
type OpenServerBody struct {
|
|
ServerId int `json:"server_id"`
|
|
ServerNum int `json:"server_num"`
|
|
ActivityId int `json:"activity_id"`
|
|
ActivityEndTime string `json:"activity_end_time"`
|
|
}
|
|
|
|
type ServerItemPageLimitBody struct {
|
|
Page int64 `json:"page"`
|
|
Limit int64 `json:"limit"`
|
|
ServerId int64 `json:"server_id"`
|
|
StartTime string `json:"start_time"`
|
|
EndTime string `json:"end_time"`
|
|
}
|
|
|
|
type GetAgentByAdminIDBody struct {
|
|
AdminId string `json:"admin_id"`
|
|
}
|
|
|
|
type AgentChildListBody struct {
|
|
Page int64 `json:"page"`
|
|
Limit int64 `json:"limit"`
|
|
AgentID string `json:"agent_id"`
|
|
}
|
|
|
|
type GetRebateBody struct {
|
|
Page int64 `json:"page"`
|
|
Limit int64 `json:"limit"`
|
|
AgentID string `json:"agent_id"`
|
|
OrderNo string `json:"order_no"`
|
|
UID int64 `json:"uid"`
|
|
CreatedAtStart string `json:"created_at_start"`
|
|
CreatedAtEnd string `json:"created_at_end"`
|
|
}
|
|
type AgentHomeBody struct {
|
|
AgentID string `json:"agent_id"`
|
|
}
|
|
|
|
type AgentWithdrawBody struct {
|
|
AgentID string `json:"agent_id"`
|
|
Money float64 `json:"money"`
|
|
Content string `json:"content"`
|
|
}
|
|
|
|
type WithdrawStatusBody struct {
|
|
ID string `json:"_id"`
|
|
Status int64 `json:"status"`
|
|
Taxes string `json:"taxes"`
|
|
}
|
|
|
|
type RechargeListBody struct {
|
|
Page int64 `json:"page"`
|
|
Limit int64 `json:"limit"`
|
|
OrderNo string `json:"order_no"`
|
|
UID int64 `json:"uid"`
|
|
RegionId int64 `json:"regionid"`
|
|
ServerId int64 `json:"serverid"`
|
|
PayStatus int64 `json:"pay_status"`
|
|
PayAtStart string `json:"pay_at_start"`
|
|
PayAtEnd string `json:"pay_at_end"`
|
|
CreatedAtStart string `json:"created_at_start"`
|
|
CreatedAtEnd string `json:"created_at_end"`
|
|
}
|
|
|
|
type ActivityReqBody struct {
|
|
ID int64 `json:"_id"`
|
|
Status int64 `json:"status"`
|
|
StartTime string `json:"start_time"`
|
|
EndTime string `json:"end_time"`
|
|
}
|
|
|
|
type SendMailReqBody struct {
|
|
Title string `json:"title"`
|
|
Content string `json:"content"`
|
|
Rewards []model.Reward `json:"rewards"`
|
|
Sender string `json:"sender"`
|
|
Receiver int `json:"receiver" `
|
|
}
|
|
|
|
type ReqAgentListBody struct {
|
|
Page int64 `json:"page"`
|
|
Limit int64 `json:"limit"`
|
|
ID string `json:"id"`
|
|
UserName string `json:"username"`
|
|
}
|
|
|
|
type ReqSaveBiliBody struct {
|
|
Bili float64 `json:"bili"`
|
|
}
|
|
|
|
type GetTiXianListBody struct {
|
|
AgentID string `json:"agent_id"`
|
|
}
|
|
|
|
type ApplyTiXianListBody struct {
|
|
AgentID string `json:"agent_id"`
|
|
Type int64 `json:"type"`
|
|
Account string `json:"account"`
|
|
}
|
|
|
|
type UpdateApplyTiXianListBody struct {
|
|
ID string `json:"_id"`
|
|
AgentID string `json:"agent_id"`
|
|
Type int64 `json:"type"`
|
|
Account string `json:"account"`
|
|
}
|
|
|
|
type AgreeTiXianListBody struct {
|
|
ID string `json:"id"`
|
|
Status int64 `json:"status"`
|
|
}
|