Documentation ¶
Index ¶
- Constants
- type AppManager
- func (r AppManager) Exist(query interface{}) bool
- func (r AppManager) FindAll(query, selector interface{}) (results []AppManager, err error)
- func (r AppManager) FindOne(query, selector interface{}) (role AppManager, err error)
- func (r AppManager) Insert() error
- func (r AppManager) Remove() error
- func (r AppManager) RemoveAppId(appId int64) error
- func (r AppManager) RemoveUserId(userId int64) error
- func (r AppManager) ToJson() string
- func (r AppManager) Update() error
Constants ¶
View Source
const (
AppManagerCollection = mongo_index.CollectionAppManager
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AppManager ¶
type AppManager struct { Id int64 `json:"id,omitempty" bson:"_id,omitempty"` UserId int64 `json:"user_id,omitempty" bson:"user_id,omitempty"` AppId int64 `json:"app_id,omitempty" bson:"app_id,omitempty"` CreateTime int64 `json:"create_time,omitempty" bson:"create_time,omitempty"` }
func (AppManager) Exist ¶
func (r AppManager) Exist(query interface{}) bool
func (AppManager) FindAll ¶
func (r AppManager) FindAll(query, selector interface{}) (results []AppManager, err error)
func (AppManager) FindOne ¶
func (r AppManager) FindOne(query, selector interface{}) (role AppManager, err error)
func (AppManager) Insert ¶
func (r AppManager) Insert() error
func (AppManager) Remove ¶
func (r AppManager) Remove() error
func (AppManager) RemoveAppId ¶
func (r AppManager) RemoveAppId(appId int64) error
func (AppManager) RemoveUserId ¶
func (r AppManager) RemoveUserId(userId int64) error
func (AppManager) ToJson ¶
func (r AppManager) ToJson() string
func (AppManager) Update ¶
func (r AppManager) Update() error
Click to show internal directories.
Click to hide internal directories.