提交 | 用户 | 时间
|
e7c126
|
1 |
package com.iailab.module.bpm.api.task; |
H |
2 |
|
|
3 |
import com.iailab.framework.common.pojo.CommonResult; |
|
4 |
import com.iailab.module.bpm.api.task.dto.BpmProcessInstanceCreateReqDTO; |
|
5 |
import com.iailab.module.bpm.enums.ApiConstants; |
|
6 |
import io.swagger.v3.oas.annotations.Operation; |
|
7 |
import io.swagger.v3.oas.annotations.Parameter; |
|
8 |
import io.swagger.v3.oas.annotations.tags.Tag; |
|
9 |
import org.springframework.cloud.openfeign.FeignClient; |
|
10 |
import org.springframework.web.bind.annotation.PostMapping; |
|
11 |
import org.springframework.web.bind.annotation.RequestBody; |
|
12 |
import org.springframework.web.bind.annotation.RequestParam; |
|
13 |
|
|
14 |
import javax.validation.Valid; |
|
15 |
|
|
16 |
@FeignClient(name = ApiConstants.NAME) // TODO iailab:fallbackFactory = |
|
17 |
@Tag(name = "RPC 服务 - 流程实例") |
|
18 |
public interface BpmProcessInstanceApi { |
|
19 |
|
|
20 |
String PREFIX = ApiConstants.PREFIX + "/process-instance"; |
|
21 |
|
|
22 |
@PostMapping(PREFIX + "/create") |
|
23 |
@Operation(summary = "创建流程实例(提供给内部),返回实例编号") |
|
24 |
@Parameter(name = "userId", description = "用户编号", required = true, example = "1") |
|
25 |
CommonResult<String> createProcessInstance(@RequestParam("userId") Long userId, |
|
26 |
@Valid @RequestBody BpmProcessInstanceCreateReqDTO reqDTO); |
|
27 |
|
|
28 |
} |