From 1610a41c4fa5249963b75b9da4b78324034edd16 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B0=8F=E5=82=85=E5=93=A5?= <184172133@qq.com> Date: Sat, 14 Oct 2023 16:58:06 +0800 Subject: [PATCH] =?UTF-8?q?feat=EF=BC=9A=E4=BB=8E=E7=9F=A5=E8=AF=86?= =?UTF-8?q?=E6=98=9F=E7=90=83=E6=8E=A5=E5=8F=A3=E8=BD=AC=E6=8D=A2=E8=BF=87?= =?UTF-8?q?=E6=9D=A5=E7=9A=84=E5=AF=B9=E8=B1=A1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../xfg/dev/tech/job/model/Group.java | 20 ++++++++ .../xfg/dev/tech/job/model/Owner.java | 20 ++++++++ .../xfg/dev/tech/job/model/RespData.java | 12 +++++ .../xfg/dev/tech/job/model/Response.java | 14 +++++ .../dev/tech/job/model/ShowCommentsItem.java | 29 +++++++++++ .../bugstack/xfg/dev/tech/job/model/Talk.java | 14 +++++ .../xfg/dev/tech/job/model/TopicsItem.java | 51 +++++++++++++++++++ .../xfg/dev/tech/job/model/UserSpecific.java | 14 +++++ 8 files changed, 174 insertions(+) create mode 100644 xfg-dev-tech-trigger/src/main/java/cn/bugstack/xfg/dev/tech/job/model/Group.java create mode 100644 xfg-dev-tech-trigger/src/main/java/cn/bugstack/xfg/dev/tech/job/model/Owner.java create mode 100644 xfg-dev-tech-trigger/src/main/java/cn/bugstack/xfg/dev/tech/job/model/RespData.java create mode 100644 xfg-dev-tech-trigger/src/main/java/cn/bugstack/xfg/dev/tech/job/model/Response.java create mode 100644 xfg-dev-tech-trigger/src/main/java/cn/bugstack/xfg/dev/tech/job/model/ShowCommentsItem.java create mode 100644 xfg-dev-tech-trigger/src/main/java/cn/bugstack/xfg/dev/tech/job/model/Talk.java create mode 100644 xfg-dev-tech-trigger/src/main/java/cn/bugstack/xfg/dev/tech/job/model/TopicsItem.java create mode 100644 xfg-dev-tech-trigger/src/main/java/cn/bugstack/xfg/dev/tech/job/model/UserSpecific.java diff --git a/xfg-dev-tech-trigger/src/main/java/cn/bugstack/xfg/dev/tech/job/model/Group.java b/xfg-dev-tech-trigger/src/main/java/cn/bugstack/xfg/dev/tech/job/model/Group.java new file mode 100644 index 0000000..0769fef --- /dev/null +++ b/xfg-dev-tech-trigger/src/main/java/cn/bugstack/xfg/dev/tech/job/model/Group.java @@ -0,0 +1,20 @@ +package cn.bugstack.xfg.dev.tech.job.model; + +import com.google.gson.annotations.SerializedName; +import lombok.Data; + +@Data +public class Group{ + + @SerializedName("group_id") + private long groupId; + + @SerializedName("background_url") + private String backgroundUrl; + + @SerializedName("name") + private String name; + + @SerializedName("type") + private String type; +} \ No newline at end of file diff --git a/xfg-dev-tech-trigger/src/main/java/cn/bugstack/xfg/dev/tech/job/model/Owner.java b/xfg-dev-tech-trigger/src/main/java/cn/bugstack/xfg/dev/tech/job/model/Owner.java new file mode 100644 index 0000000..2c2faba --- /dev/null +++ b/xfg-dev-tech-trigger/src/main/java/cn/bugstack/xfg/dev/tech/job/model/Owner.java @@ -0,0 +1,20 @@ +package cn.bugstack.xfg.dev.tech.job.model; + +import com.google.gson.annotations.SerializedName; +import lombok.Data; + +@Data +public class Owner{ + + @SerializedName("avatar_url") + private String avatarUrl; + + @SerializedName("user_id") + private long userId; + + @SerializedName("name") + private String name; + + @SerializedName("location") + private String location; +} \ No newline at end of file diff --git a/xfg-dev-tech-trigger/src/main/java/cn/bugstack/xfg/dev/tech/job/model/RespData.java b/xfg-dev-tech-trigger/src/main/java/cn/bugstack/xfg/dev/tech/job/model/RespData.java new file mode 100644 index 0000000..ac46be3 --- /dev/null +++ b/xfg-dev-tech-trigger/src/main/java/cn/bugstack/xfg/dev/tech/job/model/RespData.java @@ -0,0 +1,12 @@ +package cn.bugstack.xfg.dev.tech.job.model; + +import java.util.List; +import com.google.gson.annotations.SerializedName; +import lombok.Data; + +@Data +public class RespData{ + + @SerializedName("topics") + private List topics; +} \ No newline at end of file diff --git a/xfg-dev-tech-trigger/src/main/java/cn/bugstack/xfg/dev/tech/job/model/Response.java b/xfg-dev-tech-trigger/src/main/java/cn/bugstack/xfg/dev/tech/job/model/Response.java new file mode 100644 index 0000000..80fa6e3 --- /dev/null +++ b/xfg-dev-tech-trigger/src/main/java/cn/bugstack/xfg/dev/tech/job/model/Response.java @@ -0,0 +1,14 @@ +package cn.bugstack.xfg.dev.tech.job.model; + +import com.google.gson.annotations.SerializedName; +import lombok.Data; + +@Data +public class Response{ + + @SerializedName("resp_data") + private RespData respData; + + @SerializedName("succeeded") + private boolean succeeded; +} \ No newline at end of file diff --git a/xfg-dev-tech-trigger/src/main/java/cn/bugstack/xfg/dev/tech/job/model/ShowCommentsItem.java b/xfg-dev-tech-trigger/src/main/java/cn/bugstack/xfg/dev/tech/job/model/ShowCommentsItem.java new file mode 100644 index 0000000..46cf09d --- /dev/null +++ b/xfg-dev-tech-trigger/src/main/java/cn/bugstack/xfg/dev/tech/job/model/ShowCommentsItem.java @@ -0,0 +1,29 @@ +package cn.bugstack.xfg.dev.tech.job.model; + +import com.google.gson.annotations.SerializedName; +import lombok.Data; + +@Data +public class ShowCommentsItem{ + + @SerializedName("owner") + private Owner owner; + + @SerializedName("likes_count") + private int likesCount; + + @SerializedName("create_time") + private String createTime; + + @SerializedName("rewards_count") + private int rewardsCount; + + @SerializedName("sticky") + private boolean sticky; + + @SerializedName("text") + private String text; + + @SerializedName("comment_id") + private long commentId; +} \ No newline at end of file diff --git a/xfg-dev-tech-trigger/src/main/java/cn/bugstack/xfg/dev/tech/job/model/Talk.java b/xfg-dev-tech-trigger/src/main/java/cn/bugstack/xfg/dev/tech/job/model/Talk.java new file mode 100644 index 0000000..d959229 --- /dev/null +++ b/xfg-dev-tech-trigger/src/main/java/cn/bugstack/xfg/dev/tech/job/model/Talk.java @@ -0,0 +1,14 @@ +package cn.bugstack.xfg.dev.tech.job.model; + +import com.google.gson.annotations.SerializedName; +import lombok.Data; + +@Data +public class Talk{ + + @SerializedName("owner") + private Owner owner; + + @SerializedName("text") + private String text; +} \ No newline at end of file diff --git a/xfg-dev-tech-trigger/src/main/java/cn/bugstack/xfg/dev/tech/job/model/TopicsItem.java b/xfg-dev-tech-trigger/src/main/java/cn/bugstack/xfg/dev/tech/job/model/TopicsItem.java new file mode 100644 index 0000000..993d532 --- /dev/null +++ b/xfg-dev-tech-trigger/src/main/java/cn/bugstack/xfg/dev/tech/job/model/TopicsItem.java @@ -0,0 +1,51 @@ +package cn.bugstack.xfg.dev.tech.job.model; + +import java.util.List; +import com.google.gson.annotations.SerializedName; +import lombok.Data; + +@Data +public class TopicsItem{ + + @SerializedName("reading_count") + private int readingCount; + + @SerializedName("create_time") + private String createTime; + + @SerializedName("user_specific") + private UserSpecific userSpecific; + + @SerializedName("rewards_count") + private int rewardsCount; + + @SerializedName("show_comments") + private List showComments; + + @SerializedName("type") + private String type; + + @SerializedName("digested") + private boolean digested; + + @SerializedName("likes_count") + private int likesCount; + + @SerializedName("comments_count") + private int commentsCount; + + @SerializedName("sticky") + private boolean sticky; + + @SerializedName("talk") + private Talk talk; + + @SerializedName("topic_id") + private long topicId; + + @SerializedName("readers_count") + private int readersCount; + + @SerializedName("group") + private Group group; +} \ No newline at end of file diff --git a/xfg-dev-tech-trigger/src/main/java/cn/bugstack/xfg/dev/tech/job/model/UserSpecific.java b/xfg-dev-tech-trigger/src/main/java/cn/bugstack/xfg/dev/tech/job/model/UserSpecific.java new file mode 100644 index 0000000..224575d --- /dev/null +++ b/xfg-dev-tech-trigger/src/main/java/cn/bugstack/xfg/dev/tech/job/model/UserSpecific.java @@ -0,0 +1,14 @@ +package cn.bugstack.xfg.dev.tech.job.model; + +import com.google.gson.annotations.SerializedName; +import lombok.Data; + +@Data +public class UserSpecific{ + + @SerializedName("subscribed") + private boolean subscribed; + + @SerializedName("liked") + private boolean liked; +} \ No newline at end of file -- GitLab