2023-10-07 10:09:17 +00:00
|
|
|
// Code generated by goctl. DO NOT EDIT.
|
|
|
|
package handler
|
|
|
|
|
|
|
|
import (
|
|
|
|
"net/http"
|
|
|
|
|
|
|
|
"fusenapi/server/collection/internal/svc"
|
|
|
|
|
|
|
|
"github.com/zeromicro/go-zero/rest"
|
|
|
|
)
|
|
|
|
|
|
|
|
func RegisterHandlers(server *rest.Server, serverCtx *svc.ServiceContext) {
|
|
|
|
server.AddRoutes(
|
|
|
|
[]rest.Route{
|
|
|
|
{
|
|
|
|
Method: http.MethodPost,
|
|
|
|
Path: "/api/collection/collect_product",
|
|
|
|
Handler: CollectProductHandler(serverCtx),
|
|
|
|
},
|
2023-10-08 04:04:00 +00:00
|
|
|
{
|
|
|
|
Method: http.MethodPost,
|
|
|
|
Path: "/api/collection/delete_collect_product",
|
|
|
|
Handler: DeleteCollectProductHandler(serverCtx),
|
|
|
|
},
|
|
|
|
{
|
|
|
|
Method: http.MethodGet,
|
|
|
|
Path: "/api/collection/get_collect_product_list",
|
|
|
|
Handler: GetCollectProductListHandler(serverCtx),
|
|
|
|
},
|
2023-10-09 09:56:28 +00:00
|
|
|
{
|
|
|
|
Method: http.MethodGet,
|
|
|
|
Path: "/api/collection/test_ai",
|
|
|
|
Handler: TestAiHandler(serverCtx),
|
|
|
|
},
|
2023-10-10 06:59:00 +00:00
|
|
|
{
|
2023-10-10 07:08:41 +00:00
|
|
|
Method: http.MethodGet,
|
2023-10-10 06:59:00 +00:00
|
|
|
Path: "/api/collection/test_pdf",
|
|
|
|
Handler: TestPdfHandler(serverCtx),
|
|
|
|
},
|
2023-10-07 10:09:17 +00:00
|
|
|
},
|
|
|
|
)
|
|
|
|
}
|