package com.ads.common.util;

/**
 * 常数定义
 */
public class UtilConst {
    public static final String PREFIX_KEY = "ads_";
    // 缓存message提示信息的key
    public static final String CACHE_MY_MESSAGE_KEY = PREFIX_KEY + "my_messages_";
    public static final String DEFULT_PASSWORD = "123456";

    public static final String PASSWORD = "e10adc3949ba59abbe56e057f20f883e";

    public static final Integer CODE_0 = 0;

    public static final Integer CODE_401 = 401;

    public static final Integer CODE_403 = 403;

    public static final Integer CODE_500 = 500;

    public static final Integer CODE_1001 = 1001;

    /**
     * 参数错误
     */
    public static final Integer CODE_1002 = 1002;

    public static final String URL_ERROR = "error";

    public static final String REQUEST_METHOD_OPTIONS = "OPTIONS";

    public static final String LOGIN_TOKEN = "X-Token";

    public static final String LANGUAGE = "X-Language";

    /*---------其他需要的参数----------------*/
    public static final String STR_NUMBER_0 = "0";

    public static final String STR_NUMBER_1 = "1";

    public static final String STR_NUMBER_2 = "2";

    public static final String STR_NUMBER_3 = "3";

    public static final String STR_NUMBER_4 = "4";

    public static final String STR_NUMBER_5 = "5";

    public static final String STR_NUMBER_6 = "6";

    public static final String STR_NUMBER_10 = "10";

    public static final String STR_NUMBER_20 = "20";

    public static final String STR_NUMBER_30 = "30";

    public static final String STR_NUMBER_40 = "40";

    public static final Long TOKEN_EXPIRE = 24 * 60 * 60L;

    public static final Integer INT_NUMBER_0 = 0;

    public static final Integer INT_NUMBER_1 = 1;

    public static final Long ACCESS_TOKEN_EXPIRE = 60 * 55 * 2L;

    /***
     * 群会话状态 1：正常
     */
    public static final Integer CONVERSATION_STTAUS_NORMAL = 1;
    /***
     * 群会话状态 2：已解散
     */
    public static final Integer CONVERSATION_STTAUS_DISMISS = 2;

    /***
     * 钉钉api返回errcode: 60121; errmsg: 找不到该用户
     */
    public static final String DING_USER_NOT_EXIST = "60121";

}
