From a0125ef3d6ce35be7b6dc4919c4192dba4a7329a Mon Sep 17 00:00:00 2001 From: jiangshuai <291802688@qq.com> Date: 星期四, 16 十一月 2023 14:33:51 +0800 Subject: [PATCH] 报废数量bug --- router/router.go | 19 ++++++++++++++++++- 1 files changed, 18 insertions(+), 1 deletions(-) diff --git a/router/router.go b/router/router.go index a591cf7..67aeb13 100644 --- a/router/router.go +++ b/router/router.go @@ -20,6 +20,7 @@ r.GET("/swagger/*any", ginSwagger.WrapHandler(swaggerFiles.Handler)) urlPrefix := "/api-wms/v1" + r.Use(middleware.JWTAuth()) // 缁勭粐绠$悊 departmentController := new(controllers.DepartmentController) @@ -61,6 +62,7 @@ locationAPI.POST("updateLocation", locationController.UpdateLocation) //淇敼浣嶇疆 locationAPI.GET("getLocationDetails/:id", locationController.GetLocationDetails) //鑾峰彇浣嶇疆璇︽儏 locationAPI.DELETE("deleteLocation/:id", locationController.DeleteLocation) //鍒犻櫎浣嶇疆 + locationAPI.GET("getLocationTreeList", locationController.GetLocationTreeList) //鑾峰彇浣嶇疆鍒楄〃鏍� } // 涓氬姟绫诲瀷 @@ -84,7 +86,8 @@ operationAPI.DELETE("operation/:id", operationController.Delete) operationAPI.PUT("finish/:id", operationController.Finish) operationAPI.POST("listTransfer", operationController.ListTransfer) - + operationAPI.GET("getLogisticCompanyList", operationController.GetLogisticCompanyList) + operationAPI.PUT("cancel/:id", operationController.Cancel) } //浜у搧 @@ -109,6 +112,7 @@ productAPI.PUT("finishDisuse/:id", productController.FinishDisuse) //鎶ュ簾楠岃瘉 productAPI.POST("updateDisuse", productController.UpdateDisuse) //淇敼鎶ュ簾淇℃伅 productAPI.POST("listHistory", productController.ListHistory) //浜у搧浣嶇疆鍘嗗彶璁板綍 + productAPI.PUT("cancelDisuse/:id", productController.CancelDisuse) //鍙栨秷鎶ュ簾 } @@ -153,5 +157,18 @@ reorderRuleAPI.POST("orderAgain", reorderRuleController.OrderAgain) //鍐嶈涓�娆� } + attachmentController := new(controllers.AttachmentController) + attachmentAPI := r.Group(urlPrefix + "/attachment") + { + attachmentAPI.POST("uploadFiles", attachmentController.UploadFiles) //涓婁紶鏂囦欢 + } + + codeApiController := new(controllers.CodeApi) + codeApi := r.Group(urlPrefix + "/code") + { + codeApi.GET("getCodeList", codeApiController.GetCodeList) //鑾峰彇缂栫爜鍒楄〃 + codeApi.POST("getAutoCode", codeApiController.GetAutoCode) //鑾峰彇鑷姩缂栫爜 + } + return r } -- Gitblit v1.8.0