2023-06-20 08:38:03 +00:00
|
|
|
// Code generated by goctl. DO NOT EDIT.
|
|
|
|
package handler
|
|
|
|
|
|
|
|
import (
|
|
|
|
"net/http"
|
|
|
|
|
2023-06-25 06:11:47 +00:00
|
|
|
"fusenapi/server/product-template/internal/svc"
|
2023-06-20 08:38:03 +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/product-template/detail",
|
2023-06-20 08:38:03 +00:00
|
|
|
Handler: GetTemplatevDetailHandler(serverCtx),
|
|
|
|
},
|
2023-06-21 07:06:09 +00:00
|
|
|
{
|
|
|
|
Method: http.MethodGet,
|
2023-07-12 06:11:04 +00:00
|
|
|
Path: "/api/product-template/base-map-list",
|
2023-06-21 07:06:09 +00:00
|
|
|
Handler: GetBaseMapListHandler(serverCtx),
|
|
|
|
},
|
2023-06-21 08:35:43 +00:00
|
|
|
{
|
|
|
|
Method: http.MethodPost,
|
2023-07-12 06:11:04 +00:00
|
|
|
Path: "/api/product-template/base-map-update",
|
2023-06-21 08:35:43 +00:00
|
|
|
Handler: SaveBaseMapHandler(serverCtx),
|
|
|
|
},
|
2023-06-25 03:28:37 +00:00
|
|
|
{
|
|
|
|
Method: http.MethodPost,
|
2023-07-12 06:11:04 +00:00
|
|
|
Path: "/api/product-template/base-map-add",
|
2023-06-25 03:28:37 +00:00
|
|
|
Handler: AddBaseMapHandler(serverCtx),
|
|
|
|
},
|
|
|
|
{
|
|
|
|
Method: http.MethodPost,
|
2023-07-12 06:11:04 +00:00
|
|
|
Path: "/api/product-template/update-template",
|
2023-06-25 03:28:37 +00:00
|
|
|
Handler: UpdateTemplateHandler(serverCtx),
|
|
|
|
},
|
2023-06-20 08:38:03 +00:00
|
|
|
},
|
|
|
|
)
|
|
|
|
}
|