sk_gm_server/library/mongo/gm/SendMail.go

32 lines
1.5 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 SendMailLog 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"` //参数
Title string `bson:"title" json:"title"` //标题
Content string `bson:"content" json:"content"` //内容
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.
TableSendMailLog = "send_mail_log"
SendMailLogTablbeName = g.Config().GetString("db.core")
// Model is the model object of account.
ModelSendMailLog = dao.NewMgo(SendMailLogTablbeName, TableSendMailLog)
)