|
|
|
package entity
|
|
|
|
|
|
|
|
import "go.mongodb.org/mongo-driver/bson/primitive"
|
|
|
|
|
|
|
|
type RolePost struct {
|
|
|
|
Uid int64 `json:"uid" description:"桃园ID"`
|
|
|
|
Name string `json:"name" description:"桃园名字"`
|
|
|
|
Region int `json:"region" description:"区服"`
|
|
|
|
TotalTime int64 `json:"totalTime" description:"总在线时间"`
|
|
|
|
RechargeTotal int32 `json:"rechargeTotal" description:"累计充值"`
|
|
|
|
CreateTime primitive.DateTime `json:"createTime" description:"创建时间"`
|
|
|
|
LastLeaveTime primitive.DateTime `json:"lastLeaveTime" description:"离线时间"`
|
|
|
|
}
|
|
|
|
|
|
|
|
type RoleDetail struct {
|
|
|
|
Uid int64 `json:"uid" description:"桃园ID"`
|
|
|
|
Name string `json:"name" description:"桃园名字"`
|
|
|
|
Boom int32 `json:"boom" description:"繁荣度"`
|
|
|
|
VillageScale int32 `json:"villageScale" description:"规模等级"`
|
|
|
|
GiftIds []int32 `json:"giftIds" description:"礼包码"`
|
|
|
|
Account string `json:"account" description:"账号名字"`
|
|
|
|
Gm int `json:"gm"`
|
|
|
|
}
|
|
|
|
|
|
|
|
type Mail struct {
|
|
|
|
Id string `json:"id" description:"邮件ID"`
|
|
|
|
ServerId string `json:"serverId" bson:"serverId" description:"服务器ID"`
|
|
|
|
C_date interface{} `json:"c_date" bson:"c_date" description:"邮件创建时间"`
|
|
|
|
To interface{} `json:"to" description:"邮件发送对象"`
|
|
|
|
From string `json:"from" description:"发送者"`
|
|
|
|
GmName string `json:"gmName" bson:"gmName" description:"GM名字"`
|
|
|
|
Type string `json:"type" description:"1 奖励,2活动,3公告"`
|
|
|
|
Expired int64 `json:"expired" description:"过期时间"`
|
|
|
|
Time int64 `json:"time" description:"发送时间,0表示马上发送"`
|
|
|
|
NewGet string `json:"newGet" bson:"newGet" description:"新玩家可领取"`
|
|
|
|
RepeatedCollection interface{} `json:"repeatedCollection" bson:"repeatedCollection" description:"1表示可以重复领取"`
|
|
|
|
Title string `json:"title" description:"标题"`
|
|
|
|
Content string `json:"content" description:"邮件内容"`
|
|
|
|
Drops []Drop `json:"drops" bson:"drops" description:"赠送物品"`
|
|
|
|
Remark string `json:"remark" description:"发送理由"`
|
|
|
|
}
|
|
|
|
type Drop struct {
|
|
|
|
Id string `json:"id" bson:"id"`
|
|
|
|
Num string `json:"num" bson:"num"`
|
|
|
|
}
|
|
|
|
|
|
|
|
type Order struct {
|
|
|
|
Id string `json:"_id" description:"订单ID"`
|
|
|
|
Uid string `json:"uid" description:"账号uid"`
|
|
|
|
Server int32 `json:"server" description:"服务器id"`
|
|
|
|
Money int32 `json:"money" description:"充值数额"`
|
|
|
|
Timestamp int64 `json:"timestamp" description:"订单时间"`
|
|
|
|
RechargeId int32 `json:"rechargeId" description:"商品ID"`
|
|
|
|
CreateTime interface{} `json:"createTime" description:"本条记录产生的时间"`
|
|
|
|
OrderId string `json:"orderId" description:"渠道订单ID"`
|
|
|
|
State int32 `json:"state" description:"订单状态 3: 金额问题; 8:年龄不足,身份未认证,账号不存在;7:获取账号失败;6:获取订单充值配置失败,订单配置与充值金额不匹配;4:充值达到上限;5:订单验证失败;10:令牌验证失败;1:参数错误,2成功,9:分服http error"`
|
|
|
|
}
|
|
|
|
|
|
|
|
type OrderCount struct {
|
|
|
|
ServerId int `json:"serverId"`
|
|
|
|
Num int32 `json:"num" description:"充值人数"`
|
|
|
|
Times int32 `json:"times" description:"充值笔数"`
|
|
|
|
AllMoney int32 `json:"allMoney" `
|
|
|
|
TotalMoney int32 `json:"totalMoney" `
|
|
|
|
TotalNum int32 `json:"totalNum" description:"总充值人数"`
|
|
|
|
TotalTimes int32 `json:"totalTimes" description:"总充值笔数"`
|
|
|
|
}
|
|
|
|
|
|
|
|
type Online struct {
|
|
|
|
ConnectId string `json:"connectId"`
|
|
|
|
Uid int32 `json:"uid"`
|
|
|
|
Address string `json:"address"`
|
|
|
|
LoginTime int64 `json:"loginTime"`
|
|
|
|
}
|
|
|
|
|
|
|
|
type AccountInfo struct {
|
|
|
|
Account string `json:"account"`
|
|
|
|
TrueName string `json:"trueName"`
|
|
|
|
IdentityCard string `json:"identityCard"`
|
|
|
|
Tel string `json:"tel"`
|
|
|
|
LastLeaveTime primitive.DateTime `json:"lastLeaveTime"`
|
|
|
|
CreateTime primitive.DateTime `json:"createTime"`
|
|
|
|
LeftPlayTime int64 `json:"leftPlayTime"`
|
|
|
|
Gm int `json:"gm"`
|
|
|
|
}
|
|
|
|
|
|
|
|
type Remain struct {
|
|
|
|
Date int64 `json:"date"`
|
|
|
|
RemainRate float32 `json:"remainRate"`
|
|
|
|
RemainVal int32 `json:"remainVal"`
|
|
|
|
Total int32 `json:"total"`
|
|
|
|
}
|