28 lines
882 B
Go
28 lines
882 B
Go
package modelmongo
|
||
|
||
import "go.mongodb.org/mongo-driver/bson/primitive"
|
||
|
||
const LogItem = "log_itemlog"
|
||
|
||
type ItemInfo struct {
|
||
ItemId int32
|
||
ItemNum int64
|
||
}
|
||
|
||
type ItemLog struct {
|
||
LogId primitive.ObjectID `bson:"_id"`
|
||
Platform string //平台
|
||
SnId int32 //玩家id
|
||
LogType int32 //记录类型 0.获取 1.消耗
|
||
ItemId int32 //道具id
|
||
ItemName string //道具名称
|
||
Count int64 //个数
|
||
CreateTs int64 //记录时间
|
||
Remark string //备注
|
||
TypeId int32 // 变化类型
|
||
GameId int32 // 游戏id,游戏中获得时有值
|
||
GameFreeId int32 // 场次id,游戏中获得时有值
|
||
Cost []*ItemInfo // 消耗的道具
|
||
Id string // 撤销的id,兑换失败
|
||
}
|