liujiandao
2024-03-11 318c49da20ec30c4f85ef35e479499e82a841b25
router/router.go
@@ -21,6 +21,7 @@
   urlPrefix := "/api-wms/v1"
   r.Use(middleware.JWTAuth())
   r.Use(middleware.VerifyResetPwd())
   // 组织管理
   departmentController := new(controllers.DepartmentController)
@@ -81,6 +82,7 @@
   operationAPI := r.Group(urlPrefix + "/operation")
   {
      operationAPI.POST("list", operationController.List)
      operationAPI.GET("getOperationInfo/:id", operationController.GetOperationInfo)
      operationAPI.POST("operation", operationController.Add)
      operationAPI.POST("update", operationController.Update)
      operationAPI.DELETE("operation/:id", operationController.Delete)
@@ -90,6 +92,8 @@
      operationAPI.PUT("cancel/:id", operationController.Cancel)
      operationAPI.PUT("outputOperation/:id", operationController.OutputOperation)
      operationAPI.GET("getSupplierList", operationController.GetSupplierList)
      operationAPI.GET("getClientList", operationController.GetClientList)
      operationAPI.POST("listByCondition", operationController.ListByCondition)
   }
@@ -116,6 +120,8 @@
      productAPI.POST("updateDisuse", productController.UpdateDisuse)    //修改报废信息
      productAPI.POST("listHistory", productController.ListHistory)      //产品位置历史记录
      productAPI.PUT("cancelDisuse/:id", productController.CancelDisuse) //取消报废
      productAPI.GET("getUserInfo", productController.GetUserInfo)       //获取登录用户信息
      productAPI.GET("getUnitInfo", productController.GetUnitInfo)       //获取单位信息
   }