|
|
@@ -1,9 +1,8 @@ |
|
|
|
package com.ningdatech.pmapi.sys.controller; |
|
|
|
|
|
|
|
import com.ningdatech.basic.model.PageVo; |
|
|
|
import com.wflow.bean.dto.WflowFormsDto; |
|
|
|
import com.wflow.bean.vo.WflowFormVo; |
|
|
|
import com.wflow.bean.vo.WflowModelVo; |
|
|
|
import com.wflow.workflow.service.FormService; |
|
|
|
import com.wflow.workflow.service.WflowFormsService; |
|
|
|
import io.swagger.annotations.Api; |
|
|
|
import io.swagger.annotations.ApiOperation; |
|
|
|
import lombok.RequiredArgsConstructor; |
|
|
@@ -25,11 +24,17 @@ import org.springframework.web.bind.annotation.*; |
|
|
|
@RequiredArgsConstructor |
|
|
|
public class SysFormController { |
|
|
|
|
|
|
|
private final FormService formService; |
|
|
|
private final WflowFormsService formService; |
|
|
|
|
|
|
|
@ApiOperation(value = "获取系统表单", notes = "获取系统表单") |
|
|
|
@GetMapping("/{regionCode}") |
|
|
|
public WflowFormVo list(@PathVariable String regionCode) { |
|
|
|
public WflowFormVo detail(@PathVariable String regionCode) { |
|
|
|
return formService.getFormByRegionCode(regionCode); |
|
|
|
} |
|
|
|
|
|
|
|
@ApiOperation(value = "编辑系统表单", notes = "编辑系统表单") |
|
|
|
@PostMapping("/modify") |
|
|
|
public String modify(@Validated @RequestBody WflowFormsDto dto) { |
|
|
|
return formService.modifySysForm(dto); |
|
|
|
} |
|
|
|
} |