From ed81fc8d860adb66676d4990e4ce0ff56cff79a6 Mon Sep 17 00:00:00 2001 From: jiangshuai <291802688@qq.com> Date: 星期三, 22 十一月 2023 19:48:16 +0800 Subject: [PATCH] Merge branch 'master' of http://192.168.5.5:10010/r/aps/WMS --- router/router.go | 19 +++++++++++++++++++ 1 files changed, 19 insertions(+), 0 deletions(-) diff --git a/router/router.go b/router/router.go index a591cf7..a75aba3 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,6 +86,9 @@ 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) + operationAPI.PUT("outputOperation/:id", operationController.OutputOperation) } @@ -109,6 +114,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 +159,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