package me.zhengjie.modules.weixin.cp.bean.smartsheet.record; 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 WxCpRecordInfo extends WxCpBaseResp implements Serializable { private static final long serialVersionUID = -2565752448993692740L; /** * 记录总数 */ @SerializedName("total") private Integer total; /** * 是否还有更多项 */ @SerializedName("has_more") private Boolean hasMore; /** * 下次下一个搜索结果的偏移量 */ @SerializedName("next") private Integer next; /** * 由查询记录的具体内容组成的 JSON 数组 */ @SerializedName("records") private List records; public static WxCpRecordInfo fromJson(String json) { return WxCpGsonBuilder.create().fromJson(json, WxCpRecordInfo.class); } public String toJson() { return WxCpGsonBuilder.create().toJson(this); } }