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
package me.zhengjie.modules.weixin.cp.bean.smartsheet.field;
 
import com.google.gson.annotations.SerializedName;
import lombok.Data;
import me.chanjar.weixin.cp.util.json.WxCpGsonBuilder;
 
import java.io.Serializable;
 
@Data
public class ReferenceFieldProperty implements Serializable {
 
    private static final long serialVersionUID = -8249394016227815187L;
 
    /**
     * 关联的子表id,为空时,表示关联本子表
     */
    @SerializedName("sub_id")
    private String subId;
 
    /**
     * 关联的字段id
     */
    @SerializedName("filed_id")
    private String filedId;
 
    /**
     * 是否允许多选
     */
    @SerializedName("is_multiple")
    private Boolean isMultiple;
 
    /**
     * 视图id
     */
    @SerializedName("view_id")
    private String viewId;
 
    public static ReferenceFieldProperty fromJson(String json) {
        return WxCpGsonBuilder.create().fromJson(json, ReferenceFieldProperty.class);
    }
 
    public String toJson() {
        return WxCpGsonBuilder.create().toJson(this);
    }
}