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);
|
}
|
}
|