|
@@ -1,7 +1,6 @@
|
|
|
package com.persagy.labsl.controller
|
|
|
|
|
|
import com.persagy.labsl.models.entities.tpt.Relation
|
|
|
-import com.persagy.labsl.services.RelationLogicService
|
|
|
import com.persagy.labsl.services.RelationService
|
|
|
import com.persagy.service.models.requests.SCreateRequest
|
|
|
import com.persagy.service.models.requests.SQueryRequest
|
|
@@ -11,7 +10,6 @@ import com.persagy.service.models.responses.SCreateResponse
|
|
|
import com.persagy.service.models.responses.SQueryResponse
|
|
|
import io.swagger.v3.oas.annotations.Operation
|
|
|
import io.swagger.v3.oas.annotations.tags.Tag
|
|
|
-import org.springframework.beans.factory.annotation.Autowired
|
|
|
import org.springframework.web.bind.annotation.PostMapping
|
|
|
import org.springframework.web.bind.annotation.RequestBody
|
|
|
import org.springframework.web.bind.annotation.RequestMapping
|
|
@@ -26,8 +24,6 @@ import org.springframework.web.bind.annotation.RestController
|
|
|
@RestController
|
|
|
@RequestMapping("/relation")
|
|
|
class RelationController {
|
|
|
- @Autowired
|
|
|
- lateinit var relationLogicService: RelationLogicService
|
|
|
|
|
|
/**
|
|
|
* 管线创建
|
|
@@ -38,7 +34,7 @@ class RelationController {
|
|
|
@Operation(summary="管线创建", description ="id 为系统图的图对象id,graphId 为系统图的图id ,relationId 为当前管线对象的id,id 和 graphId 必须填为某一个系统图中的id,relationId 是当前要创建的对象 id 不传会自动生成(32位uuid)")
|
|
|
@PostMapping("/create")
|
|
|
fun create(@RequestBody request: SCreateRequest<Relation>): SCreateResponse<Relation> {
|
|
|
- return relationLogicService.creates(request)
|
|
|
+ return RelationService.creates(request)
|
|
|
}
|
|
|
|
|
|
/**
|
|
@@ -50,7 +46,7 @@ class RelationController {
|
|
|
@Operation(summary = "根据id删除管线信息", description = "创建中有介绍id的说明请查看,删除时必须传入 id、graphId、relationId 才能确认删除的是当前的标识对象")
|
|
|
@PostMapping(value = ["/delete"])
|
|
|
fun delete(@RequestBody idList: ArrayList<Relation>): SBaseResponse {
|
|
|
- return relationLogicService.deletes(idList)
|
|
|
+ return RelationService.deletes(idList)
|
|
|
}
|
|
|
|
|
|
/**
|
|
@@ -62,7 +58,7 @@ class RelationController {
|
|
|
@Operation(summary = "更新管线信息", description = "创建中有介绍id的说明请查看,id、graphId、relationId 为必填信息点,参考创建后的对象信息点,修改哪个信息点直接写在对象里面即可,详细的使用方式参考 web 端接口使用规范")
|
|
|
@PostMapping(value = ["/update"])
|
|
|
fun update(@RequestBody request: SUpdateRequest<Relation>): SBaseResponse {
|
|
|
- return relationLogicService.updateList(request)
|
|
|
+ return RelationService.updateList(request)
|
|
|
}
|
|
|
|
|
|
/**
|