Re-migrate code
This commit is contained in:
@@ -163,3 +163,16 @@ func (c *AuthController) UpdateProfile(ctx *gin.Context) {
|
||||
"user": profile,
|
||||
})
|
||||
}
|
||||
|
||||
// Logout 登出
|
||||
// @Summary 用户登出
|
||||
// @Description 用户登出(JWT 无状态,前端清理令牌即可)
|
||||
// @Tags 认证
|
||||
// @Produce json
|
||||
// @Security BearerAuth
|
||||
// @Success 200 {object} models.BaseResponse
|
||||
// @Failure 401 {object} models.ErrorResponse
|
||||
// @Router /auth/logout [post]
|
||||
func (c *AuthController) Logout(ctx *gin.Context) {
|
||||
SuccessResponse(ctx, "登出成功")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user