diff --git a/src/main/java/org/ntlab/citrusserver/entities/Account.java b/src/main/java/org/ntlab/citrusserver/entities/Account.java index 37cbba8..0567713 100644 --- a/src/main/java/org/ntlab/citrusserver/entities/Account.java +++ b/src/main/java/org/ntlab/citrusserver/entities/Account.java @@ -1,9 +1,14 @@ package org.ntlab.citrusserver.entities; +import com.fasterxml.jackson.annotation.JsonIgnore; + public class Account { private String introduction; + @JsonIgnore private int bookcount = 0; + @JsonIgnore private String accountId; + @JsonIgnore private String password; public Account(String aid, String pass) { @@ -13,12 +18,16 @@ public void setIntroduction(String i) {introduction = i;} public String getIntroduction() {return introduction;} + @JsonIgnore public int getNewBookId() { bookcount += 1; return bookcount; } + @JsonIgnore public int getBookCount() {return bookcount;} + public void setId(String i) {accountId = i;} + @JsonIgnore public String getId() {return accountId;} public void setPassword(String p) {password = p;} public String getPassword() {return password;}