提交 bbcee98f 编写于 作者: zhouweidong's avatar zhouweidong

适配动态系统

上级 8da00dd3
...@@ -5,6 +5,8 @@ package ${pub.getPKGCodeName()}.util.client; ...@@ -5,6 +5,8 @@ package ${pub.getPKGCodeName()}.util.client;
import com.alibaba.fastjson.JSONObject; import com.alibaba.fastjson.JSONObject;
import org.springframework.stereotype.Component; import org.springframework.stereotype.Component;
import java.util.List;
import java.util.Map;
@Component @Component
public class IBZLiteFallback implements IBZLiteFeignClient { public class IBZLiteFallback implements IBZLiteFeignClient {
...@@ -13,4 +15,11 @@ public class IBZLiteFallback implements IBZLiteFeignClient { ...@@ -13,4 +15,11 @@ public class IBZLiteFallback implements IBZLiteFeignClient {
public Boolean syncSysModel(JSONObject system) { public Boolean syncSysModel(JSONObject system) {
return null; return null;
} }
<#if pub.isEnableDynaModel()?? && pub.isEnableDynaModel()== true>
@Override
public List<Map<String, Object>> getDynamicModel(String systemId) {
return null;
}
</#if>
} }
...@@ -6,6 +6,8 @@ package ${pub.getPKGCodeName()}.util.client; ...@@ -6,6 +6,8 @@ package ${pub.getPKGCodeName()}.util.client;
import com.alibaba.fastjson.JSONObject; import com.alibaba.fastjson.JSONObject;
import org.springframework.cloud.openfeign.FeignClient; import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*; import org.springframework.web.bind.annotation.*;
import java.util.List;
import java.util.Map;
@FeignClient(value = "${r'${ibiz.ref.service.lite:ibzlite-api}'}",contextId = "lite",fallback = IBZLiteFallback.class) @FeignClient(value = "${r'${ibiz.ref.service.lite:ibzlite-api}'}",contextId = "lite",fallback = IBZLiteFallback.class)
public interface IBZLiteFeignClient public interface IBZLiteFeignClient
...@@ -17,4 +19,14 @@ public interface IBZLiteFeignClient ...@@ -17,4 +19,14 @@ public interface IBZLiteFeignClient
*/ */
@PostMapping("/lite/syncsysmodel") @PostMapping("/lite/syncsysmodel")
Boolean syncSysModel(@RequestBody JSONObject system); Boolean syncSysModel(@RequestBody JSONObject system);
<#if pub.isEnableDynaModel()?? && pub.isEnableDynaModel()== true>
/**
* 获取动态模型
* @param systemId
* @return
*/
@RequestMapping(method = RequestMethod.GET, value = "/{systemid}/getdynamicmodel")
List<Map<String, Object>> getDynamicModel(@PathVariable("systemid") String systemId);
</#if>
} }
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册