fusenapi/server/map-library/internal/handler/routes.go

28 lines
540 B
Go
Raw Normal View History

2023-06-14 06:57:20 +00:00
// Code generated by goctl. DO NOT EDIT.
package handler
import (
"net/http"
2023-06-15 04:00:32 +00:00
"fusenapi/server/map-library/internal/svc"
2023-06-14 06:57:20 +00:00
"github.com/zeromicro/go-zero/rest"
)
func RegisterHandlers(server *rest.Server, serverCtx *svc.ServiceContext) {
server.AddRoutes(
[]rest.Route{
{
Method: http.MethodGet,
2023-07-12 06:11:04 +00:00
Path: "/api/map-library/list",
2023-06-14 06:57:20 +00:00
Handler: GetMapLibraryListHandler(serverCtx),
},
2023-06-20 03:52:26 +00:00
{
Method: http.MethodPost,
2023-07-12 06:11:04 +00:00
Path: "/api/map-library/save",
2023-06-20 03:52:26 +00:00
Handler: SaveMapLibraryHandler(serverCtx),
},
2023-06-14 06:57:20 +00:00
},
)
}