|
@@ -7,6 +7,8 @@ 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;
|
|
|
+import org.springframework.web.bind.annotation.RequestBody;
|
|
|
+import org.springframework.web.bind.annotation.RequestParam;
|
|
|
|
|
|
/**
|
|
|
* File Feign接口类
|
|
@@ -14,26 +16,28 @@ import org.springframework.web.bind.annotation.PostMapping;
|
|
|
@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_TENANT = ClientConstant.API_PREFIX + "/getProcessTenant";
|
|
|
String GET_PROCESS_NODE_BUTTON_BY_PROCESS_TENANT_ID = ClientConstant.API_PREFIX + "/getProcessNodeButtonByProcessTenantId";
|
|
|
+ String EXAMPLE_INFO_SAVE = ClientConstant.API_PREFIX + "/exampleInfoSave";
|
|
|
|
|
|
/**
|
|
|
* 通过流程编码获取租户流程
|
|
|
*/
|
|
|
@PostMapping(GET_PROCESS_TENANT)
|
|
|
- R<ProcessTenant> getProcessTenant(Long businessId, String code);
|
|
|
+ R<ProcessTenant> getProcessTenant(@RequestParam("businessId") Long businessId, @RequestParam("code") String code);
|
|
|
|
|
|
/**
|
|
|
* 通过租户业务流程id获取开始节点按钮信息
|
|
|
*/
|
|
|
@PostMapping(GET_PROCESS_NODE_BUTTON_BY_PROCESS_TENANT_ID)
|
|
|
- R<ProcessNodeButton> getProcessNodeButtonByProcessTenantId(Long processTenantId, String processNodeCode);
|
|
|
+ R<ProcessNodeButton> getProcessNodeButtonByProcessTenantId(
|
|
|
+ @RequestParam("businessId") Long businessId,
|
|
|
+ @RequestParam("processNodeCode") String processNodeCode);
|
|
|
|
|
|
/**
|
|
|
* 保存流程实例
|
|
|
*/
|
|
|
@PostMapping(EXAMPLE_INFO_SAVE)
|
|
|
- R<ExampleInfo> exampleInfoSave(ExampleInfo exampleInfo);
|
|
|
+ R<ExampleInfo> exampleInfoSave(@RequestBody ExampleInfo exampleInfo);
|
|
|
|
|
|
}
|