|
@@ -1,8 +1,8 @@
|
|
|
package com.persagy.labsl.controller.planar
|
|
|
|
|
|
+import com.persagy.labsl.models.entities.pbs.Building
|
|
|
import com.persagy.labsl.models.entities.pbs.PlanarGraph
|
|
|
import com.persagy.labsl.models.entities.pbs.PlanarGraphPub
|
|
|
-import com.persagy.labsl.models.entities.pbs.Building
|
|
|
import com.persagy.labsl.models.response.SCommonResponse
|
|
|
import com.persagy.labsl.services.planar.PlanarGraphService
|
|
|
import com.persagy.service.models.requests.SQueryRequest
|
|
@@ -36,7 +36,7 @@ class PlanarGraphController {
|
|
|
@Operation(summary ="-未发布-单个图形创建", description = "id和graphId为必填,图中会包含多个节点,详细节点结构见示例")
|
|
|
@PostMapping("/drafts/create")
|
|
|
fun create(@RequestBody planarGraph: PlanarGraph): SCreateResponse<PlanarGraph> {
|
|
|
- return PlanarGraphService.create(planarGraph)
|
|
|
+ return PlanarGraphService.createLogic(planarGraph)
|
|
|
}
|
|
|
|
|
|
/**
|
|
@@ -48,7 +48,7 @@ class PlanarGraphController {
|
|
|
@Operation(summary = "未发布-保存图形", description = "")
|
|
|
@PostMapping("/drafts/save")
|
|
|
fun save(@RequestBody graph: PlanarGraph): SCreateResponse<PlanarGraph> {
|
|
|
- return PlanarGraphService.save(graph)
|
|
|
+ return PlanarGraphService.saveLogic(graph)
|
|
|
} // Function save()
|
|
|
|
|
|
/**
|
|
@@ -60,7 +60,7 @@ class PlanarGraphController {
|
|
|
@Operation(summary="未发布-发布图形", description =" Id 和 GraphId 必须填写")
|
|
|
@PostMapping("/drafts/publish")
|
|
|
fun pubDrawings(@RequestBody graph: PlanarGraphPub): SCreateResponse<PlanarGraphPub>{
|
|
|
- return PlanarGraphService.pubDrawings(graph)
|
|
|
+ return PlanarGraphService.pubDrawingsLogic(graph)
|
|
|
}
|
|
|
|
|
|
|
|
@@ -73,7 +73,7 @@ class PlanarGraphController {
|
|
|
@Operation(summary = "未发布-移至回收站", description = " Id 和 GraphId 必填")
|
|
|
@PostMapping(value = ["/drafts/recycle"])
|
|
|
fun recycle(@RequestBody idList: ArrayList<PlanarGraph>): SBaseResponse {
|
|
|
- return PlanarGraphService.recycle(idList)
|
|
|
+ return PlanarGraphService.recycleLogic(idList)
|
|
|
}
|
|
|
|
|
|
/**
|
|
@@ -85,7 +85,7 @@ class PlanarGraphController {
|
|
|
@Operation(summary = "已发布-图形移至回收站", description = "Id 和 GraphId 必填")
|
|
|
@PostMapping(value = ["/pub/recycle"])
|
|
|
fun recyclePub(@RequestBody idList: ArrayList<PlanarGraph>): SBaseResponse{
|
|
|
- return PlanarGraphService.recyclePub(idList)
|
|
|
+ return PlanarGraphService.recyclePubLogic(idList)
|
|
|
}
|
|
|
|
|
|
/**
|
|
@@ -97,7 +97,7 @@ class PlanarGraphController {
|
|
|
@Operation(summary = "未发布-更新图形信息", description = "Id 和 GraphId 必填")
|
|
|
@PostMapping(value = ["/drafts/update"])
|
|
|
fun updates(@RequestBody request: SUpdateRequest<PlanarGraph>): SBaseResponse {
|
|
|
- return PlanarGraphService.draftsUpdate(request)
|
|
|
+ return PlanarGraphService.draftsUpdateLogic(request)
|
|
|
}
|
|
|
|
|
|
/**
|
|
@@ -157,7 +157,7 @@ class PlanarGraphController {
|
|
|
@Operation(summary = "已发布-更新图形信息", description = "")
|
|
|
@PostMapping(value = ["/pub/update"])
|
|
|
fun updatePub(@RequestBody request: SUpdateRequest<PlanarGraphPub>): SBaseResponse {
|
|
|
- return PlanarGraphService.pubUpdate(request)
|
|
|
+ return PlanarGraphService.pubUpdateLogic(request)
|
|
|
}
|
|
|
|
|
|
/**
|
|
@@ -183,7 +183,7 @@ class PlanarGraphController {
|
|
|
@Operation(summary = "回收站- 恢复图形", description = "Id 和 GraphId 必填 ")
|
|
|
@PostMapping(value = ["recycle/recovery"])
|
|
|
fun recovery(@RequestBody graph: PlanarGraph): SBaseResponse{
|
|
|
- return PlanarGraphService.recovery(graph)
|
|
|
+ return PlanarGraphService.recoveryLogic(graph)
|
|
|
}
|
|
|
|
|
|
/**
|
|
@@ -195,7 +195,7 @@ class PlanarGraphController {
|
|
|
@Operation(summary = "回收站-根据id删除图形信息,删除图形", description = "Id 和 GraphId 必填 ")
|
|
|
@PostMapping(value = ["recycle/delete"])
|
|
|
fun delete(@RequestBody idList: ArrayList<PlanarGraph>): SBaseResponse {
|
|
|
- return PlanarGraphService.deleteByKeysList(idList)
|
|
|
+ return PlanarGraphService.deleteByKeysListLogic(idList)
|
|
|
}
|
|
|
|
|
|
}
|