diff --git a/src/main/java/wowmarket/wow_server/mypage/myproject/MySalesProject/controller/MySalesProjectController.java b/src/main/java/wowmarket/wow_server/mypage/myproject/MySalesProject/controller/MySalesProjectController.java index 54515b3..0521778 100644 --- a/src/main/java/wowmarket/wow_server/mypage/myproject/MySalesProject/controller/MySalesProjectController.java +++ b/src/main/java/wowmarket/wow_server/mypage/myproject/MySalesProject/controller/MySalesProjectController.java @@ -18,6 +18,7 @@ public class MySalesProjectController { private final MySalesProjectService mySalesProjectService; + //판매 등록폼 전체보기 @GetMapping() public MySalesListResponseDto getMySalesList(@RequestParam(value = "page", defaultValue = "1", required = false)int page, @AuthenticationPrincipal User user){ Pageable pageable = PageRequest.of(page - 1, 10); @@ -29,6 +30,7 @@ public ResponseEntity finishMySales(@PathVariable Long project_id){ return mySalesProjectService.finishMySalesForm(project_id); } + //판매 등록폼 상세보기 @GetMapping("/detail/{project_id}") public MySalesDetailResponseDto getMySalesDetail(@PathVariable Long project_id){ return mySalesProjectService.findMySalesDetail(project_id); diff --git a/src/main/java/wowmarket/wow_server/mypage/myproject/MySalesProject/dto/MySalesDetailResponseDto.java b/src/main/java/wowmarket/wow_server/mypage/myproject/MySalesProject/dto/MySalesDetailResponseDto.java index d762ea6..8fa8e62 100644 --- a/src/main/java/wowmarket/wow_server/mypage/myproject/MySalesProject/dto/MySalesDetailResponseDto.java +++ b/src/main/java/wowmarket/wow_server/mypage/myproject/MySalesProject/dto/MySalesDetailResponseDto.java @@ -26,6 +26,11 @@ public class MySalesDetailResponseDto { private String seller_account; private String seller_account_name; private String seller_nickname; + private Long delivery_fee; + private String seller_phone_number; + private String seller_email; + private String seller_etc; + public MySalesDetailResponseDto(Project project, List itemDtos){ this.projectId = project.getId(); diff --git a/src/main/java/wowmarket/wow_server/mypage/myproject/MySalesProject/dto/MySalesFormDto.java b/src/main/java/wowmarket/wow_server/mypage/myproject/MySalesProject/dto/MySalesFormDto.java index 01b939a..33cf86b 100644 --- a/src/main/java/wowmarket/wow_server/mypage/myproject/MySalesProject/dto/MySalesFormDto.java +++ b/src/main/java/wowmarket/wow_server/mypage/myproject/MySalesProject/dto/MySalesFormDto.java @@ -14,11 +14,15 @@ public class MySalesFormDto { private String name; private LocalDateTime createdtime; private int status; + private String description; + private String thumbnail; public MySalesFormDto(Project project){ this.id = project.getId(); this.name = project.getName(); this.createdtime = project.getCreated_time(); this.status = (project.isEnd() == false? 0 : 1); + this.description = project.getDescription(); + this.thumbnail = project.getThumbnail(); } }