liujiandao
2024-04-17 216c9e49dafdb7a5bd025f6d6fa899a33befc38c
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) //获取位置产品信息
   }
   //报表