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
61
62
63
64
package me.zhengjie.modules.weixin.cp.bean.smartsheet.view;
 
import com.google.gson.annotations.SerializedName;
import lombok.Data;
import me.chanjar.weixin.cp.util.json.WxCpGsonBuilder;
 
import java.io.Serializable;
import java.util.Map;
 
@Data
public class ViewProperty implements Serializable {
 
    private static final long serialVersionUID = 1618058468928082752L;
 
    /**
     * 记录变更后自动重新排序
     */
    @SerializedName("auto_sort")
    private Boolean autoSort;
 
    /**
     * 排序设置
     */
    @SerializedName("sort_spec")
    private ViewSortSpec sortSpec;
 
    /**
     * 分组设置
     */
    @SerializedName("filter_spec")
    private ViewFilterSpec filterSpec;
 
    /**
     * 过滤设置
     */
    @SerializedName("group_spec")
    private ViewGroupSpec groupSpec;
 
    /**
     * 是否使用数据统计
     */
    @SerializedName("is_field_stat_enabled")
    private Boolean isFieldStatEnabled;
 
    /**
     * 类似map。 key为字段ID, value为布尔值表示是否显示
     */
    @SerializedName("field_visibility")
    private Map<String, Boolean> fieldVisibility;
 
    /**
     * 冻结列数量,从首列开始
     */
    @SerializedName("frozen_field_count")
    private Integer frozenFieldCount;
 
    public static ViewProperty fromJson(String json) {
        return WxCpGsonBuilder.create().fromJson(json, ViewProperty.class);
    }
 
    public String toJson() {
        return WxCpGsonBuilder.create().toJson(this);
    }
}