ny
昨天 b6f169fe43a2b13f351aefc152374fc7f0bc8cb7
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
package jnpf.file;
 
import jnpf.file.fallback.DocumentApiFallback;
import jnpf.model.document.FlowFileModel;
import jnpf.utils.FeignName;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
 
import java.util.List;
import java.util.Map;
 
/**
 * 类的描述
 *
 * @author JNPF@YinMai Info. Co., Ltd
 * @version 5.0.x
 * @since 2024/7/26 19:58
 */
@FeignClient(name = FeignName.FILE_SERVER_NAME, fallback = DocumentApiFallback.class, path = "/Document")
public interface DocumentApi {
    /**
     * 判断是否存在归档文件
     *
     * @param taskId 流程任务主键
     */
    @GetMapping("/checkFlowFile/{taskId}")
    Boolean checkFlowFile(@PathVariable("taskId") String taskId);
 
    /**
     * 获取归档文件
     *
     * @param model 参数
     */
    @PostMapping("/getFlowFile")
    List<Map<String, Object>> getFlowFile(@RequestBody FlowFileModel model);
}