roleModel

package
v0.0.0-...-3208bda Latest Latest
Warning

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

Go to latest
Published: Jan 9, 2020 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateRole

func CreateRole(name, description string, pid int64) int64

创建角色 @param

@return

func DeleteRole

func DeleteRole(id int64) int64

删除

func GetRoleInfoByName

func GetRoleInfoByName(name string, selectFields []string) (*schema.Role, error)

func GetRoleList

func GetRoleList(offset, count uint, sort string, filter map[string]interface{}, selectFields []string) ([]*schema.Role, error)

获取角色列表 @param offset uint 起始位移 @param count uint 获取行数 @param sort string 字段排序 如"a desc,b asc,..." @param filter map[string]interface{} 字段过滤条件

func UpdateRoleField

func UpdateRoleField(id int64, data map[string]interface{}) (int64, error)

根据id修改角色字段信息

Types

This section is empty.

Jump to

Keyboard shortcuts

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