Skip to content

Commit

Permalink
fix: apartment 내집마련 API
Browse files Browse the repository at this point in the history
  • Loading branch information
eojinny committed Dec 5, 2023
1 parent 0470543 commit a0f5967
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,13 @@ public Request(Product product) {
@NoArgsConstructor
@Data
public static class Response{
private String name;
private String price;

private String roi;

public Response(Product product) {
this.name= product.getName();
this.price= product.getPrice();
this.roi= product.getRoi();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ public class Product {
@GeneratedValue(strategy = GenerationType.IDENTITY)
private Long id;

private String name;
private String price;

private String roi;
Expand Down

0 comments on commit a0f5967

Please sign in to comment.