ModifyItemLog.go 1.4 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 ModifyItemLog struct {
  8. Id primitive.ObjectID `bson:"_id" json:"id"`
  9. UserId string `bson:"user_id" json:"userid"` //用户id
  10. ServerId string `bson:"server_id" json:"serverid"` //服务器id
  11. ServerName string `bson:"server_name" json:"servername"` //服务器id
  12. Param string `bson:"param" json:"param"` //参数
  13. ModifyMode int `bson:"modifyMode" json:"modifyMode"` //修改模式1增2减
  14. Cmd string `bson:"cmd" json:"cmd"` //cmd = sendmail
  15. GMIp string `bson:"gm_ip" json:"gmip"`
  16. GMPort string `bson:"gm_port" json:"gmport"`
  17. UpdateUser string `bson:"update_user" json:"updateuser"` //操作人
  18. UpdateTime int64 `bson:"update_time" json:"updatetime"` //操作时间
  19. State int `bson:"state" json:"state"` // 邮件状态:0:未发送 1:已发送 2:发送中 3:发送失败
  20. }
  21. var (
  22. // Table is the table name of account.
  23. TableModifyItemLog = "modify_item_log"
  24. ModifyItemLogTablbeName = g.Config().GetString("db.core")
  25. // Model is the model object of account.
  26. ModelModifyItemLog = dao.NewMgo(SendMailLogTablbeName, TableSendMailLog)
  27. )