api

package
v0.0.0-...-04312dd Latest Latest
Warning

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

Go to latest
Published: Aug 10, 2023 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BaseServiceRun

func BaseServiceRun()

func ChangePassword

func ChangePassword(c *gin.Context)

修改密码

func CheckJwt

func CheckJwt(c *gin.Context)

校验用户Tokenc

func CheckUserAuth

func CheckUserAuth(c *gin.Context)

func CreateTenant

func CreateTenant(c *gin.Context)

@Summary 创建租户 @Produce json @Param app_id body string true "租户APP ID" @Param name body string true "租户名称" @Param desc body string true "说明" @Param name body string true "租户名称 @Success 200 {object} model.Tenant @Router /manger/tenant/create [post]

func CreateUser

func CreateUser(c *gin.Context)

管理员创建用户

func GetTenantBaseInfo

func GetTenantBaseInfo(c *gin.Context)

func GetUserBaseInfo

func GetUserBaseInfo(c *gin.Context)

查询用户信息

func GetUserGroups

func GetUserGroups(c *gin.Context)

func GetUserTenants

func GetUserTenants(c *gin.Context)

查询用户所属于的租户

func ListGroupResources

func ListGroupResources(c *gin.Context)

func ListGroupUsers

func ListGroupUsers(c *gin.Context)

func ListTenantGroupResources

func ListTenantGroupResources(c *gin.Context)

func ListTenantGroups

func ListTenantGroups(c *gin.Context)

func ListTenantUserGroups

func ListTenantUserGroups(c *gin.Context)

func ListTenantUsers

func ListTenantUsers(c *gin.Context)

func LockUser

func LockUser(c *gin.Context)

锁定用户

func Login

func Login(c *gin.Context)

登录

func LoginOut

func LoginOut(c *gin.Context)

注销 就是将用户的token放入黑名单

func ReSetToken

func ReSetToken(c *gin.Context)

func Register

func Register(c *gin.Context)

注册

func ResetPassword

func ResetPassword(c *gin.Context)

忘记密码重置密码

func TenantAddGroup

func TenantAddGroup(c *gin.Context)

func TenantAddResource

func TenantAddResource(c *gin.Context)

func TenantGroupAddResource

func TenantGroupAddResource(c *gin.Context)

给用户组添加资源

func UpdateTenantInfo

func UpdateTenantInfo(c *gin.Context)

更新租户信息

func UpdateUserInfo

func UpdateUserInfo(c *gin.Context)

更新用户信息

func UserAddInGroup

func UserAddInGroup(c *gin.Context)

用户加入用户组

func UserAddInTenant

func UserAddInTenant(c *gin.Context)

用户加入租户

func UserForgetPassword

func UserForgetPassword(c *gin.Context)

func UserGetVerificationCode

func UserGetVerificationCode(c *gin.Context)

func UserRemoveGroup

func UserRemoveGroup(c *gin.Context)

func UserRemoveTenant

func UserRemoveTenant(c *gin.Context)

Types

This section is empty.

Jump to

Keyboard shortcuts

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