package model var ( DbCustomLogDBName = "log" DbCustomLogCollName = "log_custom" ) type PlayerInfo struct { SnId int32 // 玩家id Awards []*Item // 奖品 } type RoundInfo struct { Round int32 // 第几局 Ts int64 // 结算时间 Score []int64 // 分数 LogId string // 牌局记录id } type CustomLog struct { Platform string `bson:"-"` CycleId string // 本轮id,多局游戏属于同一轮 RoomConfigId int32 // 房间配置id GameFreeId int32 // 场次id TotalRound int32 // 总局数 PlayerNum int32 // 最大人数 Password string // 密码 CostType int32 // 付费方式 1AA 2房主 Voice int32 // 是否开启语音 1开启 RoomId int32 // 房间id SnId []PlayerInfo // 所有玩家 List []RoundInfo // 对局记录 StartTs, EndTs int64 // 开始,结束时间 State int32 // 0正常结束 1后台中途解散 }