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

import lombok.Data;

import java.util.List;

@Data
public class CodeOtherDTO {

    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 Condition condition;

        // 要求 （当前固定四条）
        private List<Condition> requests;
    }

    @Data
    public static class Condition {
        private Integer relation;

        // 只用请求3为两项，其余为一项
        private List<String> targets;

        private Integer type;

        private List<String> codes;
    }
}
