From 194dc50eaa08ae2302ed2b382d3a6077d4d898c3 Mon Sep 17 00:00:00 2001 From: eson <9673575+githubcontent@user.noreply.gitee.com> Date: Tue, 26 Sep 2023 17:20:44 +0800 Subject: [PATCH] info get profile --- server/info/internal/handler/routes.go | 2 +- server_api/info.api | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/server/info/internal/handler/routes.go b/server/info/internal/handler/routes.go index a3c1fc4d..4852a939 100644 --- a/server/info/internal/handler/routes.go +++ b/server/info/internal/handler/routes.go @@ -18,7 +18,7 @@ func RegisterHandlers(server *rest.Server, serverCtx *svc.ServiceContext) { Handler: InfoHandler(serverCtx), }, { - Method: http.MethodGet, + Method: http.MethodPost, Path: "/api/info/user/profile", Handler: UserGetProfileHandler(serverCtx), }, diff --git a/server_api/info.api b/server_api/info.api index ef645d7a..c2ab7439 100644 --- a/server_api/info.api +++ b/server_api/info.api @@ -14,7 +14,7 @@ service info { post /api/info/user(UserInfoRequest) returns (response); @handler UserGetProfileHandler - get /api/info/user/profile(QueryProfileRequest) returns (response); + post /api/info/user/profile(QueryProfileRequest) returns (response); @handler UpdateProfileHandler post /api/info/user/profile/update(ProfileRequest) returns (response);