HeroCommentLog.go 1.0 KB

1234567891011121314151617181920212223242526
  1. package gm
  2. import (
  3. "github.com/gogf/gf/frame/g"
  4. dao "gmanager/library/mongo"
  5. "go.mongodb.org/mongo-driver/bson/primitive"
  6. )
  7. type HeroCommentLog struct {
  8. Id primitive.ObjectID `bson:"_id" json:"id"`
  9. ServerId string `bson:"server_id" json:"serverid"` //服务器id
  10. ServerName string `bson:"server_name" json:"servername"` //服务器name
  11. Uid string `bson:"uid" json:"uid"`
  12. Stype int `bson:"stype" json:"stype"`
  13. Cmd string `bson:"cmd" json:"cmd"` //cmd = HeroCommentLog
  14. UpdateUser string `bson:"update_user" json:"updateuser"` //操作人
  15. UpdateTime int64 `bson:"update_time" json:"updatetime"` //操作时间
  16. }
  17. var (
  18. // Table is the table name of account.
  19. TableHeroCommentLog = "hero_comment_log"
  20. HeroCommentLogTablbeName = g.Config().GetString("db.core")
  21. // Model is the model object of account.
  22. ModelHeroCommentLog = dao.NewMgo(HeroCommentLogTablbeName, TableHeroCommentLog)
  23. )