package com.quantgroup.asset.distribution.service.newrule.pojo.funds;

import cn.quantgroup.motan.bean.UserAssociationBean;
import com.alibaba.fastjson.JSON;
import com.quantgroup.asset.distribution.service.newrule.pojo.enums.AreaEnum;
import com.quantgroup.asset.distribution.service.newrule.pojo.enums.IdCardExpireEnum;
import com.quantgroup.asset.distribution.service.newrule.third.AuditResponce;
import lombok.Data;


/**
 * @author shihuajun
 * @date 2021/8/27 11:23
 * @ describing 规则校验的入参
 */
@Data
public class RuleParam {
    private UserAssociationBean userInfo;
    private AreaEnum areaNum;
    private String area;
    private String uuid;
    private IdCardExpireEnum cardExpireEnum;
    private AuditResponce auditResponce;

    /**
     * @author shihuajun
     * @date 2021/9/2 17:36
     * @ describing
     */
    @Data
    public static class AreaRuleConcrete {
        // 手机号区域限制
        private String telAreaNameList;
        // 居住地
        private String residenceList;
        // 籍贯
        private String nativeList;
    }


    public static void main(String[] args) {
        AreaRuleConcrete concrete = new AreaRuleConcrete();
        concrete.setNativeList("[110119,100000]");
        concrete.setTelAreaNameList("[100000]");
        concrete.setResidenceList("[100000]");
        System.out.println(JSON.toJSONString(concrete));
    }
}
