package com.thinkgem.jeesite.common.constant;

import java.text.SimpleDateFormat;

/**
 * 常量数据
 */
public class ComCode {
    /**
     * 加密串
     */
    public static final String signCode = "Y0UKA@2018";

    /**
     * juhezhong相关参数
     */
    public static final String HOST = "http://pay.hezhongpay.com"; // 请求地址
    public static final String MERCHANT_ID = "100532502195879"; // 商户号
    public static final String MERCHANT_KEY = "670993bf-dd22-4464-9d81-69595d36b794"; // 商户key
    public static final String MERCHANT_SECRET = "289ada73-27db-49e0-b2ad-3ae1613a665a"; // 商户sescet
    public static final String MERCHANT_REG_URL = "/api/quick/merchant/apply"; // 注册商户
    public static final String ORDER_QUERY_URL = "/order/query"; // 查询订单
    public static final String SETTLE_UPDATE_URL = "/api/quick/settle/card/update"; // 修改结算卡信息
    public static final String MERCHANT_INFO_URL = "/api/quick/merchant/info"; // 查询商户费率
    public static final String RATE_UPDATE_URL = "/api/quick/merchant/update/rate"; // 修改商户费率
    public static final String QUICK_PAY_URL = "/api/quick/pre/pay"; // 快捷支付

    public static final String EXTRA_RATE = "200"; // 附加手续费（单位：分）
    /**
     * 时间相关参数
     */
    public static final long mills = 1000;
    public static final long seconds = 60;
    public static final long minutes = 60;
    public static final long hours = 24;
    public static final SimpleDateFormat YYYYMMDD_HHMMSS = new SimpleDateFormat("yyyy-MM-dd hh:mm:ss");

    /**
     * 系统公共
     */
    public static final String STATUS_CODE_2000 = "2000";
    public static final String STATUS_CODE_2000_DESC = "成功";
    public static final String STATUS_CODE_9999 = "9999";
    public static final String STATUS_CODE_9999_DESC = "验证SIGN失败";
    public static final String STATUS_CODE_9998 = "9998";
    public static final String STATUS_CODE_9998_DESC = "通用异常";

    /**
     * 验证码
     */
    public static final String STATUS_CODE_3001 = "3001";
    public static final String STATUS_CODE_3001_DESC = "验证码未输入功能代码或手机号";

    /**
     * 用户相关
     */
    public static final String STATUS_CODE_4001 = "4001";
    public static final String STATUS_CODE_4001_DESC = "必传信息为空";
    public static final String STATUS_CODE_4002 = "4002";
    public static final String STATUS_CODE_4002_DESC = "用户名或密码错误";
    public static final String STATUS_CODE_4003 = "4003";
    public static final String STATUS_CODE_4003_DESC = "用户名或验证码错误";
    public static final String STATUS_CODE_4004 = "4004";
    public static final String STATUS_CODE_4004_DESC = "该手机号尚未注册，请注册后登录";
    public static final String STATUS_CODE_4005 = "4005";
    public static final String STATUS_CODE_4005_DESC = "修改密码失败";
    public static final String STATUS_CODE_4006 = "4006";
    public static final String STATUS_CODE_4006_DESC = "系统中没有该推荐用户";
    public static final String STATUS_CODE_4007 = "4007";
    public static final String STATUS_CODE_4007_DESC = "注册手机号已存在";
    public static final String STATUS_CODE_4008 = "4008";
    public static final String STATUS_CODE_4008_DESC = "注册手机号与推荐手机号重复";
    public static final String STATUS_CODE_4009 = "4009";
    public static final String STATUS_CODE_4009_DESC = "验证码已过期";
    public static final String STATUS_CODE_4010 = "4010";
    public static final String STATUS_CODE_4010_DESC = "验证码场景错误";

    /**
     * 卡片相关
     */
    public static final String STATUS_CODE_5001 = "5001";
    public static final String STATUS_CODE_5001_DESC = "卡片注册异常";
}
