sk_gm_server/library/mongo/gm/SendMsg.go

28 lines
1.3 KiB
Go

package gm
import (
"github.com/gogf/gf/frame/g"
dao "gmanager/library/mongo"
"go.mongodb.org/mongo-driver/bson/primitive"
)
type SendMsgLog struct {
Id primitive.ObjectID `bson:"_id" json:"id"`
ServerIdList []string `bson:"server_id_list" json:"server_id_list"` //服务器id
ServerNameList []string `bson:"server_name_list" json:"server_name_list"` //服务器id
Content string `bson:"content" json:"content"` //cmd = silence
SendTime int64 `bson:"send_time" json:"send_time"` //操作时间
Speed int32 `bson:"speed" json:"speed"` //操作时间
MulTimes int32 `bson:"mul_times" json:"mul_times"` //操作时间
UpdateUser string `bson:"update_user" json:"update_user"` //操作人
UpdateTime int64 `bson:"update_time" json:"update_time"` //操作时间
}
var (
// Table is the table name of account.
TableSendMsg = "send_msg_log"
SendMsgTablbeName = g.Config().GetString("db.core")
// Model is the model object of account.
ModelSendMsg = dao.NewMgo(SendMsgTablbeName, TableSendMsg)
)