| 1234567891011121314151617181920212223242526 |
- package gm
- import (
- "github.com/gogf/gf/frame/g"
- dao "gmanager/library/mongo"
- "go.mongodb.org/mongo-driver/bson/primitive"
- )
- type HeroCommentLog struct {
- Id primitive.ObjectID `bson:"_id" json:"id"`
- ServerId string `bson:"server_id" json:"serverid"` //服务器id
- ServerName string `bson:"server_name" json:"servername"` //服务器name
- Uid string `bson:"uid" json:"uid"`
- Stype int `bson:"stype" json:"stype"`
- Cmd string `bson:"cmd" json:"cmd"` //cmd = HeroCommentLog
- UpdateUser string `bson:"update_user" json:"updateuser"` //操作人
- UpdateTime int64 `bson:"update_time" json:"updatetime"` //操作时间
- }
- var (
- // Table is the table name of account.
- TableHeroCommentLog = "hero_comment_log"
- HeroCommentLogTablbeName = g.Config().GetString("db.core")
- // Model is the model object of account.
- ModelHeroCommentLog = dao.NewMgo(HeroCommentLogTablbeName, TableHeroCommentLog)
- )
|