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 DateTimeFieldProperty implements Serializable {
|
private static final long serialVersionUID = 5830572304284001526L;
|
|
/**
|
* 设置日期格式:yyyy"年"m"月"d"日"、yyyy-mm-dd、yyyy/m/d、m"月"d"日"、yyyy"年"m"月"d"日" dddd、
|
* "yyyy"年"m"月"d"日" hh:mm、yyyy-mm-dd hh:mm、m/d/yyyy、d/m/yyyy
|
*/
|
@SerializedName("format")
|
private String format;
|
|
/**
|
* 新建记录时,是否自动填充时间
|
*/
|
@SerializedName("auto_fill")
|
private Boolean autoFill;
|
|
public static DateTimeFieldProperty fromJson(String json) {
|
return WxCpGsonBuilder.create().fromJson(json, DateTimeFieldProperty.class);
|
}
|
|
public String toJson() {
|
return WxCpGsonBuilder.create().toJson(this);
|
}
|
}
|