profile

package
v0.0.152 Latest Latest
Warning

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

Go to latest
Published: Aug 20, 2025 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterProfileRoutes added in v0.0.145

func RegisterProfileRoutes(mgm *gin.RouterGroup)

Types

type Controller added in v0.0.145

type Controller struct{}

func (*Controller) Disable2FA added in v0.0.145

func (uc *Controller) Disable2FA(c *gin.Context)

Disable2FA 禁用2FA @Summary 禁用2FA @Description 禁用当前用户的二步验证 @Security BearerAuth @Success 200 {object} string "操作成功" @Router /mgm/user/profile/2fa/disable [post]

func (*Controller) Enable2FA added in v0.0.145

func (uc *Controller) Enable2FA(c *gin.Context)

Enable2FA 验证并启用2FA @Summary 启用2FA @Description 验证并启用当前用户的二步验证 @Security BearerAuth @Param code body string true "验证码" @Param app_name body string false "应用名称" @Success 200 {object} string "操作成功" @Router /mgm/user/profile/2fa/enable [post]

func (*Controller) Generate2FASecret added in v0.0.145

func (uc *Controller) Generate2FASecret(c *gin.Context)

Generate2FASecret 生成2FA密钥 @Summary 生成2FA密钥 @Description 生成当前用户的二步验证密钥和二维码 @Security BearerAuth @Success 200 {object} string "返回密钥、二维码和备用码" @Router /mgm/user/profile/2fa/generate [post]

func (*Controller) ListUserPermissions added in v0.0.145

func (uc *Controller) ListUserPermissions(c *gin.Context)

ListUserPermissions 列出当前登录用户所拥有的集群权限 @Summary 获取用户集群权限 @Description 列出当前登录用户所拥有的集群权限 @Security BearerAuth @Success 200 {object} string @Router /mgm/user/profile/cluster/permissions/list [get]

func (*Controller) Profile added in v0.0.145

func (uc *Controller) Profile(c *gin.Context)

@Summary 获取用户信息 @Description 获取当前登录用户的详细信息 @Security BearerAuth @Success 200 {object} string @Router /mgm/user/profile [get]

func (*Controller) UpdatePsw added in v0.0.145

func (uc *Controller) UpdatePsw(c *gin.Context)

@Summary 修改密码 @Description 修改当前登录用户的密码 @Security BearerAuth @Param password body string true "新密码(加密后)" @Success 200 {object} string "操作成功" @Router /mgm/user/profile/update_psw [post]

Jump to

Keyboard shortcuts

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