jiangshuai
2023-10-20 96844c22ef3fba86a55e0af1b51bc1009d6fa950
router/router.go
@@ -102,7 +102,43 @@
      productAPI.POST("updateProductCategory", productController.UpdateProductCategory)            //修改产品类型
      productAPI.DELETE("deleteProductCategory/:id", productController.DeleteProductCategory)      //删除产品类型
      productAPI.POST("listOperaton", productController.ListOperation) //查看产品的历史出入库信息
      productAPI.POST("listOperaton", productController.ListOperation)   //查看产品的历史出入库信息
      productAPI.POST("addDisuse", productController.AddDisuse)          //添加报废信息
      productAPI.POST("listDisuse", productController.ListDisuse)        //查看产品的历史出入库信息
      productAPI.PUT("finishDisuse/:id", productController.FinishDisuse) //报废验证
      productAPI.POST("updateDisuse", productController.UpdateDisuse)    //修改报废信息
      productAPI.POST("listHistory", productController.ListHistory)      //产品位置历史记录
   }
   // 上架规则
   locationProductController := new(controllers.LocationProductController)
   locationProductAPI := r.Group(urlPrefix + "/locationProduct")
   {
      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)               //查看库存盘点列表
      locationProductAmountAPI.POST("update", locationProductAmountController.Update)           //修改库存盘点信息
      locationProductAmountAPI.POST("finish", locationProductAmountController.Finish)           //应用、验证库存盘点信息
      locationProductAmountAPI.POST("getRuleList", locationProductAmountController.GetRuleList) //获取上架规则
   }
   //报表
   reportFormsController := new(controllers.ReportFormsController)
   reportFormsAPI := r.Group(urlPrefix + "/forms")
   {
      reportFormsAPI.POST("getInventoryForms", reportFormsController.GetInventoryForms) //获取库存报表
      reportFormsAPI.POST("getHistory", reportFormsController.GetHistory)               //获取库存历史
      reportFormsAPI.POST("getLocationForms", reportFormsController.GetLocationForms)   //获取位置报表
   }
   return r