package com.njcn.gather.source.pojo.po;

import com.alibaba.fastjson.annotation.JSONField;
import lombok.Data;

import java.util.List;

/**
 * @author caozehui
 * @data 2024-12-09
 */
@Data
public class SourceInitialize {

    @JSONField(ordinal = 1)
    private String sourceId;

    @JSONField(ordinal = 2)
    private String sourceType;

    @JSONField(ordinal = 4)
    private String sourceDesc;

    @JSONField(ordinal = 3)
    private List<Initialize> sourceParamList;

    @Data
    public static class Initialize {

        @JSONField(serialize = false)
        private String id;

        @JSONField(serialize = false)
        private String pId;

        @JSONField(ordinal = 1)
        private String type;

        @JSONField(ordinal = 2)
        private String desc;


        @JSONField(ordinal =4)
        private String value;

        @JSONField(serialize = false)
        private Integer sort;

        @JSONField(ordinal = 3)
        private List<Initialize> children;

    }

}
