chris пре 1 година
родитељ
комит
ac839a6f34
4 измењених фајлова са 4 додато и 4 уклоњено
  1. 1 1
      docs/docs.go
  2. 1 1
      docs/swagger.json
  3. 1 1
      docs/swagger.yaml
  4. 1 1
      internal/handler/user.go

+ 1 - 1
docs/docs.go

@@ -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"
                         }
                     }
                 }

+ 1 - 1
docs/swagger.json

@@ -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"
                         }
                     }
                 }

+ 1 - 1
docs/swagger.yaml

@@ -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: 修改用户信息

+ 1 - 1
internal/handler/user.go

@@ -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)