diff --git a/src/main/java/org/ntlab/acanthus_server/entities/FollowAddJson.java b/src/main/java/org/ntlab/acanthus_server/entities/FollowAddJson.java new file mode 100644 index 0000000..a31cbab --- /dev/null +++ b/src/main/java/org/ntlab/acanthus_server/entities/FollowAddJson.java @@ -0,0 +1,33 @@ +package org.ntlab.acanthus_server.entities; + +import com.fasterxml.jackson.annotation.JsonProperty; + +public class FollowAddJson { + @JsonProperty("message") + private String message = "Follow registration success"; + @JsonProperty("uid") + private Integer uid; + @JsonProperty("followUid") + private Integer followUid; + + public FollowAddJson(Account account, Account followAccount){ + this.uid = account.getUid(); + this.followUid = followAccount.getUid(); + } + + public Integer getUid() { + return uid; + } + + public Integer getFollowUid() { + return followUid; + } + + public void setUid(Integer uid) { + this.uid = uid; + } + + public void setFollowUid(Integer followUid) { + this.followUid = followUid; + } +}