Documentation ¶
Index ¶
Constants ¶
View Source
const DemoCollectionName = "demo"
DemoCollectionName 在mongo表名,约定首字母小写
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Demo ¶
type Demo struct { mongo.PublicFields `bson:",inline"` UserID string `bson:"userID" json:"userID"` // 用户id FileID string `bson:"fileID" json:"fileID"` // 文件id TaskID string `bson:"taskID" json:"taskID"` // 策略运行id,需要建立索引 PolicyName string `bson:"policyName" json:"policyName"` // 用户命名的策略名称 Message interface{} `bson:"message" json:"message"` // 信息内容 }
Demo 用户消息
func FindAndModifyDemo ¶
FindAndModifyDemo 更新并返回最新记录
Click to show internal directories.
Click to hide internal directories.