fix 红包领取记录
This commit is contained in:
parent
7feca84930
commit
aefb7c97cd
|
@ -43,9 +43,9 @@ type RedPacketColumns struct {
|
|||
|
||||
var redPacketColumns = &RedPacketColumns{
|
||||
ID: "_id",
|
||||
Cid: "Cid", // 红包活动id
|
||||
Use: "Use", // 已发红包 红包奖励数量:已发个数
|
||||
Ts: "Ts", // 更新时间戳
|
||||
Cid: "cid", // 红包活动id
|
||||
Use: "use", // 已发红包 红包奖励数量:已发个数
|
||||
Ts: "ts", // 更新时间戳
|
||||
}
|
||||
|
||||
func NewRedPacket() *RedPacket {
|
||||
|
|
|
@ -47,11 +47,11 @@ type RedPacketHistoryColumns struct {
|
|||
var redPacketHistoryColumns = &RedPacketHistoryColumns{
|
||||
Platform: "-", // 平台
|
||||
ID: "_id",
|
||||
Cid: "Cid", // 红包活动id
|
||||
Snid: "Snid", // 玩家id
|
||||
Ts: "Ts", // 时间戳
|
||||
ItemId: "ItemId", // 道具id
|
||||
ItemNum: "ItemNum",// 道具数量
|
||||
Cid: "cid", // 红包活动id
|
||||
Snid: "snid", // 玩家id
|
||||
Ts: "ts", // 时间戳
|
||||
ItemId: "itemid", // 道具id
|
||||
ItemNum: "itemnum",// 道具数量
|
||||
}
|
||||
|
||||
func NewRedPacketHistory() *RedPacketHistory {
|
||||
|
|
|
@ -11,9 +11,9 @@ import (
|
|||
//go:generate mongoctl -model-dir=. -model-names=RedPacket -dao-dir=../dao/
|
||||
type RedPacket struct {
|
||||
ID primitive.ObjectID `bson:"_id" gen:"autoFill"`
|
||||
Cid int64 // 红包活动id
|
||||
Use map[int64]int64 // 已发红包 红包奖励数量:已发个数
|
||||
Ts int64 // 更新时间戳
|
||||
Cid int64 `bson:"cid"` // 红包活动id
|
||||
Use map[int64]int64 `bson:"use"` // 已发红包 红包奖励数量:已发个数
|
||||
Ts int64 `bson:"ts"` // 更新时间戳
|
||||
}
|
||||
|
||||
func (r *RedPacket) DatabaseName() string {
|
||||
|
@ -80,11 +80,11 @@ type BackRedPacket struct {
|
|||
type RedPacketHistory struct {
|
||||
Platform string `bson:"-"` // 平台
|
||||
ID primitive.ObjectID `bson:"_id" gen:"autoFill"`
|
||||
Cid int64 // 红包活动id
|
||||
Snid int32 // 玩家id
|
||||
Ts int64 // 时间戳
|
||||
ItemId int32 // 道具id
|
||||
ItemNum int64 // 道具数量
|
||||
Cid int64 `bson:"cid"` // 红包活动id
|
||||
Snid int32 `bson:"snid"` // 玩家id
|
||||
Ts int64 `bson:"ts"` // 时间戳
|
||||
ItemId int32 `bson:"itemid"` // 道具id
|
||||
ItemNum int64 `bson:"itemnum"` // 道具数量
|
||||
}
|
||||
|
||||
func (r *RedPacketHistory) DatabaseName() string {
|
||||
|
|
Loading…
Reference in New Issue