diff --git a/src/main/java/org/ntlab/acanthus_server/entities/FollowerUidJson.java b/src/main/java/org/ntlab/acanthus_server/entities/FollowerUidJson.java new file mode 100644 index 0000000..4fcc657 --- /dev/null +++ b/src/main/java/org/ntlab/acanthus_server/entities/FollowerUidJson.java @@ -0,0 +1,26 @@ +package org.ntlab.acanthus_server.entities; + +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.ArrayList; +import java.util.Collection; + +public class FollowerUidJson { + @JsonProperty("followersUid") + private Collection uidList = new ArrayList<>(); + + //Json型でフォロワーのユーザーIDを表示する処理 + public FollowerUidJson(Collection followUidList){ + for (var followerUid : followUidList){ + uidList.add(followerUid); + } + } + + public Collection getUidList() { + return uidList; + } + + public void setUidList(Collection uidList) { + this.uidList = uidList; + } +}