From 34981c30a78e8bbd7791131059a9210f9928b62c Mon Sep 17 00:00:00 2001
From: 刘光辉 <347230014@qq.com>
Date: 星期四, 17 九月 2026 09:24:09 +0800
Subject: [PATCH] Merge remote-tracking branch 'origin/master' into master
---
jnpf-flowable/jnpf-flowable-api/src/main/java/jnpf/flowable/TemplateApi.java | 115 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++
1 files changed, 115 insertions(+), 0 deletions(-)
diff --git a/jnpf-flowable/jnpf-flowable-api/src/main/java/jnpf/flowable/TemplateApi.java b/jnpf-flowable/jnpf-flowable-api/src/main/java/jnpf/flowable/TemplateApi.java
new file mode 100644
index 0000000..97bd9cc
--- /dev/null
+++ b/jnpf-flowable/jnpf-flowable-api/src/main/java/jnpf/flowable/TemplateApi.java
@@ -0,0 +1,115 @@
+package jnpf.flowable;
+
+import jnpf.base.model.export.TemplateExportVo;
+import jnpf.flowable.entity.TemplateEntity;
+import jnpf.flowable.fallback.TemplateApiFallback;
+import jnpf.flowable.model.template.*;
+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;
+
+/**
+ * 绫荤殑鎻忚堪
+ *
+ * @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);
+
+ @GetMapping("/getExportList")
+ List<TemplateExportVo> getExportList(@RequestParam("systemId") String systemId);
+
+ @PostMapping("/importCopy")
+ boolean importCopy(@RequestBody List<TemplateExportVo> list, @RequestParam("systemId") String systemId);
+
+ @GetMapping("/deleteBySystemId")
+ void deleteBySystemId(@RequestParam("systemId") String systemId);
+}
--
Gitblit v1.8.0