info get profile

This commit is contained in:
eson 2023-09-26 17:20:44 +08:00
parent 93b0cadea9
commit 194dc50eaa
2 changed files with 2 additions and 2 deletions

View File

@ -18,7 +18,7 @@ func RegisterHandlers(server *rest.Server, serverCtx *svc.ServiceContext) {
Handler: InfoHandler(serverCtx), Handler: InfoHandler(serverCtx),
}, },
{ {
Method: http.MethodGet, Method: http.MethodPost,
Path: "/api/info/user/profile", Path: "/api/info/user/profile",
Handler: UserGetProfileHandler(serverCtx), Handler: UserGetProfileHandler(serverCtx),
}, },

View File

@ -14,7 +14,7 @@ service info {
post /api/info/user(UserInfoRequest) returns (response); post /api/info/user(UserInfoRequest) returns (response);
@handler UserGetProfileHandler @handler UserGetProfileHandler
get /api/info/user/profile(QueryProfileRequest) returns (response); post /api/info/user/profile(QueryProfileRequest) returns (response);
@handler UpdateProfileHandler @handler UpdateProfileHandler
post /api/info/user/profile/update(ProfileRequest) returns (response); post /api/info/user/profile/update(ProfileRequest) returns (response);