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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
package jnpf.flowable;
 
import jnpf.flowable.entity.TemplateEntity;
import jnpf.flowable.entity.TemplateJsonEntity;
import jnpf.flowable.fallback.TemplateApiFallback;
import jnpf.flowable.model.template.*;
import jnpf.flowable.model.templatejson.FlowFormModel;
import jnpf.model.FlowWorkListVO;
import jnpf.permission.model.user.WorkHandoverModel;
import jnpf.utils.FeignName;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;
 
import java.util.List;
import java.util.Map;
 
/**
 * 类的描述
 *
 * @author JNPF@YinMai Info. Co., Ltd
 * @version 5.0.x
 * @since 2024/5/28 15:37
 */
@FeignClient(name = FeignName.WORKFLOW_SERVER_NAME, fallback = TemplateApiFallback.class, path = "/template")
public interface TemplateApi {
    /**
     * 根据表单主键获取流程
     *
     * @param formId 表单主键
     * @param start  是否仅查询开始节点关联的表单
     */
    @PostMapping("/getFlowByFormId")
    FlowByFormModel getFlowByFormId(@RequestParam("formId") String formId,@RequestParam("start") Boolean start);
 
    /**
     * 流程模板获取发起节点表单id
     *
     * @param templateId
     * @return
     */
    @GetMapping("/getFormByFlowId")
    String getFormByFlowId(@RequestParam("templateId") String templateId);
 
 
    /**
     * 根据流程版本获取流程基本信息
     *
     * @param flowId
     * @return
     */
    @PostMapping("/getListByFlowIds")
    List<TemplateEntity> getListByFlowIds(@RequestBody List<String> flowId);
 
    /**
     * 获取流程权限
     *
     * @return
     */
    @GetMapping("/treeListWithPower")
    List<TemplateTreeListVo> treeListWithPower();
 
    /**
     * 离职交接
     *
     * @param fromId
     * @return
     */
    @GetMapping("/flowWork")
    FlowWorkListVO flowWork(@RequestParam("fromId") String fromId);
 
    /**
     * 离职交接
     *
     * @param workHandoverModel
     * @return
     */
    @PostMapping("/flowWork")
    boolean flowWork(@RequestBody WorkHandoverModel workHandoverModel);
 
    /**
     * 收藏的流程列表
     *
     * @param pagination
     * @return
     */
    @PostMapping("/getCommonList")
    List<TemplatePageVo> getCommonList(@RequestBody TemplatePagination pagination);
 
    /**
     * 获取常用流程列表
     *
     * @return
     */
    @PostMapping("/getMenuUseNum")
    List<TemplateUseNumVo> getMenuUseNum(@RequestParam("i")Integer i, @RequestBody List<String> authFlowList);
 
    /**
     * 获取用户创建的所有模板
     *
     * @param creUser
     * @return
     */
    @GetMapping("/getListByCreUser")
    List<TemplateEntity> getListByCreUser(@RequestParam("creUser") String creUser);
}