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