Esempio n. 1
0
func delById(collection string, id string) {
	condition := mongo.Mongo{}
	condition.BizId = id
	del(collection, condition)
}
Esempio n. 2
0
func queryById(collection string, result interface{}, id string) {
	condition := mongo.Mongo{}
	condition.BizId = id
	query(collection, result, condition)
}
Esempio n. 3
0
func updateById(collection string, data interface{}, id string) {
	condition := mongo.Mongo{}
	condition.BizId = id
	update(collection, condition, data)
}