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 ModifiedTimeFieldProperty implements Serializable {
|
|
private static final long serialVersionUID = 1813585124466186490L;
|
|
/**
|
* 设置日期格式: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;
|
|
public static ModifiedTimeFieldProperty fromJson(String json) {
|
return WxCpGsonBuilder.create().fromJson(json, ModifiedTimeFieldProperty.class);
|
}
|
|
public String toJson() {
|
return WxCpGsonBuilder.create().toJson(this);
|
}
|
}
|