From 7edecfcf0f48ba6d6177486a57399a558c4c79e7 Mon Sep 17 00:00:00 2001
From: jiangshuai <291802688@qq.com>
Date: 星期三, 27 九月 2023 11:14:17 +0800
Subject: [PATCH] 1.二期一部分代码

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

diff --git a/router/router.go b/router/router.go
index c23bd3d..bac5f16 100644
--- a/router/router.go
+++ b/router/router.go
@@ -113,10 +113,18 @@
 	locationProductController := new(controllers.LocationProductController)
 	locationProductAPI := r.Group(urlPrefix + "/locationProduct")
 	{
-		locationProductAPI.GET("operationType", locationProductController.List)          // 鑾峰彇涓婃灦瑙勫垯鍒楄〃
-		locationProductAPI.POST("operationType", locationProductController.Add)          // 鏂板涓婃灦瑙勫垯
-		locationProductAPI.PUT("operationType/:id", locationProductController.Update)    // 淇敼涓婃灦瑙勫垯
-		locationProductAPI.DELETE("operationType/:id", locationProductController.Delete) // 鍒犻櫎涓婃灦瑙勫垯
+		locationProductAPI.POST("list", locationProductController.List)           // 鑾峰彇涓婃灦瑙勫垯鍒楄〃
+		locationProductAPI.POST("add", locationProductController.Add)             // 鏂板涓婃灦瑙勫垯
+		locationProductAPI.POST("update", locationProductController.Update)       // 淇敼涓婃灦瑙勫垯
+		locationProductAPI.DELETE("delete/:id", locationProductController.Delete) // 鍒犻櫎涓婃灦瑙勫垯
+	}
+
+	//搴撳瓨鐩樼偣
+	locationProductAmountController := new(controllers.LocationProductAmountController)
+	locationProductAmountAPI := r.Group(urlPrefix + "/locationProductAmount")
+	{
+		locationProductAmountAPI.POST("add", locationProductAmountController.Add)   //娣诲姞搴撳瓨鐩樼偣淇℃伅
+		locationProductAmountAPI.POST("list", locationProductAmountController.List) //鏌ョ湅搴撳瓨鐩樼偣鍒楄〃
 	}
 
 	return r

--
Gitblit v1.8.0