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