IFlowClient.java 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. package com.fjhx.feign;
  2. import com.fjhx.constants.ClientConstant;
  3. import com.fjhx.entity.example.ExampleInfo;
  4. import com.fjhx.entity.process.ProcessNodeButton;
  5. import com.fjhx.entity.process.ProcessTenant;
  6. import org.springblade.core.tool.api.R;
  7. import org.springframework.cloud.openfeign.FeignClient;
  8. import org.springframework.web.bind.annotation.PostMapping;
  9. /**
  10. * File Feign接口类
  11. */
  12. @FeignClient(value = "service-flow")
  13. public interface IFlowClient {
  14. String GET_PROCESS_TENANT = ClientConstant.API_PREFIX + "/getProcessTenantByCode";
  15. String EXAMPLE_INFO_SAVE = ClientConstant.API_PREFIX + "/exampleInfoSave";
  16. String GET_PROCESS_NODE_BUTTON_BY_PROCESS_TENANT_ID = ClientConstant.API_PREFIX + "/getProcessNodeButtonByProcessTenantId";
  17. /**
  18. * 通过流程编码获取租户流程
  19. */
  20. @PostMapping(GET_PROCESS_TENANT)
  21. R<ProcessTenant> getProcessTenant(Long businessId, String code);
  22. /**
  23. * 通过租户业务流程id获取开始节点按钮信息
  24. */
  25. @PostMapping(GET_PROCESS_NODE_BUTTON_BY_PROCESS_TENANT_ID)
  26. R<ProcessNodeButton> getProcessNodeButtonByProcessTenantId(Long processTenantId, String processNodeCode);
  27. /**
  28. * 保存流程实例
  29. */
  30. @PostMapping(EXAMPLE_INFO_SAVE)
  31. R<ExampleInfo> exampleInfoSave(ExampleInfo exampleInfo);
  32. }