@ApiOperation(value = "获取表单定义设计内容", notes = "根据表单定义的id来获取表单定义设计内容")
@ApiImplicitParam(name = "id", value = "表单定义ID", required = true, dataType = "Long", paramType = "path")
@RequestMapping(value = "/form-definitions/{id}/json", method = RequestMethod.GET)
@ResponseStatus(value = HttpStatus.OK)
public String getEditorJson(@PathVariable Long id) throws UnsupportedEncodingException {
FormDefinition formDefinition = getFormDefinitionFromRequest(id);
String editorJson = null;
if (formDefinition.getEditorSourceBytes() == null) {
editorJson = objectMapper.createArrayNode().toString();
} else {
editorJson = new String(formDefinition.getEditorSourceBytes(), "utf-8");
}
return editorJson;
}
FormDefinitionJsonResource.java 文件源码
java
阅读 13
收藏 0
点赞 0
评论 0
项目:plumdo-work
作者:
评论列表
文章目录