jiangshuai
2023-09-22 34e1e9dbc7a750048c0825b8f91b07ed526ae577
router/router.go
@@ -63,7 +63,7 @@
      locationAPI.DELETE("deleteLocation/:id", locationController.DeleteLocation)      //删除位置
   }
   // 作业类型
   // 业务类型
   operationTypeController := new(controllers.OperationTypeController)
   operationTypeAPI := r.Group(urlPrefix + "/operationType")
   {
@@ -79,8 +79,9 @@
   {
      operationAPI.GET("operation", operationController.List)
      operationAPI.POST("operation", operationController.Add)
      operationAPI.PUT("operation/:id", operationController.Update)
      operationAPI.POST("update", operationController.Update)
      operationAPI.DELETE("operation/:id", operationController.Delete)
      operationAPI.PUT("finish/:id", operationController.Finish)
   }
   //产品
@@ -98,6 +99,8 @@
      productAPI.GET("getProductCategoryDetails/:id", productController.GetProductCategoryDetails) //获取产品类型详情
      productAPI.POST("updateProductCategory", productController.UpdateProductCategory)            //修改产品类型
      productAPI.DELETE("deleteProductCategory/:id", productController.DeleteProductCategory)      //删除产品类型
      productAPI.POST("listOperaton", productController.ListOperation) //查看产品的历史出入库信息
   }
   return r