1. TODO: guest_id 2. jwt的封装

This commit is contained in:
eson
2023-06-12 19:52:11 +08:00
parent b6095d67ad
commit bdaa3bf48b
9 changed files with 100 additions and 88 deletions

View File

@@ -42,11 +42,17 @@ func RegisterHandlers(server *rest.Server, serverCtx *svc.ServiceContext) {
Path: "/user/basic-info",
Handler: UserBasicInfoHandler(serverCtx),
},
},
)
server.AddRoutes(
[]rest.Route{
{
Method: http.MethodGet,
Path: "/user/address-list",
Handler: UserAddressListHandler(serverCtx),
},
},
rest.WithJwt(serverCtx.Config.Auth.AccessSecret),
)
}