sk_gm_server/library/mongo/gm/ModifyItemLog.go

31 lines
1.4 KiB
Go
Raw Normal View History

2023-03-20 13:38:28 +08:00
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)
)