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
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 FieldOption implements Serializable {
 
    private static final long serialVersionUID = 4677240639752573746L;
 
    /**
     * 选项 ID
     */
    @SerializedName("id")
    private String id;
 
    /**
     * 要填写的选项内容
     */
    @SerializedName("text")
    private String text;
 
    /**
     * 选项颜色:1-浅红1;2-浅橙1;3-浅天蓝1;4-浅绿1;5-浅紫1;6-浅粉红1;7-浅灰1;8-白;9-灰;
     * 10-浅蓝1;11-浅蓝2;12-蓝;13-浅天蓝2;14-天蓝;15-浅绿2;16-绿;17-浅红2;18-红;
     * 19-浅橙2;20-橙;21-浅黄1;22-浅黄2;23-黄;24-浅紫2;25-紫;26-浅粉红2;27-粉红;
     */
    @SerializedName("style")
    private Integer style;
 
    public static FieldOption fromJson(String json) {
        return WxCpGsonBuilder.create().fromJson(json, FieldOption.class);
    }
 
    public String toJson() {
        return WxCpGsonBuilder.create().toJson(this);
    }
}