|
|
|
@ -7,6 +7,7 @@ import kr.re.etri.autoflow.entity.WorkflowEntity;
|
|
|
|
import kr.re.etri.autoflow.payload.request.WorkFlowRequest;
|
|
|
|
import kr.re.etri.autoflow.payload.request.WorkFlowRequest;
|
|
|
|
import kr.re.etri.autoflow.service.WorkFlowService;
|
|
|
|
import kr.re.etri.autoflow.service.WorkFlowService;
|
|
|
|
import lombok.RequiredArgsConstructor;
|
|
|
|
import lombok.RequiredArgsConstructor;
|
|
|
|
|
|
|
|
import org.springdoc.core.annotations.ParameterObject;
|
|
|
|
import org.springframework.data.domain.Page;
|
|
|
|
import org.springframework.data.domain.Page;
|
|
|
|
import org.springframework.http.ResponseEntity;
|
|
|
|
import org.springframework.http.ResponseEntity;
|
|
|
|
import org.springframework.web.bind.annotation.*;
|
|
|
|
import org.springframework.web.bind.annotation.*;
|
|
|
|
@ -40,11 +41,12 @@ public class WorkFlowController {
|
|
|
|
@Operation(summary = "워크플로우 검색 및 페이지네이션 프로젝트 목록 조회")
|
|
|
|
@Operation(summary = "워크플로우 검색 및 페이지네이션 프로젝트 목록 조회")
|
|
|
|
@GetMapping("/search")
|
|
|
|
@GetMapping("/search")
|
|
|
|
public ResponseEntity<Page<WorkflowEntity>> searchProjects(
|
|
|
|
public ResponseEntity<Page<WorkflowEntity>> searchProjects(
|
|
|
|
@ModelAttribute WorkFlowRequest request) {
|
|
|
|
@ParameterObject @ModelAttribute WorkFlowRequest request) {
|
|
|
|
Page<WorkflowEntity> page = workflowService.search(request);
|
|
|
|
Page<WorkflowEntity> page = workflowService.search(request);
|
|
|
|
return ResponseEntity.ok(page);
|
|
|
|
return ResponseEntity.ok(page);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Operation(summary = "워크플로우 등록")
|
|
|
|
@Operation(summary = "워크플로우 등록")
|
|
|
|
@PostMapping
|
|
|
|
@PostMapping
|
|
|
|
public ResponseEntity<WorkflowEntity> createWorkflow(@RequestBody WorkflowEntity workflow) {
|
|
|
|
public ResponseEntity<WorkflowEntity> createWorkflow(@RequestBody WorkflowEntity workflow) {
|
|
|
|
|