generated from root/miduo_server
32 lines
1.5 KiB
Go
32 lines
1.5 KiB
Go
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)
|
||
)
|