2023-08-31 16:17:32 +08:00
|
|
|
// Code generated by goctl. DO NOT EDIT.
|
|
|
|
package handler
|
|
|
|
|
|
|
|
import (
|
|
|
|
"net/http"
|
|
|
|
|
|
|
|
"fusenapi/server/info/internal/svc"
|
|
|
|
|
|
|
|
"github.com/zeromicro/go-zero/rest"
|
|
|
|
)
|
|
|
|
|
|
|
|
func RegisterHandlers(server *rest.Server, serverCtx *svc.ServiceContext) {
|
|
|
|
server.AddRoutes(
|
|
|
|
[]rest.Route{
|
|
|
|
{
|
|
|
|
Method: http.MethodPost,
|
|
|
|
Path: "/api/info/user",
|
|
|
|
Handler: InfoHandler(serverCtx),
|
|
|
|
},
|
2023-09-26 17:16:10 +08:00
|
|
|
{
|
2023-09-26 17:20:44 +08:00
|
|
|
Method: http.MethodPost,
|
2023-09-26 17:16:10 +08:00
|
|
|
Path: "/api/info/user/profile",
|
|
|
|
Handler: UserGetProfileHandler(serverCtx),
|
|
|
|
},
|
2023-09-26 15:02:09 +08:00
|
|
|
{
|
|
|
|
Method: http.MethodPost,
|
2023-09-26 18:03:29 +08:00
|
|
|
Path: "/api/info/user/profile/base/update",
|
2023-09-26 17:45:07 +08:00
|
|
|
Handler: UpdateProfileBaseHandler(serverCtx),
|
2023-09-26 15:02:09 +08:00
|
|
|
},
|
2023-09-25 15:58:33 +08:00
|
|
|
{
|
|
|
|
Method: http.MethodPost,
|
|
|
|
Path: "/api/info/address/default",
|
|
|
|
Handler: AddressDefaultHandler(serverCtx),
|
|
|
|
},
|
|
|
|
{
|
|
|
|
Method: http.MethodPost,
|
|
|
|
Path: "/api/info/address/add",
|
|
|
|
Handler: AddressAddHandler(serverCtx),
|
|
|
|
},
|
|
|
|
{
|
|
|
|
Method: http.MethodPost,
|
|
|
|
Path: "/api/info/address/update",
|
|
|
|
Handler: AddressUpdateHandler(serverCtx),
|
|
|
|
},
|
2023-09-28 17:06:38 +08:00
|
|
|
{
|
|
|
|
Method: http.MethodPost,
|
|
|
|
Path: "/api/info/address/update/used",
|
|
|
|
Handler: AddressUsedUpdateHandler(serverCtx),
|
|
|
|
},
|
2023-09-25 15:58:33 +08:00
|
|
|
{
|
|
|
|
Method: http.MethodPost,
|
|
|
|
Path: "/api/info/address/delete",
|
|
|
|
Handler: AddressDeleteHandler(serverCtx),
|
|
|
|
},
|
2023-09-26 10:45:53 +08:00
|
|
|
{
|
|
|
|
Method: http.MethodGet,
|
|
|
|
Path: "/api/info/address/list",
|
|
|
|
Handler: AddressListHandler(serverCtx),
|
|
|
|
},
|
2023-08-31 16:17:32 +08:00
|
|
|
},
|
|
|
|
)
|
|
|
|
}
|