Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckUserIsAdmin ¶
@Tags Account @Summary determine whether you are an administrator @Description to determine whether the current user is an administrator, the header must include the username. @Produce application/json @Success 200 {object} string @Failure 200 {object} string @Router /user/checkIsAdmin [post] CheckUserIsAdmin determine whether you are an administrator
func EditPassword ¶
@Tags Account @Summary modify account password @Description to modify the current user's password, the username must be included in the header. @Accept application/x-www-form-urlencoded @Produce application/json @Param oldPassword formData string true "old password" @Param newPassword formData string true "new password" @Success 200 {object} string @Failure 200 {object} string @Router /user/password/edit [post] EditPassword modify account password
func GetUserInfo ¶
@Tags Account @Summary get user information @Description return the current user's detailed information. The header must include the username. @Produce application/json @Success 200 {object} string @Failure 200 {object} string @Router /user/getInfo [post] GetUserInfo get user information
func GetUserRole ¶
@Tags Account @Summary get user role @Description return the current user's role information. The header must include the username. @Produce application/json @Success 200 {object} string @Failure 200 {object} string @Router /user/getUserRole [post] GetUserRole get user role
Types ¶
type LoginResult ¶
login result