33 lines
721 B
Go
33 lines
721 B
Go
// 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),
|
|
},
|
|
{
|
|
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),
|
|
},
|
|
},
|
|
)
|
|
}
|