fix: UpdateProfile doc

This commit is contained in:
chris
2024-05-08 17:29:55 +08:00
parent 70fbd7beaf
commit ac839a6f34
4 changed files with 4 additions and 4 deletions

View File

@@ -148,7 +148,7 @@ const docTemplate = `{
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/github_com_go-nunu_nunu-layout-advanced_api_v1.GetProfileResponse"
"$ref": "#/definitions/github_com_go-nunu_nunu-layout-advanced_api_v1.Response"
}
}
}

View File

@@ -141,7 +141,7 @@
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/github_com_go-nunu_nunu-layout-advanced_api_v1.GetProfileResponse"
"$ref": "#/definitions/github_com_go-nunu_nunu-layout-advanced_api_v1.Response"
}
}
}

View File

@@ -162,7 +162,7 @@ paths:
"200":
description: OK
schema:
$ref: '#/definitions/github_com_go-nunu_nunu-layout-advanced_api_v1.GetProfileResponse'
$ref: '#/definitions/github_com_go-nunu_nunu-layout-advanced_api_v1.Response'
security:
- Bearer: []
summary: 修改用户信息

View File

@@ -108,7 +108,7 @@ func (h *UserHandler) GetProfile(ctx *gin.Context) {
// @Produce json
// @Security Bearer
// @Param request body v1.UpdateProfileRequest true "params"
// @Success 200 {object} v1.GetProfileResponse
// @Success 200 {object} v1.Response
// @Router /user [put]
func (h *UserHandler) UpdateProfile(ctx *gin.Context) {
userId := GetUserIdFromCtx(ctx)