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

import lombok.Data;

import java.util.List;

@Data
public class CodeBlockingLevelDTO {

    private List<Rule> rules;

    private String explanation;

    private String updater;

    private String date;

    @Data
    public static class Rule {

        private String country;

        private String sl;

        private String region;

        private List<Condition> condition;
    }

    @Data
    public static class Condition {

        private String optionCode;

        private Integer logic;

        private FormOption formOption;

        private List<Lgbu> lgbuList;
    }

    @Data
    public static class FormOption {
        private boolean emptyBtn;
        private boolean submitBtn;
        private boolean menuBtn;
        private Integer labelWidth;
        private List<Column> column;
    }

    @Data
    public static class Column {
        private String label;
        private String prop;
        private Integer span;
    }

    @Data
    public static class Lgbu {
        private List<List<String>> lgbu;
    }
}
