myinfohandler

package
v1.24.5 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MyHandler

type MyHandler struct {
	base.BaseHandler
}

func (*MyHandler) MyAuthority

func (h *MyHandler) MyAuthority(c *gin.Context)

MyAuthority 获取当前用户权限列表

@Tags			User
@Summary		获取当前用户权限列表
@Description	获取当前用户权限列表
@Accept			json
@Produce		json
@Success		200	{object}	handlers.ResponseStruct{}	"用户权限列表"
@Router			/v1/my/auth [get]
@Security		JWT

func (*MyHandler) MyTenants

func (h *MyHandler) MyTenants(c *gin.Context)

MyTenants 获取当前用户租户列表

@Tags			User
@Summary		获取当前用户租户列表
@Description	获取当前用户租户列表
@Accept			json
@Produce		json
@Success		200	{object}	handlers.ResponseStruct{}	"用户权限列表"
@Router			/v1/my/tenants [get]
@Security		JWT

func (*MyHandler) Myinfo

func (h *MyHandler) Myinfo(c *gin.Context)

Myinfo 获取当前用户的信息

@Tags			User
@Summary		获取当前用户的信息
@Description	获取当前用户的信息
@Accept			json
@Produce		json
@Success		200	{object}	handlers.ResponseStruct{Data=[]models.User}	"用户详情"
@Router			/v1/my/info [get]
@Security		JWT

func (*MyHandler) RegistRouter

func (h *MyHandler) RegistRouter(rg *gin.RouterGroup)

func (*MyHandler) ResetPassword

func (h *MyHandler) ResetPassword(c *gin.Context)

ResetPassword 重设密码

@Tags			User
@Summary		重设密码
@Description	重设密码
@Accept			json
@Produce		json
@Param			param	body		resetPasswordForm			true	"表单"
@Success		200		{object}	handlers.ResponseStruct{}	""
@Router			/v1/my/reset_password [post]
@Security		JWT

Jump to

Keyboard shortcuts

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