model_user_role

package
v0.0.0-...-9e8b3cb Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 11, 2019 License: MIT Imports: 6 Imported by: 0

Documentation

Index

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) Exist

func (r UserRole) Exist(query interface{}) bool

func (UserRole) FindAll

func (r UserRole) FindAll(query, selector interface{}) (results []UserRole, err error)

func (UserRole) FindOne

func (r UserRole) FindOne(query, selector interface{}) (role UserRole, err error)

func (UserRole) Insert

func (r UserRole) Insert() error

func (UserRole) Remove

func (r UserRole) Remove() error

func (UserRole) RemoveUserId

func (r UserRole) RemoveUserId(userId int64) error

func (UserRole) ToJson

func (r UserRole) ToJson() string

func (UserRole) Update

func (r UserRole) Update() error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL