Constants.java 1.49 KB
package com.xkl.config;

import com.xkl.domain.XklAmpReportCategoryEntity;
import com.xkl.domain.XklAmpReportMetaItemsEntity;
import com.xkl.domain.XklAmpReportMetaScoreStandardEntity;

import java.util.HashMap;
import java.util.Map;

/**
 * 常量
 */
public interface Constants {

    /**
     * 存储当前登录用户id的字段名
     */
    String CURRENT_USER_ID = "CURRENT_USER_ID";

    /**
     * token有效期(小时)
     */
    int TOKEN_EXPIRES_HOUR = 72;

    /**
     * 存放Authorization的header字段
     */
    String AUTHORIZATION = "authorization";

    /**
     * 单项打分标准
     */
    Map<Integer,XklAmpReportMetaScoreStandardEntity> scoreMap=new HashMap<>();

    /**
     * 大项综合加权标准
     */
    Map<Integer,XklAmpReportCategoryEntity> weightedScoreMap=new HashMap<>();

    Map<Integer,XklAmpReportMetaItemsEntity> itemMetaMap = new HashMap<Integer, XklAmpReportMetaItemsEntity>();
    /**
     * 分年龄段平均得分
     */
    Map<String,Double> aveScoreMap = new HashMap<>();

    public static final int MALE = 0;
    public static final int FEMALE = 1;

    public static final int NORMAL = 0;
    public static final int LOWER = 1;
    public static final int HIGHER = 2;

    public static final int STATUS_BAD = 0;
    public static final boolean STATUS_BAD2 = false;
    public static final Byte STATUS_BAD3 = 0;

    public static final int STATUS_OK = 1;
    public static final boolean STATUS_OK2= true;
    public static final Byte STATUS_OK3= 1;


}