package cn.ey.biz.module.system.api.code.dto;

import lombok.Data;

import java.util.List;

@Data
public class CodeProjectDTO {

    // 项目名称(For Assurance)
    private Assurance assurance;

    // 项目名称(For FSO Consulting)
    private Consulting consulting;

    private String explanation;

    private String updater;

    private String date;

    @Data
    public static class Assurance {
        private List<String> countries;
        private String region;
        private String sl;
        private String subSl;
        private List<Code> codes;
    }

    @Data
    public static class Consulting {
        private List<String> countries;
        private String region;
        private String sl;
        private List<String> subSl;
        private List<Prefix> prefix;
    }

    @Data
    public static class Code {
        private String code;

        private String prefix;
    }

    @Data
    public static class Prefix {
        private List<Item> operations;
    }

    @Data
    public static class Item {
        private String name;

        private String code;

        private String assignment;

        // 用于保存前缀第二位，与第一位保持关联。 三位，四位此处为空
        private List<Item> relation;
    }
}
