From 216c9e49dafdb7a5bd025f6d6fa899a33befc38c Mon Sep 17 00:00:00 2001
From: liujiandao <274878379@qq.com>
Date: 星期三, 17 四月 2024 10:33:01 +0800
Subject: [PATCH] 产品添加字段

---
 router/router.go |   15 ++++++++++-----
 1 files changed, 10 insertions(+), 5 deletions(-)

diff --git a/router/router.go b/router/router.go
index 3e6ce21..b759a4c 100644
--- a/router/router.go
+++ b/router/router.go
@@ -21,6 +21,7 @@
 
 	urlPrefix := "/api-wms/v1"
 	r.Use(middleware.JWTAuth())
+	r.Use(middleware.VerifyResetPwd())
 
 	// 缁勭粐绠$悊
 	departmentController := new(controllers.DepartmentController)
@@ -93,6 +94,7 @@
 		operationAPI.GET("getSupplierList", operationController.GetSupplierList)
 		operationAPI.GET("getClientList", operationController.GetClientList)
 		operationAPI.POST("listByCondition", operationController.ListByCondition)
+		operationAPI.GET("getPersonnelList", operationController.GetPersonnelList)
 
 	}
 
@@ -120,6 +122,8 @@
 		productAPI.POST("listHistory", productController.ListHistory)      //浜у搧浣嶇疆鍘嗗彶璁板綍
 		productAPI.PUT("cancelDisuse/:id", productController.CancelDisuse) //鍙栨秷鎶ュ簾
 		productAPI.GET("getUserInfo", productController.GetUserInfo)       //鑾峰彇鐧诲綍鐢ㄦ埛淇℃伅
+		productAPI.GET("getUnitInfo", productController.GetUnitInfo)       //鑾峰彇鍗曚綅淇℃伅
+		productAPI.POST("saveUnitDict", productController.SaveUnitDict)    //鏇存柊璁¢噺鍗曚綅瀛楀吀
 
 	}
 
@@ -137,11 +141,12 @@
 	locationProductAmountController := new(controllers.LocationProductAmountController)
 	locationProductAmountAPI := r.Group(urlPrefix + "/locationProductAmount")
 	{
-		locationProductAmountAPI.POST("add", locationProductAmountController.Add)                 //娣诲姞搴撳瓨鐩樼偣淇℃伅
-		locationProductAmountAPI.POST("list", locationProductAmountController.List)               //鏌ョ湅搴撳瓨鐩樼偣鍒楄〃
-		locationProductAmountAPI.POST("update", locationProductAmountController.Update)           //淇敼搴撳瓨鐩樼偣淇℃伅
-		locationProductAmountAPI.POST("finish", locationProductAmountController.Finish)           //搴旂敤銆侀獙璇佸簱瀛樼洏鐐逛俊鎭�
-		locationProductAmountAPI.POST("getRuleList", locationProductAmountController.GetRuleList) //鑾峰彇涓婃灦瑙勫垯
+		locationProductAmountAPI.POST("add", locationProductAmountController.Add)                                           //娣诲姞搴撳瓨鐩樼偣淇℃伅
+		locationProductAmountAPI.POST("list", locationProductAmountController.List)                                         //鏌ョ湅搴撳瓨鐩樼偣鍒楄〃
+		locationProductAmountAPI.POST("update", locationProductAmountController.Update)                                     //淇敼搴撳瓨鐩樼偣淇℃伅
+		locationProductAmountAPI.POST("finish", locationProductAmountController.Finish)                                     //搴旂敤銆侀獙璇佸簱瀛樼洏鐐逛俊鎭�
+		locationProductAmountAPI.POST("getRuleList", locationProductAmountController.GetRuleList)                           //鑾峰彇涓婃灦瑙勫垯
+		locationProductAmountAPI.POST("getLocationProductAmount", locationProductAmountController.GetLocationProductAmount) //鑾峰彇浣嶇疆浜у搧淇℃伅
 	}
 
 	//鎶ヨ〃

--
Gitblit v1.8.0