cqyt/shapelight-admin/src/main/java/net/shapelight/common/utils/Constant.java

207 lines
5.9 KiB
Java

package net.shapelight.common.utils;
/**
* 常量
*
*
*/
public class Constant {
/** 超级管理员ID */
public static final int SUPER_ADMIN = 1;
//public static final String SUPER_ADMIN = "1";
public static final int SYSTEM_ADMIN = 1; //平台超级管理员
public static final int SYSTEM_USER = 10; ///平台用户
public static final int TENANT_ADMIN = 2; /// 运营商
public static final int TENANT_USER = 20; // 运营商内用户
/** 系统用户标识 */
//public static final String SYSTEM_USRE = "sys";
/** 企业租户用户标识 */
//public static final String TENANT_USER = "ten";
/** 企业租户子用户标识 */
//public static final String TENSUB_USER = "sub";
public static final int ROLE_SYS_ADMIN = 100; //平台管理员
public static final int ROLE_TEN_ADMIN = 1000; //运营商超级管理
public static final int ROLE_TEN_AREA = 2000; //区域管理员 添加小区
//public static final int ROLE_TEN_GONGAN = 2100; //公安管理员,添加派出所,派出所关联区域
//public static final int ROLE_TEN_PAICHUSUO = 2200; //派出所管理员
//public static final int ROLE_TEN_POLICE = 2300; //警员
public static final int ROLE_TEN_CELL = 3000; //小区主管 添加楼栋
//public static final int ROLE_TEN_BUILD = 4000; //楼栋管理 只能管理某些楼栋
public static final int PERSON_TYPE_OWNER = 5000; //业主
public static final int PERSON_TYPE_MEMBER = 5001; //家属住户
public static final int PERSON_TYPE_TENANT = 5002; //租户
public static final int PERSON_TYPE_GUEST = 5005; //访客
public static final int PERSON_TYPE_PROPERTY = 5006; //物业人员
public static final int PERSON_TYPE_WHITE = 5007; //白名单
public static final int PERSON_TYPE_BLACK = 5008; //黑名单
public static final int USER_STATUS_NOMOR = 1; //用户状态,正常
public static final int USER_STATUS_DESABLE = 0; //用户状态,禁用
public static final int APP_LOGIN_YES = 1; //可以App登录
public static final int APP_LOGIN_NO = 0; //app不能登录
public static final int CELL_TYPE_COMMUNITY = 0; //居民小区
public static final int CELL_TYPE_SCHOOL = 1; //学校
public static final int CELL_TYPE_OFFICE = 2; //办公区
public static final int ROOM_TYPE_OWNER = 0; //房屋类型 自住房
public static final int ROOM_TYPE_TENANT = 1; // 房屋类型 出租房
public static final int ROOM_TYPE_shop = 2; //房屋类型 商铺
public static final int RESGISTER_TYPE_WEB = 1; //web后台添加
public static final int RESGISTER_TYPE_APP = 2; //App添加
public static final int RESGISTER_TYPE_FILE = 3; //批量导入
public static final int PESON_SUATUS_NOMOR = 0; //正常
public static final int PESON_SUATUS_DISABLE = 1; //禁用
public static final int PESON_SUATUS_WAITREVIEW = 2; //待审核
public static final int PESON_SUATUS_REJECT = 3; //审核不通过
public static final int PESON_SUATUS_FACE_FAILURE = 4; //照片质量不合格
public static final int PESON_SUATUS_GUEST_DATE_OUT = 5; //访客已过时
public static final String IMAGE_DIR_CAR = "car";
public static final String IMAGE_DIR_REPAIR= "repair";
public static final int FACE_FAILURE_OK = 0;
public static final int FACE_FAILURE_FAIL = 1;
/**
* 娱乐场所 2
* 机关企事 4
* 其他 5
* 用工单位 42
* 出租房 46
*/
public static final int COMPANY_TYPE_YULE = 2;
public static final int COMPANY_TYPE_JIGUAN = 4;
public static final int COMPANY_TYPE_QITA = 5;
public static final int COMPANY_TYPE_YONGGONG = 42;
public static final int COMPANY_TYPE_CHUZU = 46;
//0未同步4已同步1新增2修改3删除
public static final int PERSON_SYNC_NO = 0;
public static final int PERSON_SYNC_OK = 4;
public static final int PERSON_SYNC_ADD = 1;
public static final int PERSON_SYNC_MODIFY = 2;
public static final int PERSON_SYNC_DELETE = 3;
public static final String DEVICE_FLAG_2D = "0";
public static final String DEVICE_FLAG_3D = "1";
public static final String DB2 = "db2";
/** 数据权限过滤 */
public static final String SQL_FILTER = "sql_filter";
/**
* 当前页码
*/
public static final String PAGE = "page";
/**
* 每页显示记录数
*/
public static final String LIMIT = "limit";
/**
* 排序字段
*/
public static final String ORDER_FIELD = "sidx";
/**
* 排序方式
*/
public static final String ORDER = "order";
/**
* 升序
*/
public static final String ASC = "asc";
/**
* 菜单类型
*/
public enum MenuType {
/**
* 目录
*/
CATALOG(0),
/**
* 菜单
*/
MENU(1),
/**
* 按钮
*/
BUTTON(2);
private int value;
MenuType(int value) {
this.value = value;
}
public int getValue() {
return value;
}
}
/**
* 定时任务状态
*/
public enum ScheduleStatus {
/**
* 正常
*/
NORMAL(0),
/**
* 暂停
*/
PAUSE(1);
private int value;
ScheduleStatus(int value) {
this.value = value;
}
public int getValue() {
return value;
}
}
/**
* 云服务商
*/
public enum CloudService {
/**
* 七牛云
*/
QINIU(1),
/**
* 阿里云
*/
ALIYUN(2),
/**
* 腾讯云
*/
QCLOUD(3);
private int value;
CloudService(int value) {
this.value = value;
}
public int getValue() {
return value;
}
}
}