package com.xhpc.common.core.constant;

/**
 * 通用常量信息
 *
 * @author ruoyi
 */
public class Constants
{
    /**
     * UTF-8 字符集
     */
    public static final String UTF8 = "UTF-8";

    /**
     * GBK 字符集
     */
    public static final String GBK = "GBK";

    /**
     * http请求
     */
    public static final String HTTP = "http://";

    /**
     * https请求
     */
    public static final String HTTPS = "https://";

    /**
     * 成功标记
     */
    public static final Integer SUCCESS = 200;

    /**
     * 失败标记
     */
    public static final Integer FAIL = 500;

    /**
     * 登录成功
     */
    public static final String LOGIN_SUCCESS = "Success";

    /**
     * 注销
     */
    public static final String LOGOUT = "Logout";

    /**
     * 注册
     */
    public static final String REGISTER = "Register";

    /**
     * 登录失败
     */
    public static final String LOGIN_FAIL = "Error";

    /**
     * 当前记录起始索引
     */
    public static final String PAGE_NUM = "pageNum";

    /**
     * 每页显示记录数
     */
    public static final String PAGE_SIZE = "pageSize";

    /**
     * 排序列
     */
    public static final String ORDER_BY_COLUMN = "orderByColumn";

    /**
     * 排序的方向 "desc" 或者 "asc".
     */
    public static final String IS_ASC = "isAsc";

    /**
     * 验证码 redis key
     */
    public static final String CAPTCHA_CODE_KEY = "captcha_codes:";

    /**
     * 验证码有效期（分钟）
     */
    public static final long CAPTCHA_EXPIRATION = 2;

    /**
     * 令牌有效期（分钟）
     */
    public final static long TOKEN_EXPIRE = 60*24;

    /**
     * 参数管理 cache key
     */
    public static final String SYS_CONFIG_KEY = "sys_config:";

    /**
     * 字典管理 cache key
     */
    public static final String SYS_DICT_KEY = "sys_dict:";

    /**
     * 资源映射路径 前缀
     */
    public static final String RESOURCE_PREFIX = "/profile";
    /**
     * 帐户不足
     */
    public static final String INSUFFICIENT_ACCOUNT = "03";
    /**
     * 锁定帐户
     */
    public static final String LOCKED_ACCOUNT = "02";

    /**
     * 无效终端
     */
    public static final String INVALID_TERMINAL = "0C";

    /**
     * 该账户不能在此桩上充电
     */
    public static final String LIMIT_CHARGING = "06";

    /**
     * 无效卡
     */
    public static final String INVALID_CARD = "0D";

    /**
     * 无效用户
     */
    public static final String INVALID_USER = "0E";

    /**
     * 离线卡
     */
    public static final String OFFLINE_CARD = "0F";

    /**
     * 初始化
     */
    public static final String ZERO_CARD = "10";

    /**
     * 正常
     */
    public static final String ONE_CARD = "one card";

    /**
     * 锁卡
     */
    public static final String TWO_CARD = "11";
    /**
     * 挂失
     */
    public static final String THREE_CARD = "12";
    /**
     * 作废
     */
    public static final String FOUR_CARD = "13";

    //该卡存在未结账记录
    public static final String UNPAID_ORDER = "04";

    //你有申请退款订单在审核中,需要充电请取消申请退款
    public static final String REFUND_ORDER = "14";

    //账号正在充电,请查询车辆充电信息
    public static final String CHARGE_ORDER = "15";

    //未注册的终端,请选择其他终端充电
    public static final String UNREGISTERED_TERMINAL = "0C";

    //未知的终端状态,请选择其他终端充电
    public static final String UNKNOWN_TERMINAL = "0C";

    //离线终端
    public static final String OFFLINE_TERMINAL = "16";

    //故障终端
    public static final String FAULT_TERMINAL = "17";

    //终端正在充电
    public static final String CHARGE_TERMINAL = "18";

    //未知的枪
    public static final String UNKNOWN_GUN = "19";

    //请插好充电枪
    public static final String INSERT_THE_GUN = "1A";

    /**
     * 费率模型id为空
     */
    public static final String INVALID_RATE_MODE = "1B";

    /**
     * 内部错误(数据库操作失败)
     */
    public static final String INTERNAL_ERROR = "1C";

    // VIN码为空
    public static final String EMPTY_VIN = "20";
    // 无效VIN码
    public static final String INVALID_VIN = "21";

    //你有异常订单未解决，请拨打客服电话进行解决
    public static final String EXCEPTION_ORDER = "22";
    //VIN码不存在
    public static final String UNEXIST_VIN = "09";

    // 桩停用
    public static final String UNUSE_TERMINAL = "05";

    // 无效运营商（桩的运营商和卡不对应）
    public static final String INVALID_OPERATOR = "23";
}
