2023-06-27 06:25:25 +00:00
|
|
|
// Code generated by goctl. DO NOT EDIT.
|
|
|
|
package handler
|
|
|
|
|
|
|
|
import (
|
|
|
|
"net/http"
|
|
|
|
|
|
|
|
"fusenapi/server/inventory/internal/svc"
|
|
|
|
|
|
|
|
"github.com/zeromicro/go-zero/rest"
|
|
|
|
)
|
|
|
|
|
|
|
|
func RegisterHandlers(server *rest.Server, serverCtx *svc.ServiceContext) {
|
|
|
|
server.AddRoutes(
|
|
|
|
[]rest.Route{
|
|
|
|
{
|
|
|
|
Method: http.MethodPost,
|
2023-07-12 06:11:04 +00:00
|
|
|
Path: "/api/inventory/take",
|
2023-06-27 06:25:25 +00:00
|
|
|
Handler: TakeHandler(serverCtx),
|
|
|
|
},
|
2023-06-27 09:04:58 +00:00
|
|
|
{
|
2023-08-03 10:27:52 +00:00
|
|
|
Method: http.MethodPost,
|
2023-07-12 06:11:04 +00:00
|
|
|
Path: "/api/inventory/list",
|
2023-06-27 09:04:58 +00:00
|
|
|
Handler: GetCloudListHandler(serverCtx),
|
|
|
|
},
|
2023-06-28 09:05:31 +00:00
|
|
|
{
|
|
|
|
Method: http.MethodPost,
|
2023-07-12 06:11:04 +00:00
|
|
|
Path: "/api/inventory/supplement",
|
2023-06-28 09:05:31 +00:00
|
|
|
Handler: SupplementHandler(serverCtx),
|
|
|
|
},
|
2023-06-29 03:15:42 +00:00
|
|
|
{
|
|
|
|
Method: http.MethodGet,
|
2023-07-12 06:11:04 +00:00
|
|
|
Path: "/api/inventory/pick-up-list",
|
2023-06-29 03:15:42 +00:00
|
|
|
Handler: GetPickupListHandler(serverCtx),
|
|
|
|
},
|
2023-06-27 06:25:25 +00:00
|
|
|
},
|
|
|
|
)
|
|
|
|
}
|