package com.friday.custody.service.trustService.ebscn.common;

import lombok.extern.slf4j.Slf4j;

import java.util.HashMap;
import java.util.Map;


@Slf4j
public class EbscnConstants {

    /**
     * 服务器地址
     */

    public static final String SERVER_DEV_URL = "https://zctgwbcs.ebscn.com:17443/ebscn/openapi";//测试地址
    public static final String SERVER_PRD_URL = "https://zctg.ebscn.com/ebscn/openapi";//生产地址

    //1.查询产品信息（fund_info） 及版本号
    public static final String FUND_INFO_API = "P2000094";
    public static final String FUND_INFO_API_VERSION = "EBS-BIZ-V1.0";

    //2.查询份额持有 (investor_info+cust_share_info) 及版本号
    public static final String CUST_SHARE_AND_INVESTOR_INFO_API = "P2000007";
    public static final String CUST_SHARE_AND_INVESTOR_INFO_API_VERSION = "EBS-BIZ-V1.0";

    //3.查询产品净值（fund_net_value_info）
    public static final String FUND_NET_VALUE_INFO_API = "P2000061";
    public static final String FUND_NET_VALUE_INFO_API_VERSION = "EBS-BIZ-V1.0";

    //4.查询交易明细 (investor_bank_info+fund_trade_info)
    public static final String FUND_TRADE_INFO_AND_INVESTOR_BANK_API = "P2000008";
    public static final String FUND_TRADE_INFO_AND_INVESTOR_BANK_API_VERSION = "EBS-BIZ-V1.0";

    //5.查询业绩提成 (fund_profit_info)
    public static final String FUND_PROFIT_INFO_API = "P2000060";
    public static final String FUND_PROFIT_INFO_API_VERSION = "EBS-BIZ-V1.0";

    //6.查询基金分红 (fund_bonus_info)
    public static final String FUND_BONUS_INFO_API = "P2000009";
    public static final String FUND_BONUS_INFO_API_VERSION = "EBS-BIZ-V1.0";

    //7.查询托管户余额 (account_info+TGAccount_balance_info)
    public static final String TGACCOUNT_BALANCE_AND_ACCOUNT_API = "P3900021";
    public static final String TGACCOUNT_BALANCE_AND_ACCOUNT_API_VERSION = "EBS-BIZ-V1.0";

    //8.查询托管户流水 (TGAccount_seq_info)
    public static final String TGACCOUNT_SEQ_INFO_API = "P3900022";
    public static final String TGACCOUNT_SEQ_INFO_API_VERSION = "EBS-BIZ-V1.0";

    //9.查询募集户余额 (account_info+MJAccount_balance_info)
    public static final String MJACCOUNT_BALANCE_AND_ACCOUNT_INFO_API = "P2000279";
    public static final String MJACCOUNT_BALANCE_AND_ACCOUNT_INFO_API_VERSION = "EBS-BIZ-V1.0";

    //10.查询募集户流水 (MJAccount_seq_info)
    public static final String MJACCOUNT_SEQ_INFO_API = "P2000051";
    public static final String MJACCOUNT_SEQ_INFO_API_VERSION = "EBS-BIZ-V1.0";

    /**
     * 证书默认后缀
     */
    public static final String CERT_SUFFIX = ".ebscn.cer";

    /**
     * 令牌无效状态码
     */
    public static final String AUTH_TOKEN_INVALID_CODE = "-3";
    /**
     * 成功状态码
     */
    public static final String SUCCESS_CODE = "1";

    /**
     * 令牌无效状态码
     */
    public static final Map<String, String> STATUS;

    static {
        STATUS = new HashMap<>();
    }

    /**
     * 默认用户名
     */
    public static final String DEFAULT_USER_NAME = "tongyi1";
    public static final String DEFAULT_PASSWORD = "tongyiceshi";

}
