Skip to content

Commit

Permalink
fix: Buyer [#353]
Browse files Browse the repository at this point in the history
  • Loading branch information
lowgiant committed Feb 13, 2022
1 parent fed8fea commit af9a0c1
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@ public class BuyerDistributeResponseDto {
@JsonProperty("farm_ceo_name")
private String farmCEOName;

private String content;
private String title;

@JsonProperty("farm_image")
private String farmImage;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ public BuyerDistributeResponseDto toDistributeResponseDto(Buyer buyer) {
.id(buyer.getId())
.buyerName(buyer.getBuyerName())
.farmName(buyer.getFarm().getFarmName())
.content(buyer.getContent())
.title(buyer.getTitle())
.farmCEOName(buyer.getFarm().getCeoName())
.farmImage("https://kr.object.ncloudstorage.com/bancowback/" + buyer.getFarm().getFarmImage())
.build();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@ void getBuyerDistribute() throws Exception {
fieldWithPath("data[0].id").description("id"),
fieldWithPath("data[0].buyer_name").description("구매자 이름"),
fieldWithPath("data[0].farm_name").description("농장 이름"),
fieldWithPath("data[0].title").description("제목"),
fieldWithPath("data[0].content").description("내용"),
fieldWithPath("data[0].farm_ceo_name").description("농장 대표님 이름"),
fieldWithPath("data[0].farm_image").description("농장 사진"),
fieldWithPath("status").description("HTTP Status")
Expand Down

0 comments on commit af9a0c1

Please sign in to comment.