Re-migrate code

This commit is contained in:
2026-03-02 10:05:12 +08:00
parent d1e6f15745
commit 51025195a5
7 changed files with 177 additions and 0 deletions

View File

@@ -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, "登出成功")
}