diff --git a/src/main/java/org/ntlab/nemophila/models/accounts/Account.java b/src/main/java/org/ntlab/nemophila/models/accounts/Account.java index 3dd2c69..5a2c70b 100644 --- a/src/main/java/org/ntlab/nemophila/models/accounts/Account.java +++ b/src/main/java/org/ntlab/nemophila/models/accounts/Account.java @@ -7,6 +7,7 @@ import java.util.HashMap; public class Account { + @JsonProperty("name") private String name; @JsonProperty("id") @@ -16,6 +17,12 @@ @JsonProperty("token") private String token; + //コンストラクタ + public Account(String name, String pw) { + this.name = name; + this.pw = pw; + } + //Getter public String getId() { return id; @@ -40,6 +47,7 @@ private HashMap posts = new HashMap<>(); + //新規投稿 public Post createPost(int rate, String genre, String comment, String image1, String image2, String image3, Shop shop) { Post post = new Post();