2023-05-31 10:33:02 +00:00
|
|
|
// Code generated by goctl. DO NOT EDIT.
|
|
|
|
package handler
|
|
|
|
|
|
|
|
import (
|
|
|
|
"net/http"
|
|
|
|
|
2023-06-08 02:51:56 +00:00
|
|
|
"fusenapi/server/home-user-auth/internal/svc"
|
2023-05-31 10:33:02 +00:00
|
|
|
|
|
|
|
"github.com/zeromicro/go-zero/rest"
|
|
|
|
)
|
|
|
|
|
|
|
|
func RegisterHandlers(server *rest.Server, serverCtx *svc.ServiceContext) {
|
|
|
|
server.AddRoutes(
|
|
|
|
[]rest.Route{
|
2023-06-01 10:35:09 +00:00
|
|
|
{
|
2023-06-07 03:57:04 +00:00
|
|
|
Method: http.MethodPost,
|
2023-06-01 10:35:09 +00:00
|
|
|
Path: "/user/login",
|
|
|
|
Handler: UserLoginHandler(serverCtx),
|
|
|
|
},
|
2023-05-31 10:33:02 +00:00
|
|
|
{
|
|
|
|
Method: http.MethodGet,
|
|
|
|
Path: "/user/fonts",
|
|
|
|
Handler: UserFontsHandler(serverCtx),
|
|
|
|
},
|
2023-06-01 08:19:24 +00:00
|
|
|
{
|
|
|
|
Method: http.MethodGet,
|
|
|
|
Path: "/user/get-type",
|
2023-06-08 07:41:49 +00:00
|
|
|
Handler: UserGetTypeHandler(serverCtx),
|
2023-06-01 08:19:24 +00:00
|
|
|
},
|
2023-06-05 09:56:55 +00:00
|
|
|
{
|
|
|
|
Method: http.MethodPost,
|
|
|
|
Path: "/user/basic-info",
|
|
|
|
Handler: UserSaveBasicInfoHandler(serverCtx),
|
|
|
|
},
|
2023-06-07 10:30:58 +00:00
|
|
|
{
|
|
|
|
Method: http.MethodPost,
|
|
|
|
Path: "/user/status-config",
|
|
|
|
Handler: UserStatusConfigHandler(serverCtx),
|
|
|
|
},
|
2023-05-31 10:33:02 +00:00
|
|
|
},
|
|
|
|
)
|
2023-06-01 10:35:09 +00:00
|
|
|
|
|
|
|
server.AddRoutes(
|
|
|
|
[]rest.Route{
|
|
|
|
{
|
|
|
|
Method: http.MethodGet,
|
|
|
|
Path: "/user/basic-info",
|
|
|
|
Handler: UserBasicInfoHandler(serverCtx),
|
|
|
|
},
|
2023-06-08 10:55:08 +00:00
|
|
|
{
|
|
|
|
Method: http.MethodGet,
|
|
|
|
Path: "/user/address-list",
|
|
|
|
Handler: UserAddressListHandler(serverCtx),
|
|
|
|
},
|
2023-06-01 10:35:09 +00:00
|
|
|
},
|
|
|
|
rest.WithJwt(serverCtx.Config.Auth.AccessSecret),
|
|
|
|
)
|
2023-05-31 10:33:02 +00:00
|
|
|
}
|