package com.ruoyi.ibs.app.util;


/**
 * @author 600477
 * @date 2023/10/8
 */
public class Constants {

    public static final String OK = "00000000";
    public static final String FAILURE = "99999999";

//    public static final String AUTHORIZATION_HEADER = "X-Cloud-Token";
//
//    public static final String TOKEN_BEARER = "Bearer ";
//
//    public static final String AUTHORITIES_KEY = "auth";
//    /**
//     * @description: Redis缓存自增进件单号
//     */
//    public static final String ORDER_NUM = "dkfz_lh_orderNum";
//
//    /**
//     * @description: Redis缓存报告序号
//     */
//    public static final String REPORT_NUM = "reportNum";
//
//    public static final String TOKEN_SIGN_KEY = "mx+MGX+w9TtUhP8UIE8g9xqFRWflrTWAtytlnN3bbj8Z6p//ITaVCVuBt89I75TKIDpxVlskwQJm436tO0bbsA==";
//
//    /**
//     * oss上传路径
//     */
//    public static final String OSS_UPLOAD_PATH = "loans-improve/";

//    public static final String REPORT_ATTACHMENT_UPLOAD_PATH = OSS_UPLOAD_PATH + "attachment/";
//
//    public static final String OSS_UPLOAD_INCOME_SITUATION = "loans-income-situation/";
//
//    public static final String INCOMING_NOT_EXIST = "该进件单号不存在关联的进件!";
//    public static final String USER_NOT_LOGIN = "用户未登陆!";
//    public static final String USER_PERMISSIONS_DENIED = "当前用户权限不足!";
//    public static final String PROCESS_STATUS_ERROR = "当前流程状态异常!";
//    public static final String INCOMING_STATUS_ERROR = "当前进件状态异常,请检查当前进件状态!";
//    public static final String RESOURCE_NOT_EXIST = "资源不存在";
//    public static final String UPDATE_FAILED = "更新失败!";
//
//    public static final String ADMIN_ROLE = "贷款特色辅助系统-系统管理岗";
//    public static final String APPROVE_ROLE = "贷款特色辅助系统-审批岗";

    /**
     * 微信接口地址，获取access_toekn
     */
    public static final String WEI_XIN_ACCESS_TOKEN = "/cgi-bin/token?grant_type=client_credential&appid=%s&secret=%s";
    /**
     * 微信接口地址,获取jsapi_ticket
     */
    public static final String WEI_XIN_JSAPI_TICKET = "/cgi-bin/ticket/getticket?access_token={1}&type=jsapi";

    /**
     * 微信redis缓存key\dkfz_weixin_toekn改为szzh_weixin_toekn
     * 下同
     */
    public static final String WEI_XIN_ACCESS_TOKEN_KEY = "szzh_weixin_token";
    public static final String WEI_XIN_TICKET_KEY = "szzh_weixin_ticket";

    public static final String QY_WEI_XIN_API_IP = "/cgi-bin/getcallbackip?access_token={1}";
    /**
     * 企业微信接口地址，获取access_toekn
     */
    public static final String QY_WEI_XIN_ACCESS_TOKEN = "/cgi-bin/gettoken?corpid=%s&corpsecret=%s";
    /**
     * 企业微信接口地址,获取jsapi_ticket
     */
    public static final String QY_WEI_XIN_JSAPI_TICKET = "/cgi-bin/get_jsapi_ticket?access_token={1}";
    /**
     * 企业微信接口发送
     */
    public static final String QY_WEI_XIN_MESSAGE_SEND = "/cgi-bin/message/send?access_token={1}";

    /**
     * 企业微信redis缓存key\dkfz_qyweixin_toekn改为szzh_qyweixin_toekn
     * 下同
     */
    public static final String QY_WEI_XIN_ACCESS_TOKEN_KEY = "szzh_qyweixin_token";
    public static final String QY_WEI_XIN_TICKET_KEY = "szzh_qyweixin_ticket";

    /**
     * 企业微信接口地址,获取用户身份
     */
    public static final String QY_WEI_XIN_USER_INFO = "/cgi-bin/auth/getuserinfo?access_token={1}&code={2}";

    /**
     * 企业微信接口地址,获取用户详细信息
     */
    public static final String QY_WEI_XIN_USER_DETAIL = "/cgi-bin/auth/getuserdetail?access_token={1}";

//    /**
//     * 贷款类型临界值 大于该金额是大额 ，小于是小额
//     */
//    public static final Double LOAN_LIMIT = 300000.00;
//
    public static final String LAST_LIMIT = "limit 1";
//
//    /**
//     * 待处理进件提醒配置 redis  key
//     */
//    public static final String ALERT_SETTING_KEY = "dkfz_lh_alert";

    public static final Integer YES = 1;
    public static final Integer NO = 0;

//    public static final String NEW_FOR_OLD = "资金周转（借新还旧）";
}

