package
Version:
v0.0.0-...-5f47394
Opens a new window with list of versions in this module.
Published: Mar 1, 2022
License: Apache-2.0
Opens a new window with license information.
Imports: 10
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
CheckUserIsAdmin determine whether you are an administrator
EditPassword modify account password
GetUserInfo get user information
GetUserRole get user role
@Tags Register
@Summary 用户注册
@Produce application/json
@Param username formData string true "用户名"
@Param password formData string true "密码"
@Success 200 {string} string "{"code":"","data":""}"
@Router /register [post]
type LoginResult struct {
Username string `json:"username"`
Token string `json:"token"`
}
login result
Source Files
¶
Click to show internal directories.
Click to hide internal directories.