game_sync/model/permit.go

41 lines
1001 B
Go

package model
// BackendPermitCycle 赛季周期
type BackendPermitCycle struct {
Platform string // 平台
StartTs, EndTs int64 // 活动开始时间
}
type AwardItem struct {
Id int32 // 道具id
Num int64
}
// BackendPermitRank 玩家排名奖励
type BackendPermitRank struct {
Platform string // 平台
StartTs int64 // 活动开始时间
SnId int32 // 玩家id
Rank int32 // 排名 1~100
Awards []AwardItem // 奖励
Score int64 // 积分
}
// BackendPermitExchange 玩家兑换
type BackendPermitExchange struct {
Platform string // 平台
StartTs int64 // 活动开始时间
SnId int32 // 玩家id
Id int32 // 商品id
Cost []AwardItem // 消耗
Gain []AwardItem // 获得
Ts int64 // 时间戳
}
// BackendPermitJoin 玩家参与活动
type BackendPermitJoin struct {
Platform string // 平台
StartTs int64 // 活动开始时间
SnId int32 // 玩家id
}