package com.yfd.platform.constant;

import java.util.Arrays;
import java.util.List;

/**
 * @author LiMengNan
 * @Date: 2023/3/3 17:40
 * @Description: 常量类
 */
public class Constant {

    public static final String LOGIN = "login:";
    public static final String TOKEN = "token:";
    public static final String USER_ID = "userid";
    public static final String DATE_TIME_FORMAT = "yyyy-MM-dd HH:mm:ss";

    public static final String CODE_KEY = "code-key-";
    public static final long CODE_EXPIRATION_TIME = 1000 * 60;
    /**
     * 用于IP定位转换
     */
    public static final String REGION = "内网IP|内网IP";
    /**
     * win 系统
     */
    public static final String WIN = "win";

    /**
     * mac 系统
     */
    public static final String MAC = "mac";

    /**
     * 常用接口
     */
    public static class Url {

        // IP归属地查询
        // public static final String IP_URL = "http://whois.pconline.com
        // .cn/ipJson.jsp?ip=%s&json=true";
        public static final String IP_URL = "http://whois.pconline.com" +
                ".cn/ipJson.jsp?ip=%s&json=true";
    }
    public final static List<String> GRADE_NAMES = Arrays.asList("小班", "中班", "大班", "大大班", "小学一年级", "小学二年级", "小学三年级", "小学四年级", "小学五年级", "小学六年级",
            "初中一年级", "初中二年级", "初中三年级", "初中四年级",
            "高中一年级", "高中二年级", "高中三年级", "高中四年级", "高中五年级", "高中六年级", "高中七年级");
}
