123456789101112131415161718192021222324252627282930313233343536373839 |
- package com.fjhx.feign;
- import com.fjhx.constants.ClientConstant;
- import com.fjhx.entity.example.ExampleInfo;
- import com.fjhx.entity.process.ProcessNodeButton;
- import com.fjhx.entity.process.ProcessTenant;
- import org.springblade.core.tool.api.R;
- import org.springframework.cloud.openfeign.FeignClient;
- import org.springframework.web.bind.annotation.PostMapping;
- /**
- * File Feign接口类
- */
- @FeignClient(value = "service-flow")
- public interface IFlowClient {
- String GET_PROCESS_TENANT = ClientConstant.API_PREFIX + "/getProcessTenantByCode";
- String EXAMPLE_INFO_SAVE = ClientConstant.API_PREFIX + "/exampleInfoSave";
- String GET_PROCESS_NODE_BUTTON_BY_PROCESS_TENANT_ID = ClientConstant.API_PREFIX + "/getProcessNodeButtonByProcessTenantId";
- /**
- * 通过流程编码获取租户流程
- */
- @PostMapping(GET_PROCESS_TENANT)
- R<ProcessTenant> getProcessTenant(Long businessId, String code);
- /**
- * 通过租户业务流程id获取开始节点按钮信息
- */
- @PostMapping(GET_PROCESS_NODE_BUTTON_BY_PROCESS_TENANT_ID)
- R<ProcessNodeButton> getProcessNodeButtonByProcessTenantId(Long processTenantId, String processNodeCode);
- /**
- * 保存流程实例
- */
- @PostMapping(EXAMPLE_INFO_SAVE)
- R<ExampleInfo> exampleInfoSave(ExampleInfo exampleInfo);
- }
|