Documentation ¶
Index ¶
- type MenuRole
- 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
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MenuRole ¶
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 (MenuRole) FindPageFilter ¶
func (MenuRole) RemoveMenuId ¶
func (MenuRole) RemoveRoleId ¶
func (MenuRole) TotalCount ¶
Click to show internal directories.
Click to hide internal directories.