package cn.pluss.platform.constants;


import java.math.BigDecimal;

public class Constant {


    public static String INDUSTRY_TYPE = "industry";
    public static String VIDEO_TYPE = "video";
    public static String REQUST_RETIRN_JUMP = "";
    public static String session_user = "session_user";

    public static String MESSAGE_TYPE_BACK = "back";//回执
    public static String MESSAGE_TYPE_MESSAGE = "message";//消息
    public static String MESSAGE_TYPE_PING = "ping";//心跳
    public static String MESSAGE_TYPE_BIND = "bind";//绑定
    public static String MESSAGE_TYPE_RECEIVE = "receive";//暂存消息 收取
    public static String QR_LIMIT_SCENE = "QR_LIMIT_SCENE";//微信创建二维码 永久 int

    public static String RESULT_CODE_SUCCESS = "SUCCESS";//返回结果成功
    public static String RESULT_CODE_FAIL = "FAIL";//返回结果失败
    public static String RESULT_CODE_NONE = "NONE";//收到回执 什么不用做
    public static String RESULT_CODE_OK = "OK";//服务端已接受

    public static String FILE_SAVE_PATH = "/home/trade/talkfile/save";//服务端已接受


    public static long MESSAGE_PING_CLOCK = 30;//心跳时钟 单位是秒


    //支付状态
    public static String PAY_RESULT_CODE_SUCCESS = "1";
    public static String PAY_RESULT_CODE_FAIL = "2";
    public static String PAY_RESULT_CODE_NONE = "0";


    //支付方式
    public static final String PAY_TYPE_WECHAT = "wechatPay";
    public static final String PAY_TYPE_NAME_WECHAT = "微信";
    public static final String PAY_TYPE_ALIPAY = "aliPay";
    public static final String PAY_TYPE_NAME_ALIPAY = "支付宝";

    public static final String PAY_TYPE_YSFPAY = "bank";

    public static final String PAY_TYPE_NAME_YSFPAY = "云闪付";

    //订单号前缀
    public final static String PREFIX_ORDER = "11";
    //日期格式
    public final static String WECHATDATEFORMAT = "yyyyMMddHHmmss";

    public final static String WEIXIN_PAY_UNIFIED_URL = "https://api.mch.weixin.qq.com/pay/unifiedorder";

    public final static String TENCENT_GET_ADDRESS_URL = "https://apis.map.qq.com/ws/geocoder/v1";

    public static String sync_type_dml = "dml";//同步类型
    public static String sync_type_ddl = "ddl";//同步类型
    public static String sync_definition_action_insert = "insert";
    public static String sync_definition_action_update = "update";
    public static String sync_definition_action_delete = "delete";
    public static String sync_definition_action_alter = "alter";
    public static String sync_definition_action_create = "create";
    public static String sync_definition_action_save = "save";


    public static String sync_definition_entity_MerchantProductCategory = "MerchantProductCategory";
    public static String sync_definition_entity_MerchantProductCombo = "MerchantProductCombo";
    public static String sync_definition_entity_MerchantProduct = "MerchantProduct";
    public static String sync_definition_entity_MerchantRole = "MerchantRole";
    public static String sync_definition_entity_MerchantRoleMenu = "MerchantRoleMenu";
    public static String sync_definition_entity_MerchantRoleUser = "MerchantRoleUser";
    public static String sync_definition_entity_MerchantBaseInfo = "MerchantBaseInfo";
    public static String sync_definition_entity_MerchantArea = "MerchantArea";
    public static String sync_definition_entity_MerchantAreaClass = "MerchantAreaClass";

    /**
     * 百度短信模板
     */
    //注册成功
    public static String baidu_template_regist_success = "smsTpl:6c248ad7-921b-417a-869b-e43a78795700";
    //带评阅
    public static String baidu_template_waitfor_read = "smsTpl:e8e3651a-d7b7-4870-a70a-eeefd18f90eb";
    //参赛成
    public static String baidu_template_join_batter = "smsTpl:c7bcd897-6bee-4822-8823-be0e506ff334";
    //中榜
    public static String baidu_template_on_list = "smsTpl:466d88ca-317e-4af1-875d-d1ebe2258304";
    //评阅成功
    public static String baidu_template_read_success = "smsTpl:591e7f62-8a13-49b8-88b9-7dc9f9f6cf8f";
    /**
     * 微信公众号模板
     */
    /**
     * 注册成功
     */
    public static String wechat_template_regist_success = "	UNeuf5QpriPfLVCJvXLhneBq3NVNQi2KKXIhCIjkz8Y";
    /**
     * 待评阅
     */
    public static String wechat_template_waitfor_read = "ncbyBjSDhvF3NQ-25OStNS7lohq_ZI_QLBjpS2Bj7NA";
    /**
     * 活动报名成功
     */
    public static String wechat_template_join_batter = "OKX7nmg0YPAicELVQn3DXMtHWowVS1jc0ZdAjmuYVqs";
    /**
     * 中榜
     */
    public static String wechat_template_on_list = "9TWvGm19CuV1Wk4fuGu-SUfkuKsR9Yi77OXm234w8Tw";
    /**
     * 评阅成功
     */
    public static String wechat_template_read_success = "D6eGbZ8GO36KCXCAe6CwNjG7RRHZxcDDxkOCbeYcIRk";
    /**
     * 登录成功提醒
     */
    public static String wechat_template_login_success = "iZugTWBgboOdqttfmHvgv_NR_QTFjp88GREmu5JUC7c";

