package com.dcsoft.common.core.constant;

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

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

    /**
     * www主域
     */
    public static final String WWW = "www.";

    /**
     * RMI 远程方法调用
     */
    public static final String LOOKUP_RMI = "rmi:";

    /**
     * LDAP 远程方法调用
     */
    public static final String LOOKUP_LDAP = "ldap:";

    /**
     * LDAPS 远程方法调用
     */
    public static final String LOOKUP_LDAPS = "ldaps:";

    /**
     * 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_STATUS = "0";

    /**
     * 登录失败状态
     */
    public static final String LOGIN_FAIL_STATUS = "1";

    /**
     * 登录成功
     */
    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";

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

    /**
     * 资源映射路径 前缀
     */
    public static final String RESOURCE_PREFIX = "/profile";

    /**
     * 定时任务白名单配置（仅允许访问的包名，如其他需要可以自行添加）
     */
    public static final String[] JOB_WHITELIST_STR = { "com.dcsoft" };

    /**
     * 定时任务违规的字符
     */
    public static final String[] JOB_ERROR_STR = { "java.net.URL", "javax.naming.InitialContext", "org.yaml.snakeyaml",
            "org.springframework", "org.apache", "com.dcsoft.common.core.utils.file" };


    /**
     * 0
     */
    public static final String ZERO = "0";

    /**
     * 1
     */
    public static final String ONE = "1";

    /**
     * 2
     */
    public static final String TWO = "2";

    /**
     * 5
     */
    public static final String FIVE = "5";

    /**
     * 200
     */
    public static final String CODE = "200";

    /**
     * OK
     */
    public static final String OK = "ok";

    /**
     * 宇泛门禁设备开关门状态1开门
     */
    public static final Integer ACCESS_CONTROL_ONE = 1;

    /**
     * 宇泛门禁设备开关门状态2关门
     */
    public static final Integer ACCESS_CONTROL_TWO = 2;

    /**
     *
     */
    public static final String TTS_MOD_CONTENT = "未授权，请联系管理员";

    /**
     *
     */
    public static final String DISPLAY_MOD_CONTENT = "未授权，请联系管理员";

    /**
     * 梯控结束时间
     */
    public static final String END_TIME = "2099-12-31 23:59:59";

    /**
     * 梯控起始可用时间
     */
    public static final String START_DAY_TIME = "00:00:00";

    /**
     * 梯控结束可用时间
     */
    public static final String END_DAY_TIME = "23:59:59";

    /**
     * 梯控星期
     */
    public static final String WEEK = "1 1 1 1 1 1 1";

    public static final String CONTENT = "{\n" +
            "  \"touser\": \"%\", \n" +
            "  \"template_id\": \"wODO_BDj8n1grelUSGTNvpZbSnFdhzC3odWHek0brSM\",\n" +
            "  \"url\": \"#\",\n" +
            "  \"data\": {\n" +
            "      \"first\": {\n" +
            "          \"value\": \"广州腾讯科技有限公司\"\n" +
            "      },\n" +
            "      \"keyword1\": {\n" +
            "          \"value\": \"广州腾讯科技有限公司\"\n" +
            "      },\n" +
            "       \"keyword2\": {\n" +
            "          \"value\": \"2019年8月8日\"\n" +
            "      }\n" +
            "     }\n" +
            "}";


}
