Commit d0f6ba08 authored by chenzhao's avatar chenzhao

高亮图片

parent e7bd04d3
package com.yeejoin.amos.boot.biz.common.workflow.feign; package com.yeejoin.amos.boot.biz.common.workflow.feign;
import java.awt.*;
import java.util.HashMap; import java.util.HashMap;
import feign.Response;
import org.springframework.cloud.openfeign.FeignClient; import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.http.MediaType;
import org.springframework.web.bind.annotation.PathVariable; import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody; import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestMapping;
...@@ -11,6 +14,7 @@ import org.springframework.web.bind.annotation.RequestParam; ...@@ -11,6 +14,7 @@ import org.springframework.web.bind.annotation.RequestParam;
import com.alibaba.fastjson.JSONObject; import com.alibaba.fastjson.JSONObject;
import javax.print.attribute.standard.MediaTray;
import javax.servlet.http.HttpServletResponse; import javax.servlet.http.HttpServletResponse;
@FeignClient(name = "AMOS-API-WORKFLOW", path = "workflow", configuration = { CommonMultipartSupportConfig.class }) @FeignClient(name = "AMOS-API-WORKFLOW", path = "workflow", configuration = { CommonMultipartSupportConfig.class })
...@@ -109,11 +113,11 @@ public interface WorkflowFeignService { ...@@ -109,11 +113,11 @@ public interface WorkflowFeignService {
/** /**
* 流程图高亮 * 流程图高亮
* */ * */
@RequestMapping(value = "/activitiHistory/gethighLineImg/{processInstanceId}",method = RequestMethod.GET) @RequestMapping(value = "/activitiHistory/gethighLineImg/{processInstanceId}",consumes = MediaType.APPLICATION_FORM_URLENCODED_VALUE, method = RequestMethod.POST)
JSONObject thighLineImg(@PathVariable("processInstanceId") String processInstanceId, HttpServletResponse resp) ; Response thighLineImg(@PathVariable("processInstanceId") String processInstanceId, HttpServletResponse resp) ;
/** /**
* 流程图高亮图片 * 流程图高亮图片
* */ * */
@RequestMapping(value = "/activitiHistory/gethighLine",method = RequestMethod.GET) @RequestMapping(value = "/activitiHistory/gethighLine",method = RequestMethod.GET)
JSONObject thighLine(@RequestParam("instanceId") String instanceId); Response thighLine(@RequestParam("instanceId") String instanceId);
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment