From eeb87693d4edad80b99e3e7daee5021cdd20339c Mon Sep 17 00:00:00 2001 From: wxxwjef <505322415@qq.com> Date: Thu, 23 Nov 2023 18:16:39 +0800 Subject: [PATCH] =?UTF-8?q?=E7=94=A8=E6=88=B7=E7=89=A9=E5=93=81=E5=AF=BC?= =?UTF-8?q?=E5=87=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/wx/application/gorse4j/GorsePage.java | 38 +++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 api/src/main/java/com/wx/application/gorse4j/GorsePage.java diff --git a/api/src/main/java/com/wx/application/gorse4j/GorsePage.java b/api/src/main/java/com/wx/application/gorse4j/GorsePage.java new file mode 100644 index 0000000..9089610 --- /dev/null +++ b/api/src/main/java/com/wx/application/gorse4j/GorsePage.java @@ -0,0 +1,38 @@ +package com.wx.application.gorse4j; + +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.List; + +/** + * 查询的分页结果 + */ +@JsonIgnoreProperties(ignoreUnknown = true) +public class GorsePage { + + /** + * 下一页的查询码,查询首页可缺省 + */ + private String cursor; + + private List users; + + private List items; + + @JsonProperty("Cursor") + public String getCursor() { + return cursor; + } + + @JsonProperty("Users") + public List getUsers() { + return users; + } + + @JsonProperty("Items") + public List getItems() { + return items; + } + +} \ No newline at end of file