mirror of
https://github.com/go-nunu/nunu-layout-advanced.git
synced 2025-09-26 20:41:33 +08:00
fix: UpdateProfile doc
This commit is contained in:
@@ -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"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@@ -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"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@@ -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: 修改用户信息
|
||||
|
@@ -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)
|
||||
|
Reference in New Issue
Block a user