All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.ape9527.core.constant.Const Maven / Gradle / Ivy

The newest version!
package com.ape9527.core.constant;

import java.util.ArrayList;
import java.util.List;

/**
 * 通用常量信息
 *
 * @author YuanShuai[[email protected]]
 */
public final class Const {

    /**
     * token令牌前缀
     */
    public static final String TOKEN_PREFIX = "USER_LOGIN:";

    /**
     * token过期时间(单位:分)
     */
    public static final Integer TOKEN_TIME = 30;

    /**
     * 字典缓存前缀
     */
    public static final String DICT_PREFIX = "DICT:";

    /**
     * 请求前缀(用于参数加解密判断)
     */
    public static final String REQUEST_PREFIX = "/api";

    /**
     * 媒体类型请求头前缀(用于参数解密判断)
     */
    public static final String MULTIPART_PREFIX = "multipart/form-data;";

    /**
     * 图片文件后缀
     */
    public static final List PIC_SUFFIX;

    static {
        PIC_SUFFIX = new ArrayList<>();
        PIC_SUFFIX.add("jpg");
        PIC_SUFFIX.add("jpeg");
        PIC_SUFFIX.add("png");

        PIC_SUFFIX.add("JPG");
        PIC_SUFFIX.add("JPEG");
        PIC_SUFFIX.add("PNG");
    }

    /**
     * 数据对象名称
     */
    public static final String BASE_OBJ = "base_obj";
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy