package
1.3.4
Repository: https://github.com/nooocode/usercenter.git
Documentation: pkg.go.dev

# Packages

No description provided by the author

# Functions

@author: [guoxf](https://github.com/guoxf)@function: AddMenu@description: 添加菜单@param: menu Menu@return: err error.
No description provided by the author
No description provided by the author
No description provided by the author
AutoMigrate 自动生成表.
No description provided by the author
No description provided by the author
@author: [guoxf](https://github.com/guoxf)@function: ClearCasbin@description: 清除匹配的权限@param: v int, p ...string@return: bool.
@author: [guoxf](https://github.com/guoxf)@function: CopyRole@description: 复制一个角色@param: copyInfo RoleCopyResponse@return: err error, role Role.
No description provided by the author
@author: [guoxf](https://github.com/guoxf)@function: CreateAPI@description: 新增API@param: api API@return: err error.
No description provided by the author
@author: [guoxf](https://github.com/guoxf)@function: CreateRole@description: 创建一个角色@param: newRole Role@return: err error, role Role.
No description provided by the author
No description provided by the author
@author: [guoxf](https://github.com/guoxf)@function: CreateUser@description: 新增User@param: user User@return: err error.
@author: [guoxf](https://github.com/guoxf)@function: DeleteApi@description: 删除API@param: api API@return: err error.
No description provided by the author
@author: [guoxf](https://github.com/guoxf)@function: DeleteMenu@description: 删除菜单@param: id uint@return: err error.
@author: [guoxf](https://github.com/guoxf)@function: DeleteRole@description: 删除角色@param: auth *Role@return: err error.
No description provided by the author
No description provided by the author
@author: [guoxf](https://github.com/guoxf)@function: DeleteUser@description: 删除User@param: user User@return: err error.
No description provided by the author
No description provided by the author
No description provided by the author
EncryptedPassword 对密码进行加密.
@author: [guoxf](https://github.com/guoxf)@function: GetAllAPIs@description: 获取所有API@return: apis []API , err error.
No description provided by the author
No description provided by the author
GetAllRole 获取所有用户containerCommon true-包含公共角色 false-不包含公共角色公共角色定义:不设置租户的角色.
No description provided by the author
No description provided by the author
@author: [guoxf](https://github.com/guoxf)@function: GetAllUsers@description: 获取所有User@return: users []User , err error.
@author: [guoxf](https://github.com/guoxf)@function: GetAPIById@description: 根据id获取api@param: id string@return: api API , err error.
No description provided by the author
@author: [guoxf](https://github.com/guoxf)@function: GetBaseMenuTree@description: 获取基础路由树@return: err error, menus []Menu.
No description provided by the author
@author: [guoxf](https://github.com/guoxf)@function: GetInfoList@description: 获取路由分页@return: err error, list interface{}, total int64.
@author: [guoxf](https://github.com/guoxf)@function: GetMenuByID@description: 返回当前选中menu@param: id uint@return: err error, menu Menu.
@author: [guoxf](https://github.com/guoxf)@function: GetMenuRole@description: 查看当前角色权限树@param: info *request.GetAuthorityId@return: err error, menus []RoleMenu.
@author: [guoxf](https://github.com/guoxf)@function: GetMenuTree@description: 获取动态菜单树@param: roleID string@return: err error, menus []RoleMenu.
@author: [guoxf](https://github.com/guoxf)@function: GetPolicyPathByRoleID@description: 获取权限列表@param: roleID string@return: pathMaps []CasbinRule.
No description provided by the author
No description provided by the author
No description provided by the author
@author: [guoxf](https://github.com/guoxf)@function: GetUserById@description: 根据id获取user@param: id uint@return: user User , err error.
No description provided by the author
Init Init.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
@author: [guoxf](https://github.com/guoxf)@function: NewEnforcer@description: 持久化到数据库 引入自定义规则@return: *casbin.Enforcer.
@author: [guoxf](https://github.com/guoxf)@function: ParamsMatch@description: 自定义规则函数@param: fullNameKey1 string, key2 string@return: bool.
@author: [guoxf](https://github.com/guoxf)@function: ParamsMatchFunc@description: 自定义规则函数@param: args ...interface{}@return: interface{}, error.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
@author: [guoxf](https://github.com/guoxf)@function: GetAPIInfoList@description: 分页查询API@param: api API, info PageInfo, order string, desc bool@return: list []*API, total int64 , err error.
No description provided by the author
@author: [guoxf](https://github.com/guoxf)@function: GetMenuInfoList@description: 分页查询Menu@param: api Menu, info PageInfo, order string, desc bool@return: list []*Menu, total int64 , err error.
No description provided by the author
No description provided by the author
No description provided by the author
@author: [guoxf](https://github.com/guoxf)@function: GetUserInfoList@description: 分页查询User@param: user User, info PageInfo, order string, desc bool@return: list []*User, total int64 , err error.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
@author: [guoxf](https://github.com/guoxf)@function: UpdateAPI@description: 根据id更新api@param: api API@return: err error.
No description provided by the author
@author: [guoxf](https://github.com/guoxf)@function: UpdateCasbin@description: 更新casbin权限@param: roleID string, casbinInfos []CasbinRule@return: error.
@author: [guoxf](https://github.com/guoxf)@function: UpdateCasbinApi@description: API更新随动@param: oldPath string, newPath string, oldMethod string, newMethod string@return: error.
@author: [guoxf](https://github.com/guoxf)@function: UpdateMenu@description: 更新菜单@param: menu Menu@return:err error.
UpdateProfile 更新个人信息.
No description provided by the author
No description provided by the author
@author: [guoxf](https://github.com/guoxf)@function: UpdateRole@description: 更改一个角色@param: newRole Role@return:err error, role Role.
No description provided by the author
No description provided by the author
@author: [guoxf](https://github.com/guoxf)@function: UpdateUser@description: 根据id更新user@param: user User@return: err error.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Variables

No description provided by the author
No description provided by the author

# Structs

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author