model_menu_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

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MenuRole struct {
	Id         int64 `json:"id,omitempty" bson:"_id,omitempty"`
	MenuId     int64 `json:"menu_id" bson:"menu_id"`
	RoleId     int64 `json:"role_id" bson:"role_id"`
	CreateTime int64 `json:"create_time" bson:"create_time"`
}
func (m MenuRole) Exist(query interface{}) bool
func (m MenuRole) FindAll(query, selector interface{}) (results []MenuRole, err error)
func (m MenuRole) FindOne() (role MenuRole, err error)
func (m MenuRole) FindPageFilter(page, limit int, query, selector interface{}, fields ...string) ([]MenuRole, error)
func (m MenuRole) Insert() error
func (m MenuRole) Remove() error
func (m MenuRole) RemoveMenuId(menuId int64) error
func (m MenuRole) RemoveRoleId(roleId int64) error
func (m MenuRole) ToJson() string
func (m MenuRole) TotalCount(query, selector interface{}) (int, error)
func (m MenuRole) Update() error

Jump to

Keyboard shortcuts

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