package com.trade.service.contract.util.fadada;

import javax.annotation.PostConstruct;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

/**
 * 电子签章常量类(从贸理通项目搬运而来)
 *
 * @author fengxuan
 * @email xuan.feng@changan-inkasso.com
 * @date 2021/7/5 15:35 2022/8/17 大仙修改为读取配置文件
 */
//@Component
public class FaDaDaConstant {

    /**
     * 下载人脸识别照片
     */
    @Value("${fdd.downloadFaceUrl}")
    public String DOWNLOAD_FACE_FILE_YML;
    /**
     * 客户合同链接
     */
    @Value("${fdd.contractUrl}")
    public String USER_CONTRACT_URL_YML;
    /**
     * 法大大长银资管公司客户编号
     */
    @Value("${fdd.caykCustomId}")
    public String CUSTOMER_ID_YML;
    /**
     * 账号注册URL
     */
    @Value("${fdd.registerUrl}")
    public String REGISTER_ACCOUNT_URL_YML;
    /**
     * 认证地址URL
     */
    @Value("${fdd.authUrl}")
    public String AUTH_URL_YML;
    /**
     * 认证地址URL
     */
    @Value("${fdd.authUrlV3}")
    public String AUTH_URL_V3_YML;
    /**
     * 认证地址URL
     */
    @Value("${fdd.authUrlV3PersonalFaceRecognition}")
    public String AUTH_URL_V3_FACE_RECOGNITION_YML;
    /**
     * 合同上传URL
     */
    @Value("${fdd.uploadContractUrl}")
    public String UPLOAD_CONTRACT_URL_YML;
    /**
     * 批量签署URL
     */
    @Value("${fdd.batchSignUrl}")
    public String SIGN_URL_YML;
    /**
     * 批量签署URL
     */
    @Value("${fdd.batchSignUrlSearchLocation}")
    public String SEARCH_LOCATION_SIGN_URL_YML;
    /**
     * 自动签署URL
     */
    @Value("${fdd.authSignUrl}")
    public String AUTO_SIGN_URL_YML;
    /**
     * 合同下载URL
     */
    @Value("${fdd.downloadContractUrl}")
    public String DOWNLOAD_CONTRACT_URL_YML;
    /**
     * 合同归档URL
     */
    @Value("${fdd.filedContractUrl}")
    public String FILED_CONTRACT_URL_YML;
    /**
     * 授权自动签URL
     */
    @Value("${fdd.beforeAutoSignUrl}")
    public String BEFORE_AUTO_SIGN_URL_YML;
    /**
     * 生成短连接URL
     */
    @Value("${fdd.shortUrl}")
    public String SHORT_URL_YML;
    /**
     * 电子文件签署线上出证URL
     */
    @Value("${fdd.reportUrl}")
    public String COMPLIANCE_CONTRACT_REPORT_URL_YML;
    /**
     * 获取实名认证状态
     */
    @Value("${fdd.authInfoUrl}")
    public String AUTH_INFO_YML;
    /**
     * 获取实名认证状态
     */
    @Value("${fdd.getAuthInfoDetail}")
    public String AUTH_INFO_DETAIL_YML;
    /**
     * 获取签署状态
     */
    @Value("${fdd.signInfoUrl}")
    public String SIGN_INFO_YML;
    /**
     * 获取签署状态
     */
    @Value("${fdd.removeAuthInfoUrl}")
    public String REMOVE_AUTH_INFO_YML;
    /**
     * 获取合同预览地址
     */
    @Value("${fdd.viewContractUrl}")
    public String VIEW_CONTRACT_URL_YML;
    /**
     * 客户合同链接
     */
    public static String USER_CONTRACT_URL;
    /**
     * 法大大长银资管公司客户编号
     */
    public static String CUSTOMER_ID;
    /**
     * 账号注册URL
     */
    public static String REGISTER_ACCOUNT_URL;
    /**
     * 认证地址URL
     */
    public static String AUTH_URL;
    /**
     * 认证地址URL
     */
    public static String AUTH_URL_V3;
    /**
     * 认证地址URL
     */
    public static String AUTH_URL_V3_FACE_RECOGNITION;
    /**
     * 合同上传URL
     */
    public static String UPLOAD_CONTRACT_URL;
    /**
     * 批量签署URL
     */
    public static String SIGN_URL;
    /**
     * 批量签署URL
     */
    public static String SEARCH_LOCATION_SIGN_URL;
    /**
     * 自动签署URL
     */
    public static String AUTO_SIGN_URL;
    /**
     * 合同下载URL
     */
    public static String DOWNLOAD_CONTRACT_URL;
    /**
     * 合同归档URL
     */
    public static String FILED_CONTRACT_URL;
    /**
     * 授权自动签URL
     */
    public static String BEFORE_AUTO_SIGN_URL;
    /**
     * 生成短连接URL
     */
    public static String SHORT_URL;
    /**
     * 电子文件签署线上出证URL
     */
    public static String COMPLIANCE_CONTRACT_REPORT_URL;
    /**
     * 获取实名认证状态
     */
    public static String AUTH_INFO;
    /**
     * 获取实名认证信息
     */
    public static String AUTH_INFO_DETAIL;
    /**
     * 获取签署状态
     */
    public static String SIGN_INFO;
    /**
     * 获取签署状态
     */
    public static String REMOVE_AUTH_INFO;
    /**
     * 下载人脸识别照片地址
     */
    public static String DOWNLOAD_FACE_FILE;
    public static String VIEW_CONTRACT_URL;

    @PostConstruct
    public void initData() {
        USER_CONTRACT_URL = this.USER_CONTRACT_URL_YML;
        CUSTOMER_ID = this.CUSTOMER_ID_YML;
        REGISTER_ACCOUNT_URL = this.REGISTER_ACCOUNT_URL_YML;
        DOWNLOAD_FACE_FILE = this.DOWNLOAD_FACE_FILE_YML;
        AUTH_URL = this.AUTH_URL_YML;
        AUTH_URL_V3 = this.AUTH_URL_V3_YML;
        AUTH_URL_V3_FACE_RECOGNITION = this.AUTH_URL_V3_FACE_RECOGNITION_YML;
        UPLOAD_CONTRACT_URL = this.UPLOAD_CONTRACT_URL_YML;
        SIGN_URL = this.SIGN_URL_YML;
        SEARCH_LOCATION_SIGN_URL = this.SEARCH_LOCATION_SIGN_URL_YML;
        AUTO_SIGN_URL = this.AUTO_SIGN_URL_YML;
        DOWNLOAD_CONTRACT_URL = this.DOWNLOAD_CONTRACT_URL_YML;
        FILED_CONTRACT_URL = this.FILED_CONTRACT_URL_YML;
        BEFORE_AUTO_SIGN_URL = this.BEFORE_AUTO_SIGN_URL_YML;
        SHORT_URL = this.SHORT_URL_YML;
        COMPLIANCE_CONTRACT_REPORT_URL = this.COMPLIANCE_CONTRACT_REPORT_URL_YML;
        AUTH_INFO = this.AUTH_INFO_YML;
        AUTH_INFO_DETAIL = this.AUTH_INFO_DETAIL_YML;
        SIGN_INFO = this.SIGN_INFO_YML;
        REMOVE_AUTH_INFO = this.REMOVE_AUTH_INFO_YML;
        VIEW_CONTRACT_URL = this.VIEW_CONTRACT_URL_YML;
    }
}
