package top.tqx.demo_1.constant;

public class CommonConstant {

    public static final String TOKEN_HEADER = "Authorization";
    public static final String TOKEN_PREFIX = "Bearer ";

    public static final Integer STATUS_ENABLE = 1;
    public static final Integer STATUS_DISABLE = 0;

    public static final String DEFAULT_PASSWORD = "123456";

    public static final String UPLOAD_PATH = "./uploads/";

    public static final String DEPT_TYPE_HEADQUARTERS = "HEADQUARTERS";
    public static final String DEPT_TYPE_BRANCH = "BRANCH";
    public static final String DEPT_TYPE_DEPARTMENT = "DEPARTMENT";

    public static class RoleType {
        public static final Integer SUPER_ADMIN = 1;
        public static final Integer DEPT_ADMIN = 2;
        public static final Integer NORMAL_USER = 3;
    }

    public static class PermissionType {
        public static final Integer MENU = 1;
        public static final Integer BUTTON = 2;
        public static final Integer API = 3;
    }

    public static class FilePermissionType {
        public static final Integer READ_ONLY = 1;
        public static final Integer READ_WRITE = 2;
    }
}
