IBZLiteFeignClient.java.ftl 946 字节
Newer Older
zhouweidong's avatar
zhouweidong committed
1 2 3 4 5 6 7 8
<#ibiztemplate>
TARGET=PSSYSTEM
</#ibiztemplate>
package ${pub.getPKGCodeName()}.util.client;

import com.alibaba.fastjson.JSONObject;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;
zhouweidong's avatar
zhouweidong committed
9 10
import java.util.List;
import java.util.Map;
zhouweidong's avatar
zhouweidong committed
11

zhouweidong's avatar
zhouweidong committed
12
@FeignClient(value = "${r'${ibiz.ref.service.lite:ibzlite-api}'}",contextId = "lite",fallback = IBZLiteFallback.class)
zhouweidong's avatar
zhouweidong committed
13 14 15 16 17 18 19
public interface IBZLiteFeignClient
{
	/**
	 * 同步系统资模型到lite
	 * @param system 系统模型信息
	 * @return
	 */
20
	@PostMapping("/lite/syncsysmodel")
zhouweidong's avatar
zhouweidong committed
21
	Boolean syncSysModel(@RequestBody JSONObject system);
zhouweidong's avatar
zhouweidong committed
22 23 24 25 26 27 28

	<#if pub.isEnableDynaModel()?? && pub.isEnableDynaModel()== true>
	/**
	 * 获取动态模型
	 * @param systemId
	 * @return
	 */
zhouweidong's avatar
zhouweidong committed
29
	@RequestMapping(method = RequestMethod.GET, value = "/lite/{systemid}/getdynamicmodel")
zhouweidong's avatar
zhouweidong committed
30 31
	List<Map<String, Object>> getDynamicModel(@PathVariable("systemid") String systemId);
	</#if>
zhouweidong's avatar
zhouweidong committed
32
}