mirror of
https://gitee.com/lab1024/smart-admin.git
synced 2025-11-22 18:36:52 +08:00
v1.1.0
This commit is contained in:
@@ -0,0 +1,51 @@
|
||||
package net.lab1024.smartadmin.constant;
|
||||
|
||||
import com.google.common.collect.ImmutableSet;
|
||||
import org.apache.commons.collections4.CollectionUtils;
|
||||
|
||||
import java.util.Set;
|
||||
|
||||
/**
|
||||
*
|
||||
* [ 通用常量 ]
|
||||
*
|
||||
* @version 1.0
|
||||
* @since JDK1.8
|
||||
* @author yandanyang
|
||||
* @company 1024lab.net
|
||||
* @copyright (c) 2019 1024lab.netInc. All rights reserved.
|
||||
* @date
|
||||
*/
|
||||
public class CommonConst {
|
||||
|
||||
|
||||
public static final class Page {
|
||||
public static final Integer SIZE = 10;
|
||||
}
|
||||
|
||||
public static final class Password {
|
||||
public static final String DEFAULT = "123456";
|
||||
public static final String SALT_FORMAT = "smart_%s_admin";
|
||||
}
|
||||
|
||||
public static final String IGNORE_H5_URL_MAPPING = "/h5/api";
|
||||
|
||||
public static final class CommonCollection {
|
||||
public static final Set<String> IGNORE_URL = ImmutableSet.of("/swagger", "Excel");
|
||||
|
||||
public static final Set<String> IGNORE_URL_MAPPING = ImmutableSet.of(IGNORE_H5_URL_MAPPING);
|
||||
|
||||
public static Boolean contain(Set<String> ignores, String uri) {
|
||||
if (CollectionUtils.isEmpty(ignores)) {
|
||||
return false;
|
||||
}
|
||||
for (String ignoreUrl : ignores) {
|
||||
if (uri.startsWith(ignoreUrl)) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,16 @@
|
||||
package net.lab1024.smartadmin.constant;
|
||||
/**
|
||||
* smart initDefines 项 常量
|
||||
*
|
||||
* @author listen
|
||||
* @date 2018/02/10 14:29
|
||||
*/
|
||||
public class SmartReloadTagConst {
|
||||
|
||||
/**
|
||||
* 系统环境设置 DEMO
|
||||
*/
|
||||
public static final String SYSTEM_CONFIG = "system_config";
|
||||
|
||||
|
||||
}
|
||||
@@ -0,0 +1,69 @@
|
||||
package net.lab1024.smartadmin.constant;
|
||||
|
||||
/**
|
||||
* []
|
||||
*
|
||||
* @author yandanyang
|
||||
* @version 1.0
|
||||
* @since JDK1.8
|
||||
*/
|
||||
public class SwaggerTagConst {
|
||||
|
||||
|
||||
public static class Admin {
|
||||
public static final String MANAGER_SYSTEM_CONFIG = "管理端-系统配置";
|
||||
|
||||
public static final String MANAGER_USER = "管理端-用户";
|
||||
|
||||
public static final String MANAGER_USER_LOGIN = "管理端-用户登录";
|
||||
|
||||
public static final String MANAGER_DEPARTMENT = "管理端-部门";
|
||||
|
||||
public static final String MANAGER_ROLE = "管理端-角色";
|
||||
|
||||
public static final String MANAGER_ROLE_USER = "管理端-角色用户";
|
||||
|
||||
public static final String MANAGER_ROLE_PRIVILEGE = "管理端-角色权限";
|
||||
|
||||
public static final String MANAGER_SMART_RELOAD = "管理端-smart reload";
|
||||
|
||||
public static final String MANAGER_ORDER_OPERATE_LOG = "管理端-单据操作日志";
|
||||
|
||||
public static final String MANAGER_TASK_SCHEDULER = "管理端-任务调度";
|
||||
|
||||
public static final String MANAGER_USER_LOGIN_LOG = "管理端-用户登录日志";
|
||||
|
||||
public static final String MANAGER_USER_OPERATE_LOG = "管理端-用户操作日志";
|
||||
|
||||
public static final String MANAGER_DATA_SCOPE = "管理端-数据范围";
|
||||
|
||||
public static final String MANAGER_JOB = "管理端-岗位";
|
||||
|
||||
public static final String MANAGER_NOTICE = "管理端-系统通知";
|
||||
|
||||
public static final String MANAGER_FILE = "通用-文件服务";
|
||||
|
||||
public static final String MANAGER_PRIVILEGE = "通用-权限";
|
||||
|
||||
public static final String MANAGER_EMAIL = "通用-邮件发送";
|
||||
|
||||
public static final String MANAGER_HEART_BEAT = "通用-心跳服务";
|
||||
}
|
||||
|
||||
/**
|
||||
* 自定义分组2
|
||||
*/
|
||||
public static class Group2 {
|
||||
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* 自定义分组2
|
||||
*/
|
||||
public static class Group3 {
|
||||
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
@@ -0,0 +1,67 @@
|
||||
package net.lab1024.smartadmin.constant;
|
||||
|
||||
import net.lab1024.smartadmin.common.domain.BaseEnum;
|
||||
|
||||
/**
|
||||
* 系统环境枚举类
|
||||
*
|
||||
* @author listen
|
||||
* @date 2019年4月11日 17:34:59
|
||||
*/
|
||||
public enum SystemEnvironmentEnum implements BaseEnum {
|
||||
|
||||
|
||||
/**
|
||||
* dev
|
||||
*/
|
||||
DEV("dev", "开发环境"),
|
||||
|
||||
/**
|
||||
* sit
|
||||
*/
|
||||
SIT("sit", "测试环境"),
|
||||
|
||||
/**
|
||||
* pre
|
||||
*/
|
||||
PRE("pre", "预发布环境"),
|
||||
|
||||
/**
|
||||
* prod
|
||||
*/
|
||||
PROD("prod", "生产环境");
|
||||
|
||||
|
||||
public static final String DEV_ENV = "dev";
|
||||
|
||||
|
||||
private String value;
|
||||
|
||||
private String desc;
|
||||
|
||||
SystemEnvironmentEnum(String value, String desc) {
|
||||
this.value = value;
|
||||
this.desc = desc;
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取定义枚举value值
|
||||
*
|
||||
* @return Integer
|
||||
*/
|
||||
@Override
|
||||
public String getValue() {
|
||||
return value;
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取枚举类的说明
|
||||
*
|
||||
* @return String
|
||||
*/
|
||||
@Override
|
||||
public String getDesc() {
|
||||
return desc;
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user