    /**
     * 充值成功
     */
    public static String wechat_template_pay_success = "3TzSZHbyRMxG3e5x5KxTCMD_BTP8hJHTGllOnSaCpf0";
    /**
     * 消费成功
     */
    public static String wechat_consume_success = "JFIaSWscb_KKCHN_3cCO4ctlDrbsRs0MywjScpYk0bA";

    /**
     * 图形验证码key
     * @date: 2021/12/20 10:24
     */
    public static final String LOGIN_VALIDATE_CODE = "login_validate_code";

    /**
     * 用户最高等级等级LV10
     * @date: 2022/1/22 15:16
     */
    public static final String USER_MAX_LEVEL_CODE = "LV10";

    /**
     * 最小结算底价
     * @date: 2022/3/9 18:08
     */
    public static final BigDecimal MIX_SETTLE_RATE = BigDecimal.valueOf(21);

    /**
     * 缴费通
     * @date: 2022/3/9 18:08
     */
    public static final BigDecimal JFT_MIX_SETTLE_RATE = BigDecimal.valueOf(28);

    /**
     * 默认收款商户号
     */
    public static final String DEFUALT_CASHIER_MERCHANT = "M80020220111357490";

    /**
     * 默认收款商户属性key
     */
    public static final String SYSTEM_MERCHANT_KEY = "cashier_merchant";

    /**
     * 默认通道
     */
    public static final Integer DEFAULT_CHANNEL = 4;

    /**
     * 支付宝H5支付前缀
     */
    public static final String ALIPAY_H5_PAY_URL_PRIFIX = "alipays://platformapi/startapp?appId=20000067&url=";

    /**
     * 收款通道类型
     */
    public static final String PAYMENT_CHANNEL_TYPE = "payment_channel_type";

    /**
     * 原生通道
     */
    public static final Integer PRIMORDIAL_CHANNEL = 5;

    /**
     * 小程序默认支付路径
     */
    public static final String DEFAULT_APPLET_PATH = "/pages/pay/index";

    /**
     * 小程序默认支付参数名
     */
    public static final String DEFAULT_APPLET_PARAM_NAME_PREFIX = "orderId=";

    /**
     * 积分商城用户同步URL
     */
    public static final String JF_SHOP_USER_SYNC_URL = "http://jf.shouyinbei.com/addons/shopro/syb_merchant/sysnmerchant";

    /**
     * 生活圈会员卡默认过期时间 5（单位分钟）
     */
    public static final Integer DEFAULT_LIFE_MEMBER_CARD_REFRESH_TIME = 5;

    /**
     * 缴费通成本费率
     */
    public static final BigDecimal DEFAULT_JFT_COST_RATE = BigDecimal.valueOf(30);

    /**
     * 缴费通固定提现费率
     */
    public static final BigDecimal DEFAULT_JFT_CASH_RATE = BigDecimal.valueOf(0.001);

    /**
     * 缴费通固定提现费
     */
    public static final BigDecimal DEFAULT_JFT_CASH_FEE = BigDecimal.valueOf(0.01);


    /**
     * 银盛交易回传字段key
     */
    public static final String YS_PAY_ECHO_KEY_NAME = "extra_common_param";

    /**
     * 随行付回传字段key
     */
    public static final String SXF_PAY_ECHO_KEY_NAME = "extend";

    /**
     * 瑞银信交易回传字段
     */
    public static final String RYX_PAY_ECHO_KEY_NAME = "extend1";

    /**
     * 默认秘钥设置
     */
    public static final String DEFAULT_MD5_KEY = "4c8d277b0f274604af68e590cc0b3e6b";

}
