/**
|
* Copyright (c) 2018 人人开源 All rights reserved.
|
*
|
* https://www.renren.io
|
*
|
* 版权所有,侵权必究!
|
*/
|
|
package com.iailab.framework.common.constant;
|
|
/**
|
* 常量
|
*
|
* @author Mark sunlightcs@gmail.com
|
*/
|
public interface Constant {
|
/**
|
* 成功
|
*/
|
int SUCCESS = 1;
|
/**
|
* 失败
|
*/
|
int FAIL = 0;
|
/**
|
* 菜单根节点标识
|
*/
|
Long MENU_ROOT = 0L;
|
/**
|
* 部门根节点标识
|
*/
|
Long DEPT_ROOT = 0L;
|
/**
|
* 升序
|
*/
|
String ASC = "asc";
|
/**
|
* 降序
|
*/
|
String DESC = "desc";
|
/**
|
* 创建时间字段名
|
*/
|
String CREATE_DATE = "create_date";
|
|
String CREATE_TIME = "create_time";
|
|
/**
|
* 数据权限过滤
|
*/
|
String SQL_FILTER = "sqlFilter";
|
/**
|
* 当前页码
|
*/
|
String PAGE = "page";
|
/**
|
* 每页显示记录数
|
*/
|
String LIMIT = "limit";
|
/**
|
* 排序字段
|
*/
|
String ORDER_FIELD = "orderField";
|
/**
|
* 排序方式
|
*/
|
String ORDER = "order";
|
/**
|
* token header
|
*/
|
String TOKEN_HEADER = "token";
|
|
/**
|
* 云存储配置KEY
|
*/
|
String CLOUD_STORAGE_CONFIG_KEY = "CLOUD_STORAGE_CONFIG_KEY";
|
|
Integer DEL_FLAG_0 = 0;
|
|
enum EnableStatus {
|
DISABLED(0),
|
NORMAL(1);
|
|
private int value;
|
|
private EnableStatus(int value) {
|
this.value = value;
|
}
|
|
public int getValue() {
|
return this.value;
|
}
|
}
|
|
/**
|
* 定时任务状态
|
*/
|
enum ScheduleStatus {
|
/**
|
* 暂停
|
*/
|
PAUSE(0),
|
/**
|
* 正常
|
*/
|
NORMAL(1);
|
|
private int value;
|
|
ScheduleStatus(int value) {
|
this.value = value;
|
}
|
|
public int getValue() {
|
return value;
|
}
|
}
|
|
/**
|
* 云服务商
|
*/
|
enum CloudService {
|
/**
|
* 七牛云
|
*/
|
QINIU(1),
|
/**
|
* 阿里云
|
*/
|
ALIYUN(2),
|
/**
|
* 腾讯云
|
*/
|
QCLOUD(3);
|
|
private int value;
|
|
CloudService(int value) {
|
this.value = value;
|
}
|
|
public int getValue() {
|
return value;
|
}
|
}
|
}
|