Resolve attachment relative path problem again.

pull/146/head
ruibaby 2019-04-13 19:08:23 +08:00
parent b138c2f820
commit 94e77c3d4b
1 changed files with 2 additions and 1 deletions

View File

@ -52,7 +52,8 @@ public class AttachmentController {
@GetMapping("{id:\\d+}") @GetMapping("{id:\\d+}")
@ApiOperation("Get attachment detail by id") @ApiOperation("Get attachment detail by id")
public AttachmentOutputDTO getBy(@PathVariable("id") Integer id) { public AttachmentOutputDTO getBy(@PathVariable("id") Integer id) {
return new AttachmentOutputDTO().convertFrom(attachmentService.getById(id)); Attachment attachment = attachmentService.getById(id);
return attachmentService.convertToDto(attachment);
} }
/** /**