You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

16 lines
555 B

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

package com.yanzhen.utils; // 定义包名
import java.util.HashMap; // 导入HashMap类
import java.util.Map; // 导入Map接口
public class Constant { // 定义公共类Constant
//用户类型
public static Map<Integer,String> typeString = new HashMap<>(); // 定义一个静态的Map用于存储用户类型和对应的字符串描述
static { // 静态初始化块
typeString.put(0,"管理员"); // 将用户类型0映射为"管理员"
typeString.put(1,"宿管员"); // 将用户类型1映射为"宿管员"
}
}