提交 b66470c9 编写于 作者: sq3536's avatar sq3536

接口

上级 da169dc5
......@@ -171,10 +171,12 @@ public class DstCoreResource {
return ResponseEntity.status(HttpStatus.OK).body(liteModelService.getEntityModel(system,entity).getNesteds());
}
@RequestMapping(method = RequestMethod.POST, value = "/dst/{system}/entitys/{entity}/get")
public ResponseEntity<EntityObj> getEntity(@PathVariable("system") String system, @PathVariable("entity") String entity, HttpServletRequest request) {
@RequestMapping(method = {RequestMethod.POST,RequestMethod.GET}, value = "/dst/{system}/entitys/{entity}/get")
public ResponseEntity<EntityObj> getEntity(@PathVariable("system") String system, @PathVariable("entity") String entity, HttpServletRequest request,@RequestBody(required = false) Map map) {
Map<String, String[]> params = request.getParameterMap();
EntityObj entityObj = new EntityObj();
if(map!=null)
entityObj.putAll(map);
for (String key : params.keySet()) {
entityObj.set(key.toUpperCase(),params.get(key)[0]);
}
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册