Documentation
¶
Index ¶
- type MgoDB
- func (mgodb MgoDB) Coll(table string) *mgo.Collection
- func (mgodb MgoDB) LimitQuery(mgocoll string, key interface{}, result interface{}, pageSize, pageNo int, ...) (int, error)
- func (mgodb MgoDB) LimitUpdate(mgocoll string, skey, data vmap.V) error
- func (mgodb MgoDB) Query(mgocoll string, key interface{}, result interface{}, pageSize, pageNo int, ...) (int, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MgoDB ¶
MgoDB mongodb
func (MgoDB) LimitQuery ¶
func (mgodb MgoDB) LimitQuery(mgocoll string, key interface{}, result interface{}, pageSize, pageNo int, selector vmap.V) (int, error)
LimitQuery 查询可管理的内容。屏蔽status为-1000和-2000的内容
func (MgoDB) LimitUpdate ¶
LimitUpdate 重新封装的mongodb的Update,屏蔽了对指定status的更新
Click to show internal directories.
Click to hide internal directories.