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

import com.alibaba.fastjson.JSON;
import lombok.extern.slf4j.Slf4j;

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

/**
 * @Description
 * @Author wulifeng
 * @Date: 2022/3/7
 */
@Slf4j
public class GuoAnConstants {
    public static final String FUND_INFO_API = "queryService.fundinfo"; //产品信息查询
    public static final String CUST_INFO_API = "queryService.custinfo"; //投资者信息查询
    public static final String SHARE_HOLDER_INFO_API = "queryService.shareholderinfo"; //份额持有人查询
    public static final String CONFIRM_INFO_API = "queryService.confirminfo"; //3.2.4交易确认查询
    public static final String CONFIRM_DETAIL_API = "queryService.confirmdetail"; //交易确认明细查询
    public static final String QUERY_BONUS_INFO_API = "queryService.queryBonusInfo"; //3.2.6分红数据查询
    public static final String ACCOUNT_BAL_API = "queryService.accountbal"; //银行账户余额本地查询
    public static final String ACCOUNT_BAL_ONLINE_API = "queryService.accountBalOnline"; //3.2.8银行账户余额实时联机查询
    public static final String FUND_NET_VAL_API = "queryService.fundnetval"; //3.2.9净值查询
    public static final String FUND_PROFIT_API = "queryService.fundprofit"; //业绩报酬数据查询
    public static final String ACCOUNT_JOURNAL = "queryService.accountjournal"; //3.2.3 银行流水本地查询
    public static final String ACCOUNT_JOURNAL_ONLINE = "queryService.accountJournalOnline"; //3.2.3 银行流水本地查询
    public static final String SHARE_CHANGE_INFO = "queryService.shareChangeInfo"; //份额变动流水查询
    public static final String DEALING_DAY = "queryService.dealingDay"; //份额变动流水查询

    public static final String SHARE_HOLDER_DETAIL_API = "queryService.shareholderdetail"; //份额明细查询
    public static final String FUND_FEE_DATA_INFO_API = "queryService.queryFaFeeInfo";//基金费用查询
    public static final String FUND_OPEN_INFO_API = "queryService.dealingDay";//基金开放日查询

    public static final String TEST_APPKEY = "ngmaSPGtvrDy1JW9EEM8";
    public static final String TEST_URI = "https://pbtest.gtja.com/fsdpl-api/api/";
    public static final String TEST_APPSECRET = "xGqqc0OZhS2bk7fnYHrSaTH5rzu5pU";
    public static final String TEST_MANAGERID = "00000001";

    public static final String TY_APPKEY = "sZ6yaF4N84DbbvmFlcsP";
    public static final String TY_URI = "https://pb.gtja.com/pbapi/api/";
    public static final String TY_APPSECRET = "WPtkMl7kCuoQzuslR6Z9WfXZDHlmIM";
    public static final String TY_MANAGERID = "A10010042";

    public static final String YC_APPKEY = "cqhV010MaLfLD7WzkbdN";
    public static final String YC_URI = "https://pb.gtja.com/pbapi/api/";
    public static final String YC_APPSECRET = "k0EAt5KUEudAY1BLXm8ocsd3XE3QJo";
    public static final String YC_MANAGERID = "A10011434";

//    public String appkey;
//    public String url;
//    public String appSecret;
//    public String managerId;
//
//    public void setPropertyFromJsonGTJA(String mapJson) {
//        Map map = JSON.parseObject(mapJson, Map.class);
//        log.info("setPropertyFromJsonGTJA设置托管信息为{}",JSON.toJSONString(map));
//
//        appkey =(String) map.get("appkey");
//        url =(String) map.get("url");
//        appSecret =(String) map.get("appSecret");
//        managerId =(String) map.get("managerId");
//    }

    public static void main(String[] args) {
        HashMap<String,String> map = new HashMap<>();
//        // 测试
//        map.put("appkey","ngmaSPGtvrDy1JW9EEM8");
//        map.put("url","https://pbtest.gtja.com/fsdpl-api/api/");
//        map.put("appSecret","xGqqc0OZhS2bk7fnYHrSaTH5rzu5pU");
//        map.put("managerId","00000001");

//        // 通怡
//        map.put("appkey","sZ6yaF4N84DbbvmFlcsP");
//        map.put("url","https://pb.gtja.com/pbapi/api/");
//        map.put("appSecret","WPtkMl7kCuoQzuslR6Z9WfXZDHlmIM");
//        map.put("managerId","A10010042");

        //一村
        map.put("appkey","cqhV010MaLfLD7WzkbdN");
        map.put("url","https://pb.gtja.com/pbapi/api/");
        map.put("appSecret","k0EAt5KUEudAY1BLXm8ocsd3XE3QJo");
        map.put("managerId","A10010042");

        System.out.println(JSON.toJSONString(map));
    }

}
