Documentation
¶
Index ¶
Constants ¶
View Source
const TableNameChargeRefund = "charge_refund"
View Source
const TableNameWtDevice = "wt_device"
View Source
const TableNameWtGamecenter = "wt_gamecenter"
View Source
const TableNameWtGift = "wt_gift"
View Source
const TableNameWtLegion = "wt_legion"
View Source
const TableNameWtOrder = "wt_order"
View Source
const TableNameWtPlayer = "wt_player"
View Source
const TableNameWtSocial = "wt_social"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ChargeRefund ¶ added in v1.1.10
type ChargeRefund struct {
ID uint64 `gorm:"column:id;type:bigint unsigned;primaryKey;autoIncrement:true" json:"id"`
GameCenterID string `gorm:"column:game_center_id;type:varchar(255);not null;index:game_center_id,priority:1" json:"game_center_id"`
PlayerID int64 `gorm:"column:player_id;type:bigint;not null;index:player_id,priority:1" json:"player_id"`
TotalCharge float64 `gorm:"column:total_charge;type:double;not null" json:"total_charge"`
Diamonds int64 `gorm:"column:diamonds;type:bigint;not null" json:"diamonds"`
Acquired bool `gorm:"column:acquired;type:tinyint(1);not null" json:"acquired"`
CreatedAt time.Time `gorm:"column:created_at;type:datetime;not null;default:CURRENT_TIMESTAMP" json:"created_at"`
UpdatedAt time.Time `gorm:"column:updated_at;type:datetime;not null;default:CURRENT_TIMESTAMP" json:"updated_at"`
DeletedAt gorm.DeletedAt `gorm:"column:deleted_at;type:datetime" json:"deleted_at"`
}
ChargeRefund mapped from table <charge_refund>
func (*ChargeRefund) TableName ¶ added in v1.1.10
func (*ChargeRefund) TableName() string
TableName ChargeRefund's table name
type WtDevice ¶
type WtDevice struct {
ID string `gorm:"column:id;type:varchar(60);primaryKey;comment:设备ID" json:"id"` // 设备ID
PlayerID int64 `gorm:"column:player_id;type:bigint;not null;comment:玩家ID" json:"player_id"` // 玩家ID
DeviceRegion string `gorm:"column:device_region;type:varchar(5);not null;comment:设备地区" json:"device_region"` // 设备地区
CreateTime time.Time `gorm:"column:create_time;type:timestamp;not null;default:CURRENT_TIMESTAMP;comment:创建时间" json:"create_time"` // 创建时间
UpdateTime time.Time `gorm:"column:update_time;type:timestamp;not null;default:CURRENT_TIMESTAMP;comment:更新时间" json:"update_time"` // 更新时间
}
WtDevice 玩家设备关系表
type WtGamecenter ¶
type WtGamecenter struct {
ID string `gorm:"column:id;type:varchar(255);primaryKey" json:"id"`
BundleID string `gorm:"column:bundle_id;type:varchar(64);not null;index:bundle_id,priority:1;comment:BUNDLE ID" json:"bundle_id"` // BUNDLE ID
PlayerID int64 `gorm:"column:player_id;type:bigint;not null;index:player_id,priority:1;comment:玩家ID" json:"player_id"` // 玩家ID
GcDisplayName string `gorm:"column:gc_display_name;type:varchar(128);comment:GC displayName" json:"gc_display_name"` // GC displayName
GcGamePlayerID string `gorm:"column:gc_game_player_id;type:varchar(255)" json:"gc_game_player_id"`
GcTeamPlayerID string `gorm:"column:gc_team_player_id;type:varchar(255)" json:"gc_team_player_id"`
GcPlayerID string `gorm:"column:gc_player_id;type:varchar(255)" json:"gc_player_id"`
CreateTime time.Time `gorm:"column:create_time;type:timestamp;not null;default:CURRENT_TIMESTAMP;comment:创建时间" json:"create_time"` // 创建时间
UpdateTime time.Time `gorm:"column:update_time;type:timestamp;not null;default:CURRENT_TIMESTAMP;comment:更新时间" json:"update_time"` // 更新时间
}
WtGamecenter 玩家和GameCenter关系表
func (*WtGamecenter) TableName ¶
func (*WtGamecenter) TableName() string
TableName WtGamecenter's table name
type WtGift ¶
type WtGift struct {
ID int64 `gorm:"column:id;type:bigint;primaryKey;autoIncrement:true;comment:主键" json:"id"` // 主键
GiftCode string `gorm:"column:gift_code;type:varchar(32);not null;uniqueIndex:uni_gift_code,priority:1;comment:礼品码" json:"gift_code"` // 礼品码
GiftProductID string `gorm:"column:gift_product_id;type:varchar(64);not null;comment:奖励商品ID" json:"gift_product_id"` // 奖励商品ID
GiftType int32 `gorm:"column:gift_type;type:tinyint;not null;default:1;comment:礼品码类型" json:"gift_type"` // 礼品码类型
BundleID string `gorm:"column:bundle_id;type:varchar(64);not null;comment:bundle_id" json:"bundle_id"` // bundle_id
EffectiveTime time.Time `gorm:"column:effective_time;type:timestamp;not null;default:CURRENT_TIMESTAMP;comment:生效时间" json:"effective_time"` // 生效时间
ExpireTime time.Time `gorm:"column:expire_time;type:timestamp;not null;default:CURRENT_TIMESTAMP;comment:过期时间" json:"expire_time"` // 过期时间
GiftStatus int32 `gorm:"column:gift_status;type:tinyint;not null;comment:状态" json:"gift_status"` // 状态
CreateTime time.Time `gorm:"column:create_time;type:timestamp;not null;default:CURRENT_TIMESTAMP;comment:创建时间" json:"create_time"` // 创建时间
UpdateTime time.Time `gorm:"column:update_time;type:timestamp;not null;default:CURRENT_TIMESTAMP;comment:更新时间" json:"update_time"` // 更新时间
Version int64 `gorm:"column:version;type:bigint;not null;comment:数据版本锁" json:"version"` // 数据版本锁
}
WtGift 礼品码表
type WtLegion ¶
type WtLegion struct {
ID uint64 `gorm:"column:id;type:bigint unsigned;primaryKey;autoIncrement:true;comment:军团ID" json:"id"` // 军团ID
Tag string `gorm:"column:tag;type:varchar(10);not null;uniqueIndex:tag,priority:1;comment:8位简码" json:"tag"` // 8位简码
LegionName string `gorm:"column:legion_name;type:varchar(100);not null;index:legion_name,priority:1;comment:军团名" json:"legion_name"` // 军团名
LegionBanner datatypes.JSON `gorm:"column:legion_banner;type:json;comment:军团旗帜" json:"legion_banner"` // 军团旗帜
Slogan string `gorm:"column:slogan;type:varchar(500);not null;comment:标语" json:"slogan"` // 标语
LimitTrophy int32 `gorm:"column:limit_trophy;type:int;not null;comment:奖杯限制" json:"limit_trophy"` // 奖杯限制
LimitWeek int32 `gorm:"column:limit_week;type:int;not null;default:12;comment:周数限制" json:"limit_week"` // 周数限制
Members datatypes.JSON `gorm:"column:members;type:json;not null;comment:成员" json:"members"` // 成员
OpenLvl int32 `gorm:"column:open_lvl;type:tinyint;not null;comment:开放级别" json:"open_lvl"` // 开放级别
TrophyScore int32 `gorm:"column:trophy_score;type:int;not null;comment:奖杯分" json:"trophy_score"` // 奖杯分
CreateTime time.Time `gorm:"column:create_time;type:timestamp;not null;default:CURRENT_TIMESTAMP;comment:创建时间" json:"create_time"` // 创建时间
UpdateTime time.Time `gorm:"column:update_time;type:timestamp;not null;default:CURRENT_TIMESTAMP;comment:更新时间" json:"update_time"` // 更新时间
Version int64 `gorm:"column:version;type:bigint;not null;comment:版本锁" json:"version"` // 版本锁
WarScore int32 `gorm:"column:war_score;type:int;not null;comment:军团战分数" json:"war_score"` // 军团战分数
JoinWar int32 `gorm:"column:join_war;type:tinyint;not null;comment:是否加入军团战" json:"join_war"` // 是否加入军团战
TankNumLimit int32 `gorm:"column:tank_num_limit;type:tinyint;not null;comment:加入军团的坦克限制" json:"tank_num_limit"` // 加入军团的坦克限制
Language string `gorm:"column:language;type:varchar(20);not null;comment:军团语言设置" json:"language"` // 军团语言设置
}
WtLegion 军团表
type WtOrder ¶
type WtOrder struct {
ID string `gorm:"column:id;type:varchar(64);primaryKey;comment:订单ID" json:"id"` // 订单ID
PlayerID int64 `gorm:"column:player_id;type:bigint;not null;index:player_id,priority:1;comment:玩家ID" json:"player_id"` // 玩家ID
BundleID string `gorm:"column:bundle_id;type:varchar(64);not null;comment:BUNDLE ID" json:"bundle_id"` // BUNDLE ID
OrderStatus int32 `gorm:"column:order_status;type:tinyint;not null;comment:订单类型" json:"order_status"` // 订单类型
ProductID string `gorm:"column:product_id;type:varchar(64);not null;comment:产品ID" json:"product_id"` // 产品ID
PayType int32 `gorm:"column:pay_type;type:tinyint;not null;comment:支付类型" json:"pay_type"` // 支付类型
CreateTime time.Time `gorm:"column:create_time;type:timestamp;not null;default:CURRENT_TIMESTAMP;comment:创建时间" json:"create_time"` // 创建时间
UpdateTime time.Time `gorm:"column:update_time;type:timestamp;not null;default:CURRENT_TIMESTAMP;comment:更新时间" json:"update_time"` // 更新时间
TransID string `gorm:"column:trans_id;type:varchar(512);index:trans_id,priority:1;comment:交易ID" json:"trans_id"` // 交易ID
OrderInfo string `gorm:"column:order_info;type:text;comment:订单信息" json:"order_info"` // 订单信息
RewardInfo string `gorm:"column:reward_info;type:varchar(512);comment:奖励信息" json:"reward_info"` // 奖励信息
Version int64 `gorm:"column:version;type:bigint;comment:数据版本" json:"version"` // 数据版本
}
WtOrder 订单表
type WtPlayer ¶
type WtPlayer struct {
ID uint64 `gorm:"column:id;type:bigint unsigned;primaryKey;autoIncrement:true;comment:玩家ID" json:"id"` // 玩家ID
VisitorID string `gorm:"column:visitor_id;type:varchar(64);not null;index:visitor_id,priority:1;comment:访问ID" json:"visitor_id"` // 访问ID
Tag string `gorm:"column:tag;type:varchar(10);not null;uniqueIndex:tag,priority:1;comment:8位简码" json:"tag"` // 8位简码
PlayerLvl int32 `gorm:"column:player_lvl;type:int;not null;default:1;comment:玩家等级" json:"player_lvl"` // 玩家等级
PlayerExp int32 `gorm:"column:player_exp;type:int;not null;comment:玩家经验值" json:"player_exp"` // 玩家经验值
Nickname string `gorm:"column:nickname;type:varchar(100);not null;comment:玩家名称" json:"nickname"` // 玩家名称
Icons datatypes.JSON `gorm:"column:icons;type:json;not null;comment:头像" json:"icons"` // 头像
GoldPool int32 `gorm:"column:gold_pool;type:int;not null;default:600;comment:金币池" json:"gold_pool"` // 金币池
GoldPoolTs int32 `gorm:"column:gold_pool_ts;type:int;not null;comment:金币池上次更新的秒数" json:"gold_pool_ts"` // 金币池上次更新的秒数
Diamond int32 `gorm:"column:diamond;type:int;not null;comment:钻石" json:"diamond"` // 钻石
Gold int64 `gorm:"column:gold;type:bigint;not null;comment:金币" json:"gold"` // 金币
LegionID int32 `gorm:"column:legion_id;type:int;not null;index:legion_id,priority:1;comment:军团ID" json:"legion_id"` // 军团ID
LegionName string `gorm:"column:legion_name;type:varchar(100);not null;comment:军团名" json:"legion_name"` // 军团名
LegionPosition int32 `gorm:"column:legion_position;type:tinyint;not null;comment:军团职位" json:"legion_position"` // 军团职位
Tier int32 `gorm:"column:tier;type:int;not null;default:1;comment:战场级别" json:"tier"` // 战场级别
Trophy int32 `gorm:"column:trophy;type:int;not null;index:trophy,priority:1;comment:奖杯数" json:"trophy"` // 奖杯数
TrophyRoad datatypes.JSON `gorm:"column:trophy_road;type:json;not null;comment:荣耀之路" json:"trophy_road"` // 荣耀之路
Vip datatypes.JSON `gorm:"column:vip;type:json;not null" json:"vip"`
ChestInfo datatypes.JSON `gorm:"column:chest_info;type:json;not null;comment:宝箱信息" json:"chest_info"` // 宝箱信息
Garage datatypes.JSON `gorm:"column:garage;type:json;not null;comment:车库" json:"garage"` // 车库
Inventory datatypes.JSON `gorm:"column:inventory;type:json;not null;comment:库存信息" json:"inventory"` // 库存信息
PathOfValor datatypes.JSON `gorm:"column:path_of_valor;type:json;not null;comment:英勇之路" json:"path_of_valor"` // 英勇之路
IPRegion string `gorm:"column:ip_region;type:varchar(5);not null;comment:IP地区" json:"ip_region"` // IP地区
DeviceRegion string `gorm:"column:device_region;type:varchar(5);not null;comment:设备地区" json:"device_region"` // 设备地区
RenameTimes int32 `gorm:"column:rename_times;type:int;not null;comment:改名次数" json:"rename_times"` // 改名次数
SettlementTrophy int32 `gorm:"column:settlement_trophy;type:int;not null;comment:结算奖杯数" json:"settlement_trophy"` // 结算奖杯数
StatisticsInfo datatypes.JSON `gorm:"column:statistics_info;type:json;not null;comment:统计信息" json:"statistics_info"` // 统计信息
GuideInfo datatypes.JSON `gorm:"column:guide_info;type:json;not null;comment:新手信息" json:"guide_info"` // 新手信息
Status int32 `gorm:"column:status;type:int;not null;default:1;comment:账号状态" json:"status"` // 账号状态
CreateTime time.Time `gorm:"column:create_time;type:timestamp;not null;default:CURRENT_TIMESTAMP;comment:创建时间" json:"create_time"` // 创建时间
UpdateTime time.Time `gorm:"column:update_time;type:timestamp;not null;default:CURRENT_TIMESTAMP;comment:更新时间" json:"update_time"` // 更新时间
LastLoginTime time.Time `` // 最后登录时间
/* 129-byte string literal not displayed */
Version int64 `gorm:"column:version;type:bigint;not null;index:version,priority:1;comment:锁版本" json:"version"` // 锁版本
JoinWar int32 `gorm:"column:join_war;type:tinyint;not null;comment:是否加入军团战" json:"join_war"` // 是否加入军团战
TankTeam datatypes.JSON `gorm:"column:tank_team;type:json;comment:军团战坦克编组" json:"tank_team"` // 军团战坦克编组
CompetitiveRank datatypes.JSON `gorm:"column:competitive_rank;type:json;comment:竞技模式排行数据" json:"competitive_rank"` // 竞技模式排行数据
}
WtPlayer 玩家表
type WtSocial ¶
type WtSocial struct {
ID string `gorm:"column:id;type:varchar(60);primaryKey;comment:社交账号ID" json:"id"` // 社交账号ID
PlayerID int64 `gorm:"column:player_id;type:bigint;primaryKey;comment:玩家ID" json:"player_id"` // 玩家ID
SocialType int32 `gorm:"column:social_type;type:tinyint;not null;comment:社交账号类型" json:"social_type"` // 社交账号类型
CreateTime time.Time `gorm:"column:create_time;type:timestamp;not null;default:CURRENT_TIMESTAMP;comment:创建时间" json:"create_time"` // 创建时间
UpdateTime time.Time `gorm:"column:update_time;type:timestamp;not null;default:CURRENT_TIMESTAMP;comment:更新时间" json:"update_time"` // 更新时间
}
WtSocial 玩家与社交账号绑定信息表
Click to show internal directories.
Click to hide internal directories.