BAOLH
2026-11-10 4d730af0447c686133130d0116a0fa3dd82c2dca
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
package me.zhengjie.modules.weixin.cp.bean.smartsheet.view;
 
import com.google.gson.annotations.SerializedName;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;
import me.chanjar.weixin.cp.util.json.WxCpGsonBuilder;
 
import java.io.Serializable;
import java.util.List;
 
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@Accessors(chain = true)
public class WxCpViewQueryRequest implements Serializable {
 
    private static final long serialVersionUID = 8359738740216474310L;
 
    /**
     * 文档的docid
     */
    @SerializedName("docid")
    private String docId;
 
    /**
     * Smartsheet 子表ID
     */
    @SerializedName("sheet_id")
    private String sheetId;
 
    /**
     * 需要查询的视图 ID 数组
     */
    @SerializedName("view_ids")
    private List<String> viewIds;
 
    /**
     * 偏移量,初始值为 0
     */
    @SerializedName("offset")
    private Integer offset;
 
    /**
     * 分页大小 , 每页返回多少条数据;当不填写该参数或将该参数设置为 0 时,如果总数大于 1000,一次性返回 1000 个视图,当总数小于 1000 时,返回全部视图;limit 最大值为 1000
     */
    @SerializedName("limit")
    private Integer limit;
 
    public static WxCpViewQueryRequest fromJson(String json) {
        return WxCpGsonBuilder.create().fromJson(json, WxCpViewQueryRequest.class);
    }
 
    public String toJson() {
        return WxCpGsonBuilder.create().toJson(this);
    }
}