83 lines
1.9 KiB
Go
83 lines
1.9 KiB
Go
// Code generated by goctl. DO NOT EDIT.
|
|
package handler
|
|
|
|
import (
|
|
"net/http"
|
|
|
|
"fusenapi/server/home-user-auth/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/user/login",
|
|
Handler: UserLoginHandler(serverCtx),
|
|
},
|
|
{
|
|
Method: http.MethodPost,
|
|
Path: "/api/user/accept-cookie",
|
|
Handler: AcceptCookieHandler(serverCtx),
|
|
},
|
|
{
|
|
Method: http.MethodGet,
|
|
Path: "/api/user/fonts",
|
|
Handler: UserFontsHandler(serverCtx),
|
|
},
|
|
{
|
|
Method: http.MethodGet,
|
|
Path: "/api/user/get-type",
|
|
Handler: UserGetTypeHandler(serverCtx),
|
|
},
|
|
{
|
|
Method: http.MethodPost,
|
|
Path: "/api/user/basic-info",
|
|
Handler: UserSaveBasicInfoHandler(serverCtx),
|
|
},
|
|
{
|
|
Method: http.MethodGet,
|
|
Path: "/api/user/status-config",
|
|
Handler: UserStatusConfigHandler(serverCtx),
|
|
},
|
|
{
|
|
Method: http.MethodGet,
|
|
Path: "/api/user/basic-info",
|
|
Handler: UserBasicInfoHandler(serverCtx),
|
|
},
|
|
{
|
|
Method: http.MethodGet,
|
|
Path: "/api/user/address-list",
|
|
Handler: UserAddressListHandler(serverCtx),
|
|
},
|
|
{
|
|
Method: http.MethodPost,
|
|
Path: "/api/user/add-address",
|
|
Handler: UserAddAddressHandler(serverCtx),
|
|
},
|
|
{
|
|
Method: http.MethodPost,
|
|
Path: "/api/user/contact-service",
|
|
Handler: UserContactServiceHandler(serverCtx),
|
|
},
|
|
{
|
|
Method: http.MethodPost,
|
|
Path: "/api/user/order-delete",
|
|
Handler: UserOderDeleteHandler(serverCtx),
|
|
},
|
|
{
|
|
Method: http.MethodPost,
|
|
Path: "/api/user/oauth2/login/google",
|
|
Handler: UserGoogleLoginHandler(serverCtx),
|
|
},
|
|
{
|
|
Method: http.MethodPost,
|
|
Path: "/api/user/oauth2/login",
|
|
Handler: UserOAuth2LoginHandler(serverCtx),
|
|
},
|
|
},
|
|
)
|
|
}
|