jiangshuai
2023-09-27 7edecfcf0f48ba6d6177486a57399a558c4c79e7
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