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.
171 lines
4.9 KiB
Go
171 lines
4.9 KiB
Go
package response
|
|
|
|
import "mygo/model"
|
|
|
|
type NoneResponse struct {
|
|
}
|
|
|
|
type GetCodeBody struct {
|
|
Code string `json:"code"`
|
|
}
|
|
|
|
type LoginResponse struct {
|
|
User model.User `json:"user"`
|
|
Jwt string `json:"jwt"`
|
|
}
|
|
|
|
type AgentLoginResponse struct {
|
|
User model.GameAgent `json:"user"`
|
|
Jwt string `json:"jwt"`
|
|
}
|
|
|
|
type AdminListResponse struct {
|
|
Users []model.User `json:"users"`
|
|
Count int64 `json:"count"`
|
|
}
|
|
|
|
type CreateAdminResponse struct {
|
|
Id string `json:"id"`
|
|
}
|
|
|
|
type GetRoleResponse struct {
|
|
Role model.Role `json:"role"`
|
|
}
|
|
|
|
type RolesResponse struct {
|
|
Roles []model.Role `json:"roles"`
|
|
Count int64 `json:"count"`
|
|
}
|
|
|
|
type MenusResponse struct {
|
|
Routes []model.MyMenu `json:"routes"`
|
|
}
|
|
|
|
type RoutesResponse struct {
|
|
Routes []model.Routes `json:"routes"`
|
|
}
|
|
|
|
type RoleRoutesResponse struct {
|
|
Routes []model.RoleRoutes `json:"routes"`
|
|
}
|
|
|
|
type MemberListResponse struct {
|
|
Total int64 `json:"total"` //总数
|
|
Page int64 `json:"page,omitempty"` //页码
|
|
Limit int64 `json:"limit,omitempty"` //页大小
|
|
List []model.Member `json:"list,omitempty"` //列表
|
|
}
|
|
type GameUserListResponse struct {
|
|
Total int64 `json:"total"` //总数
|
|
Page int64 `json:"page,omitempty"` //页码
|
|
Limit int64 `json:"limit,omitempty"` //页大小
|
|
List []model.GameUser `json:"list,omitempty"` //列表
|
|
Referrer map[int]int `json:"referrer,omitempty"` //列表
|
|
|
|
}
|
|
|
|
type GameCodeListResponse struct {
|
|
Total int64 `json:"total"` //总数
|
|
Page int64 `json:"page"` //页码
|
|
Limit int64 `json:"limit"` //页大小
|
|
List []model.GameCode `json:"list"` //列表
|
|
}
|
|
|
|
type GameServerListResponse struct {
|
|
Total int64 `json:"total"` //总数
|
|
Page int64 `json:"page"` //页码
|
|
Limit int64 `json:"limit"` //页大小
|
|
List []model.RespGameServer `json:"list"` //列表
|
|
}
|
|
|
|
type ServerItemListResponse struct {
|
|
Total int64 `json:"total"` //总数
|
|
Page int64 `json:"page"` //页码
|
|
Limit int64 `json:"limit"` //页大小
|
|
List []model.RespServerItem `json:"list"` //列表
|
|
}
|
|
|
|
type OnlineUsersResponse struct {
|
|
Count int64 `json:"count"`
|
|
}
|
|
|
|
type AdminAgentResponse struct {
|
|
Agent model.AgentAdmin `json:"agent"` //列表
|
|
}
|
|
|
|
type AdminHomeResponse struct {
|
|
TodayUserTotal int64 `json:"today_user_total"`
|
|
UserTotal int64 `json:"user_total"`
|
|
TodayRechargeTotal int64 `json:"today_recharge_total"`
|
|
RechargeTotal int64 `json:"recharge_total"`
|
|
ThisWeek []int `json:"this_week"`
|
|
LastWeek []int `json:"last_week"`
|
|
ThisMonth []int `json:"this_month"`
|
|
LastMonth []int `json:"last_month"`
|
|
}
|
|
|
|
type AgentHomeResponse struct {
|
|
UserTotal int64 `json:"user_total"`
|
|
RechargeTotal int64 `json:"recharge_total"`
|
|
WithdrawTotal float64 `json:"withdraw_total"`
|
|
NotWithdrawTotal float64 `json:"not_withdraw_total"`
|
|
ThisMonthRecharge []int `json:"this_month_recharge"`
|
|
LastMonthRecharge []int `json:"last_month_recharge"`
|
|
ThisMonthWithdraw []float64 `json:"this_month_withdraw"`
|
|
LastMonthWithdraw []float64 `json:"last_month_withdraw"`
|
|
}
|
|
|
|
type AgentUrlResponse struct {
|
|
Url string `json:"url"`
|
|
}
|
|
|
|
type AgentRebateLogResponse struct {
|
|
Total int64 `json:"total"` //总数
|
|
Page int64 `json:"page"` //页码
|
|
Limit int64 `json:"limit"` //页大小
|
|
List []model.OrderRebateLog `json:"list"` //列表
|
|
}
|
|
|
|
type AgentWithdrawLogResponse struct {
|
|
Total int64 `json:"total"` //总数
|
|
Page int64 `json:"page"` //页码
|
|
Limit int64 `json:"limit"` //页大小
|
|
List []model.Withdraw `json:"list"` //列表
|
|
}
|
|
|
|
type RechargeListResponse struct {
|
|
Total int64 `json:"total"` //总数
|
|
Page int64 `json:"page"` //页码
|
|
Limit int64 `json:"limit"` //页大小
|
|
List []model.RechargeOrder `json:"list"` //列表
|
|
}
|
|
|
|
type ActivityListResponse struct {
|
|
List []model.ActivityConfig `json:"list"` //列表
|
|
}
|
|
|
|
type MailListResponse struct {
|
|
Total int64 `json:"total"` //总数
|
|
Page int64 `json:"page"` //页码
|
|
Limit int64 `json:"limit"` //页大小
|
|
List []model.Mail `json:"list"` //列表
|
|
}
|
|
|
|
type GameAgentListResponse struct {
|
|
Total int64 `json:"total"` //总数
|
|
Page int64 `json:"page,omitempty"` //页码
|
|
Limit int64 `json:"limit,omitempty"` //页大小
|
|
List []model.GameAgent `json:"list,omitempty"` //列表
|
|
}
|
|
|
|
type GetBiliResponse struct {
|
|
Bili float64 `json:"bili"`
|
|
}
|
|
|
|
type GameTixianListResponse struct {
|
|
Total int64 `json:"total"` //总数
|
|
Page int64 `json:"page,omitempty"` //页码
|
|
Limit int64 `json:"limit,omitempty"` //页大小
|
|
List []model.GameTiXian `json:"list,omitempty"` //列表
|
|
}
|