liujiandao
2023-09-23 79eca4ef507f418b88a0817f43a9ea25750a818a
router/router.go
@@ -77,11 +77,13 @@
   operationController := new(controllers.OperationController)
   operationAPI := r.Group(urlPrefix + "/operation")
   {
      operationAPI.GET("operation", operationController.List)
      operationAPI.POST("list", operationController.List)
      operationAPI.POST("operation", operationController.Add)
      operationAPI.POST("update", operationController.Update)
      operationAPI.DELETE("operation/:id", operationController.Delete)
      operationAPI.PUT("finish/:id", operationController.Finish)
      operationAPI.POST("listAll", operationController.ListAll)
   }
   //产品
@@ -99,6 +101,13 @@
      productAPI.GET("getProductCategoryDetails/:id", productController.GetProductCategoryDetails) //获取产品类型详情
      productAPI.POST("updateProductCategory", productController.UpdateProductCategory)            //修改产品类型
      productAPI.DELETE("deleteProductCategory/:id", productController.DeleteProductCategory)      //删除产品类型
      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)    //修改报废信息
   }
   return r