提交 df4adff6 编写于 作者: ibizdev's avatar ibizdev

zhouweidong 发布系统代码 [ibz-dst,应用]

上级 6233389c
......@@ -50,18 +50,19 @@ public class MetaModelResource {
@PreAuthorize("hasAnyAuthority('ROLE_SUPERADMIN','ibzdst-MetaModel-ExportFile-all')")
@ApiOperation(value = "导出文件", tags = {"模型" }, notes = "导出文件")
@RequestMapping(method = RequestMethod.POST, value = "/metamodels/{metamodel_id}/exportfile")
public ResponseEntity<MetaModelDTO> exportFile(@PathVariable("metamodel_id") String metamodel_id, @RequestBody MetaModelDTO metamodeldto) {
public ResponseEntity<Void> exportFile(@PathVariable("metamodel_id") String metamodel_id, @RequestBody MetaModelDTO metamodeldto) {
MetaModel domain = metamodelMapping.toDomain(metamodeldto);
domain.setId(metamodel_id);
domain = metamodelService.exportFile(domain);
metamodeldto = metamodelMapping.toDto(domain);
return ResponseEntity.status(HttpStatus.OK).body(metamodeldto);
return ResponseEntity.status(HttpStatus.OK).build();
}
@PreAuthorize("hasAnyAuthority('ROLE_SUPERADMIN','ibzdst-MetaModel-ExportFile-all')")
@ApiOperation(value = "批量处理[导出文件]", tags = {"模型" }, notes = "批量处理[导出文件]")
@RequestMapping(method = RequestMethod.POST, value = "/metamodels/{metamodel_id}/exportfilebatch")
public ResponseEntity<Boolean> exportFileBatch(@RequestBody List<MetaModelDTO> metamodeldtos) {
return ResponseEntity.status(HttpStatus.OK).body(metamodelService.exportFileBatch(metamodelMapping.toDomain(metamodeldtos)));
public ResponseEntity<Void> exportFileBatch(@RequestBody List<MetaModelDTO> metamodeldtos) {
metamodelService.exportFileBatch(metamodelMapping.toDomain(metamodeldtos));
return ResponseEntity.status(HttpStatus.OK).build();
}
@PreAuthorize("hasAnyAuthority('ROLE_SUPERADMIN','ibzdst-MetaModel-Create-all')")
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册