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
package me.zhengjie.modules.weixin.cp.bean.smartsheet.record;
 
import com.google.gson.annotations.SerializedName;
import lombok.Data;
import me.chanjar.weixin.cp.util.json.WxCpGsonBuilder;
 
import java.io.Serializable;
 
@Data
public class RecordCellTextValue implements Serializable {
 
    private static final long serialVersionUID = 8567229542233973559L;
 
    /**
     * 内容为文本(值为text)、内容为链接(值为url)
     */
    @SerializedName("type")
    private String type;
 
    /**
     * 单元格内容
     */
    @SerializedName("text")
    private String text;
 
    /**
     * 当type时url时,表示链接跳转url
     */
    @SerializedName("link")
    private String link;
 
    public static RecordCellTextValue fromJson(String json) {
        return WxCpGsonBuilder.create().fromJson(json, RecordCellTextValue.class);
    }
 
    public String toJson() {
        return WxCpGsonBuilder.create().toJson(this);
    }
}