CreatcdkLog.go 1.5 KB

123456789101112131415161718192021222324252627282930
  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 CreatcdkLog struct {
  8. Id primitive.ObjectID `bson:"_id" json:"id"`
  9. InfoId int `bson:"info_id" json:"infoid"`
  10. ServerId string `bson:"server_id" json:"serverid"` //服务器id
  11. ServerName string `bson:"server_name" json:"servername"` //服务器名称
  12. Ctype string `bson:"ctype" json:"ctype"` //类型
  13. Reward string `bson:"reward" json:"reward"` //奖励
  14. Title string `bson:"title" json:"title"` //邮件标题
  15. Contetnt string `bson:"contetnt" json:"contetnt"` //邮件内容
  16. ChannelName string `bson:"channel_name" json:"channelname"` //奖励标题
  17. Cmd string `bson:"cmd" json:"cmd"` //cmd = creatcdk
  18. UpdateUser string `bson:"update_user" json:"updateuser"` //操作人
  19. UpdateTime int64 `bson:"update_time" json:"updatetime"` //操作时间
  20. }
  21. var (
  22. // Table is the table name of account.
  23. TableCreatcdkLog = "creatcdk_log"
  24. CreatcdkLogTablbeName = g.Config().GetString("db.core")
  25. // Model is the model object of account.
  26. ModelCreatcdkLog = dao.NewMgo(CreatcdkLogTablbeName, TableCreatcdkLog)
  27. )