yinbentan
2024-07-18 ccf9ccce0fefbee8428c98a008c26d8ea26b2af1
router/router.go
@@ -122,6 +122,7 @@
      productAPI.POST("updateProduct", productController.UpdateProduct)                                   // 修改产品详情
      productAPI.DELETE("deleteProduct/:id", productController.DeleteProduct)                             // 通过ID获删除产品
      productAPI.DELETE("deleteProductByBarCode/:barCode", productController.DeleteProductByBarCode)      // 通过条形码删除产品
      productAPI.GET("downloadInputFormat", productController.DownloadInputFormat)                        // 下载导入物料模板
      productAPI.POST("addProductCategory", productController.AddProductCategory)                  //添加产品类型
      productAPI.POST("getProductCategoryList", productController.GetProductCategoryList)          //获取产品类型列表
@@ -159,6 +160,7 @@
   {
      locationProductAmountAPI.POST("add", locationProductAmountController.Add)                                           //添加库存盘点信息
      locationProductAmountAPI.POST("list", locationProductAmountController.List)                                         //查看库存盘点列表
      locationProductAmountAPI.POST("locationProductList", locationProductAmountController.LocationProductList)           //查看产品库存列表
      locationProductAmountAPI.POST("update", locationProductAmountController.Update)                                     //修改库存盘点信息
      locationProductAmountAPI.POST("finish", locationProductAmountController.Finish)                                     //应用、验证库存盘点信息
      locationProductAmountAPI.POST("getRuleList", locationProductAmountController.GetRuleList)                           //获取上架规则
@@ -179,8 +181,9 @@
      reportFormsAPI.POST("downloadMonthStats", reportFormsController.DownloadMonthStats)         //下载月度统计报表
      reportFormsAPI.POST("doMonthStats", reportFormsController.DoMonthStats)                     //手动跑月度统计库存报表
      reportFormsAPI.POST("warehouseMonthStats", reportFormsController.WarehouseMonthStats)     //按仓库获取月度统计报表
      reportFormsAPI.POST("doWarehouseMonthStats", reportFormsController.DoWareHouseMonthStats) //手动跑按仓库获取月度统计报表
      reportFormsAPI.POST("warehouseMonthStats", reportFormsController.WarehouseMonthStats)                 //按仓库获取月度统计报表
      reportFormsAPI.POST("doWarehouseMonthStats", reportFormsController.DoWareHouseMonthStats)             //手动跑按仓库获取月度统计报表
      reportFormsAPI.POST("downloadWarehouseMonthStats", reportFormsController.DownloadWarehouseMonthStats) //下载按仓库获取月度统计报表
   }
   //重订货规则
@@ -226,6 +229,7 @@
      dictApi.DELETE("delete/:id", dictController.DeleteMiniDict) //删除字典信息
      dictApi.POST("save", dictController.SaveMiniDict)           //批量保存系统设置
      dictApi.POST("getDictList", dictController.GetMiniDictList) //获取字典信息列表
      dictApi.GET("getUserList", dictController.GetUserList)      // 获取用户列表
   }
   //系统配置
@@ -236,5 +240,12 @@
      sysCfgApi.GET("get", sysCfgCtl.GetSystemConfig) //获取系统配置
   }
   //其他
   otherCtl := new(controllers.OtherController)
   otherApi := r.Group(urlPrefix + "/other")
   {
      otherApi.POST("saveProductImagesFromExcel", otherCtl.SaveProductImagesFromExcel) //从指定路径的excel获取产品编号和图片,上传并保存
   }
   return r
}