diff --git a/src/main/java/org/ntlab/acanthus_server/entities/WorkJson.java b/src/main/java/org/ntlab/acanthus_server/entities/WorkJson.java index e82a1b6..dbe6636 100644 --- a/src/main/java/org/ntlab/acanthus_server/entities/WorkJson.java +++ b/src/main/java/org/ntlab/acanthus_server/entities/WorkJson.java @@ -7,23 +7,25 @@ public class WorkJson { @JsonProperty("aid") - private ArrayList aid = new ArrayList<>(); + //private ArrayList aid = new ArrayList<>(); + private ArrayList aid = new ArrayList<>(); //ユーザーの制作作品idをレスポンスとして返す際に、JSONのレスポンスに合わせる public WorkJson(Collection workList){ for (var work : workList){ - String strAid = "/gallery/" + work.getAnimation().getAid(); - aid.add(strAid); + //String strAid = "/gallery/" + work.getAnimation().getAid(); + //aid.add(strAid); + aid.add(work.getAnimation().getAid()); } } - public Collection getAid() { + public Collection getAid() { return aid; } - public void setAid(ArrayList aid) { + public void setAid(ArrayList aid) { this.aid = aid; } }