道具日志

This commit is contained in:
sk 2024-05-14 09:36:50 +08:00
parent 0059b6d0c5
commit d534e73613
1 changed files with 7 additions and 4 deletions

View File

@ -1,14 +1,14 @@
package model
import (
"github.com/globalsign/mgo/bson"
"time"
"github.com/globalsign/mgo/bson"
)
var (
ItemLogDBName = "log"
ItemLogCollName = "log_itemlog"
TopicProbeItemLogAck = "ack_itemlog"
ItemLogDBName = "log"
ItemLogCollName = "log_itemlog"
)
type ItemLog struct {
@ -54,5 +54,8 @@ func NewItemLogEx(param ItemParam) *ItemLog {
itemLog.Count = param.Count
itemLog.CreateTs = time.Now().Unix()
itemLog.Remark = param.Remark
itemLog.TypeId = param.TypeId
itemLog.GameId = int32(param.GameId)
itemLog.GameFreeId = int32(param.GameFreeId)
return itemLog
}