From 1dd416deaf053a23a56b42a1ab18fe9f621fefb0 Mon Sep 17 00:00:00 2001
From: liujiandao <274878379@qq.com>
Date: 星期一, 13 十一月 2023 20:01:30 +0800
Subject: [PATCH] 仓库与位置修改

---
 router/router.go |   12 +++++++++++-
 1 files changed, 11 insertions(+), 1 deletions(-)

diff --git a/router/router.go b/router/router.go
index a591cf7..50e80d4 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,11 @@
 		reorderRuleAPI.POST("orderAgain", reorderRuleController.OrderAgain)                         //鍐嶈涓�娆�
 	}
 
+	attachmentController := new(controllers.AttachmentController)
+	attachmentAPI := r.Group(urlPrefix + "/attachment")
+	{
+		attachmentAPI.POST("uploadFiles", attachmentController.UploadFiles) //涓婁紶鏂囦欢
+	}
+
 	return r
 }

--
Gitblit v1.8.0