2023-05-31 10:33:02 +00:00
|
|
|
// Code generated by goctl. DO NOT EDIT.
|
|
|
|
package handler
|
|
|
|
|
|
|
|
import (
|
|
|
|
"net/http"
|
|
|
|
|
2023-06-01 03:27:34 +00:00
|
|
|
"fusenapi/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
|
|
|
{
|
|
|
|
Method: http.MethodPost,
|
|
|
|
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",
|
|
|
|
Handler: GetTypeHandler(serverCtx),
|
|
|
|
},
|
2023-06-05 09:56:55 +00:00
|
|
|
{
|
|
|
|
Method: http.MethodPost,
|
|
|
|
Path: "/user/basic-info",
|
|
|
|
Handler: UserSaveBasicInfoHandler(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),
|
|
|
|
},
|
|
|
|
},
|
|
|
|
rest.WithJwt(serverCtx.Config.Auth.AccessSecret),
|
|
|
|
)
|
2023-05-31 10:33:02 +00:00
|
|
|
}
|