fusenapi/server/product-model/internal/handler/routes.go

33 lines
693 B
Go
Raw Normal View History

2023-06-25 09:11:42 +00:00
// Code generated by goctl. DO NOT EDIT.
package handler
import (
"net/http"
"fusenapi/server/product-model/internal/svc"
"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-model/detail",
2023-06-25 09:11:42 +00:00
Handler: GetModelDetailHandler(serverCtx),
},
{
Method: http.MethodGet,
2023-07-12 06:11:04 +00:00
Path: "/api/product-model/other-info",
2023-06-25 09:11:42 +00:00
Handler: GetModelOtherInfoHandler(serverCtx),
},
2023-06-26 08:53:36 +00:00
{
Method: http.MethodPost,
2023-07-12 06:11:04 +00:00
Path: "/api/product-model/update-model",
2023-06-26 08:53:36 +00:00
Handler: UpdateProductModelHandler(serverCtx),
},
2023-06-25 09:11:42 +00:00
},
)
}