Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ApiGroupsIns = new(ApiEntrances)
Functions ¶
This section is empty.
Types ¶
type ApiEntrances ¶
type BaseApi ¶
type BaseApi struct{}
func (*BaseApi) Captcha ¶
Captcha
@Tags Base @Summary 生成验证码 @Security ApiKeyAuth @accept application/json @Produce application/json @Success 200 {object} response.Response{code=int,data=response.CaptchaResponse,msg=string} "生成验证码,返回包括随机数id,base64,验证码长度,是否开启验证码" @Router /base/captcha [post]
func (*BaseApi) ChangePassword ¶
ChangePassword
@Tags User @Summary 用户修改密码 @Security ApiKeyAuth @Produce application/json @Param data body request.ChangePasswordReq true "用户名, 原密码, 新密码" @Success 200 {object} response.Response{code=int,msg=string} "用户修改密码" @Router /user/changePassword [post]
func (*BaseApi) Login ¶
Login
@Tags Base @Summary 用户登录 @Produce application/json @Param data body request.Login true "用户名, 密码, 验证码" @Success 200 {object} response.Response{code=int,data=response.LoginResp,msg=string} "返回包括用户信息,token,过期时间" @Router /base/login [post]
func (*BaseApi) Register ¶
Register
@Tags User @Summary 用户注册账号 @Produce application/json @Param data body request.Register true "用户名, 昵称, 密码, 角色ID" @Success 200 {object} response.Response{code=int,data=response.UserResp,msg=string} "用户注册账号,返回包括用户信息" @Router /user/register [post]
func (*BaseApi) ResetPassword ¶ added in v0.18.0
ResetPassword
@Tags User @Summary 用户重置密码 @Security ApiKeyAuth @Produce application/json @Param data body request.ResetPasswordReq true "ID" @Success 200 {object} response.Response{code=int,msg=string} "用户修改密码" @Router /user/changePassword [post]
type JwtApi ¶
type JwtApi struct{}
func (*JwtApi) JsonInBlacklist ¶
JsonInBlacklist
@Tags Jwt @Summary jwt加入黑名单 @Security ApiKeyAuth @accept application/json @Produce application/json @Success 200 {object} response.Response{code=int,msg=string} "jwt加入黑名单" @Router /jwt/jsonInBlacklist [post]
Click to show internal directories.
Click to hide internal directories.