jiangshuai
2023-11-13 f16252d8b4736a0212b14a2bfb0eeee411d0cc76
router/router.go
@@ -20,6 +20,7 @@
   r.GET("/swagger/*any", ginSwagger.WrapHandler(swaggerFiles.Handler))
   urlPrefix := "/api-wms/v1"
   r.Use(middleware.JWTAuth())
   // 组织管理
   departmentController := new(controllers.DepartmentController)
@@ -61,6 +62,7 @@
      locationAPI.POST("updateLocation", locationController.UpdateLocation)            //修改位置
      locationAPI.GET("getLocationDetails/:id", locationController.GetLocationDetails) //获取位置详情
      locationAPI.DELETE("deleteLocation/:id", locationController.DeleteLocation)      //删除位置
      locationAPI.GET("getLocationTreeList", locationController.GetLocationTreeList)   //获取位置列表树
   }
   // 业务类型
@@ -84,6 +86,7 @@
      operationAPI.DELETE("operation/:id", operationController.Delete)
      operationAPI.PUT("finish/:id", operationController.Finish)
      operationAPI.POST("listTransfer", operationController.ListTransfer)
      operationAPI.GET("getLogisticCompanyList", operationController.GetLogisticCompanyList)
   }
@@ -153,5 +156,11 @@
      reorderRuleAPI.POST("orderAgain", reorderRuleController.OrderAgain)                         //再订一次
   }
   attachmentController := new(controllers.AttachmentController)
   attachmentAPI := r.Group(urlPrefix + "/attachment")
   {
      attachmentAPI.POST("uploadFiles", attachmentController.UploadFiles) //上传文件
   }
   return r
}