package gm import ( "github.com/gogf/gf/frame/g" dao "gmanager/library/mongo" "go.mongodb.org/mongo-driver/bson/primitive" ) type ModifyItemLog struct { Id primitive.ObjectID `bson:"_id" json:"id"` UserId string `bson:"user_id" json:"userid"` //用户id ServerId string `bson:"server_id" json:"serverid"` //服务器id ServerName string `bson:"server_name" json:"servername"` //服务器id Param string `bson:"param" json:"param"` //参数 ModifyMode int `bson:"modifyMode" json:"modifyMode"` //修改模式1增2减 Cmd string `bson:"cmd" json:"cmd"` //cmd = sendmail GMIp string `bson:"gm_ip" json:"gmip"` GMPort string `bson:"gm_port" json:"gmport"` UpdateUser string `bson:"update_user" json:"updateuser"` //操作人 UpdateTime int64 `bson:"update_time" json:"updatetime"` //操作时间 State int `bson:"state" json:"state"` // 邮件状态:0:未发送 1:已发送 2:发送中 3:发送失败 } var ( // Table is the table name of account. TableModifyItemLog = "modify_item_log" ModifyItemLogTablbeName = g.Config().GetString("db.core") // Model is the model object of account. ModelModifyItemLog = dao.NewMgo(SendMailLogTablbeName, TableSendMailLog) )