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

import lombok.Data;

import java.util.List;

@Data
public class CodeEpDTO {

    private List<Rule> rules;

    private String explanation;

    @Data
    public static class Rule {

        private String country;

        private String sl;

        private String region;

        private Condition condition;
    }

    @Data
    public static class Condition {

        private Integer rankCode;

        private List<String> rankValue;

        private Integer gpnCode;

        private List<String> gpnValues;

        // userid and name
        private List<User> exceptionEp;

        private List<User> data;
    }

    @Data
    public static class User {

        private String role;

        private List<NewRule> rule;

        private List<Table> table;
    }

    @Data
    public static class NewRule {

        private List<String> mgmtRegion;

        private List<String> region;

        private List<String> serviceLine;

        private List<String> rank;

        private String menuOption;
    }

    @Data
    public static class Table {

        private String name;

        private String gpn;

        private String country;

        private String rank;

        private String mgmtRegion;

        private String smu;

        private String region;
    }

}
