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
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;
import java.util.List;
 
@Data
public class AutoNumberFieldProperty implements Serializable {
 
    private static final long serialVersionUID = 8264989322286868003L;
 
    /**
     * 输入类型:NUMBER_TYPE_INCR-自增数字类型;NUMBER_TYPE_CUSTOM-自定义类型;
     */
    @SerializedName("type")
    private String type;
 
    /**
     * 自定义规则
     */
    @SerializedName("rules")
    private List<FieldNumberRule> rules;
 
    /**
     * 是否应用于已有编号
     */
    @SerializedName("reformat_existing_record")
    private Boolean reformatExistingRecord;
 
    public static AutoNumberFieldProperty fromJson(String json) {
        return WxCpGsonBuilder.create().fromJson(json, AutoNumberFieldProperty.class);
    }
 
    public String toJson() {
        return WxCpGsonBuilder.create().toJson(this);
    }
}