generated from root/miduo_server
31 lines
1.5 KiB
Go
31 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 CreatcdkLog struct {
|
|
Id primitive.ObjectID `bson:"_id" json:"id"`
|
|
InfoId int `bson:"info_id" json:"infoid"`
|
|
ServerId string `bson:"server_id" json:"serverid"` //服务器id
|
|
ServerName string `bson:"server_name" json:"servername"` //服务器名称
|
|
Ctype string `bson:"ctype" json:"ctype"` //类型
|
|
Reward string `bson:"reward" json:"reward"` //奖励
|
|
Title string `bson:"title" json:"title"` //邮件标题
|
|
Contetnt string `bson:"contetnt" json:"contetnt"` //邮件内容
|
|
ChannelName string `bson:"channel_name" json:"channelname"` //奖励标题
|
|
Cmd string `bson:"cmd" json:"cmd"` //cmd = creatcdk
|
|
UpdateUser string `bson:"update_user" json:"updateuser"` //操作人
|
|
UpdateTime int64 `bson:"update_time" json:"updatetime"` //操作时间
|
|
}
|
|
|
|
var (
|
|
// Table is the table name of account.
|
|
TableCreatcdkLog = "creatcdk_log"
|
|
CreatcdkLogTablbeName = g.Config().GetString("db.core")
|
|
// Model is the model object of account.
|
|
ModelCreatcdkLog = dao.NewMgo(CreatcdkLogTablbeName, TableCreatcdkLog)
|
|
)
|