package me.zhengjie.modules.weixin.cp.bean.smartsheet.view; import com.google.gson.annotations.SerializedName; import lombok.Data; import me.chanjar.weixin.cp.bean.WxCpBaseResp; import me.chanjar.weixin.cp.util.json.WxCpGsonBuilder; import java.io.Serializable; import java.util.List; @Data public class WxCpViewInfo extends WxCpBaseResp implements Serializable { private static final long serialVersionUID = 2784209688695630244L; /** * 符合筛选条件的视图总数 */ @SerializedName("total") private Integer total; /** * 是否还有更多项 */ @SerializedName("has_more") private Boolean hasMore; /** * 下次下一个搜索结果的偏移量 */ @SerializedName("next") private Integer next; /** * 视图数据 */ @SerializedName("views") private List views; public static WxCpViewInfo fromJson(String json) { return WxCpGsonBuilder.create().fromJson(json, WxCpViewInfo.class); } public String toJson() { return WxCpGsonBuilder.create().toJson(this); } }