forked from Gitlink/microservices
feat(微服务平台重命名): 去除ruoyi相关标识
This commit is contained in:
parent
ad69989a8e
commit
efb5edce16
|
@ -47,4 +47,3 @@ nbdist/
|
|||
!*/build/*.java
|
||||
!*/build/*.html
|
||||
!*/build/*.xml
|
||||
/ruoyi-react/
|
||||
|
|
|
@ -12,12 +12,12 @@
|
|||
<artifactId>microservices-api-system</artifactId>
|
||||
|
||||
<description>
|
||||
ruoyi-api-system系统接口模块
|
||||
microservices-api-system系统接口模块
|
||||
</description>
|
||||
|
||||
<dependencies>
|
||||
|
||||
<!-- RuoYi Common Core-->
|
||||
<!-- Microservices Common Core-->
|
||||
<dependency>
|
||||
<groupId>com.microservices</groupId>
|
||||
<artifactId>microservices-common-core</artifactId>
|
||||
|
|
|
@ -11,7 +11,7 @@ import org.springframework.web.bind.annotation.*;
|
|||
/**
|
||||
* 用户服务
|
||||
*
|
||||
* @author ruoyi
|
||||
* @author microservices
|
||||
*/
|
||||
@FeignClient(contextId = "remoteCmsService", value = ServiceNameConstants.CMS_SERVICE, fallbackFactory = RemoteCmsFallbackFactory.class)
|
||||
public interface RemoteCmsService {
|
||||
|
|
|
@ -15,8 +15,8 @@ import java.util.List;
|
|||
|
||||
/**
|
||||
* 文件服务
|
||||
*
|
||||
* @author ruoyi
|
||||
*
|
||||
* @author microservices
|
||||
*/
|
||||
@FeignClient(contextId = "remoteFileService", value = ServiceNameConstants.FILE_SERVICE, fallbackFactory = RemoteFileFallbackFactory.class)
|
||||
public interface RemoteFileService {
|
||||
|
|
|
@ -13,8 +13,8 @@ import org.springframework.web.bind.annotation.RequestHeader;
|
|||
|
||||
/**
|
||||
* 日志服务
|
||||
*
|
||||
* @author ruoyi
|
||||
*
|
||||
* @author microservices
|
||||
*/
|
||||
@FeignClient(contextId = "remoteLogService", value = ServiceNameConstants.SYSTEM_SERVICE, fallbackFactory = RemoteLogFallbackFactory.class)
|
||||
public interface RemoteLogService
|
||||
|
|
|
@ -13,7 +13,7 @@ import java.util.List;
|
|||
/**
|
||||
* 用户服务
|
||||
*
|
||||
* @author ruoyi
|
||||
* @author microservices
|
||||
*/
|
||||
@FeignClient(contextId = "remoteZoneService", value = ServiceNameConstants.ZONE_SERVICE, fallbackFactory = RemoteCmsFallbackFactory.class)
|
||||
public interface RemoteZoneService {
|
||||
|
|
|
@ -9,7 +9,7 @@ import java.util.Date;
|
|||
/**
|
||||
* 文件管理对象 sys_file_info
|
||||
*
|
||||
* @author ruoyi
|
||||
* @author microservices
|
||||
* @date 2021-12-29
|
||||
*/
|
||||
@Data
|
||||
|
|
|
@ -6,7 +6,7 @@ import lombok.Data;
|
|||
/**
|
||||
* Gitlink简单用户对象
|
||||
*
|
||||
* @author ruoyi
|
||||
* @author microservices
|
||||
*/
|
||||
|
||||
@Data
|
||||
|
|
|
@ -10,7 +10,7 @@ import java.io.Serializable;
|
|||
/**
|
||||
* 角色表 sys_role
|
||||
*
|
||||
* @author ruoyi
|
||||
* @author microservices
|
||||
*/
|
||||
@Data
|
||||
public class SimpleSysRole implements Serializable {
|
||||
|
|
|
@ -8,7 +8,7 @@ import java.io.Serializable;
|
|||
/**
|
||||
* 简单用户对象 sys_user
|
||||
*
|
||||
* @author ruoyi
|
||||
* @author microservices
|
||||
*/
|
||||
|
||||
@Data
|
||||
|
|
|
@ -14,8 +14,8 @@ import java.util.List;
|
|||
|
||||
/**
|
||||
* 部门表 sys_dept
|
||||
*
|
||||
* @author ruoyi
|
||||
*
|
||||
* @author microservices
|
||||
*/
|
||||
@Data
|
||||
@ApiModel("组织Model")
|
||||
|
|
|
@ -12,8 +12,8 @@ import javax.validation.constraints.Size;
|
|||
|
||||
/**
|
||||
* 字典数据表 sys_dict_data
|
||||
*
|
||||
* @author ruoyi
|
||||
*
|
||||
* @author microservices
|
||||
*/
|
||||
public class SysDictData extends BaseEntity
|
||||
{
|
||||
|
|
|
@ -12,8 +12,8 @@ import javax.validation.constraints.Size;
|
|||
|
||||
/**
|
||||
* 字典类型表 sys_dict_type
|
||||
*
|
||||
* @author ruoyi
|
||||
*
|
||||
* @author microservices
|
||||
*/
|
||||
public class SysDictType extends BaseEntity
|
||||
{
|
||||
|
|
|
@ -5,8 +5,8 @@ import org.apache.commons.lang3.builder.ToStringStyle;
|
|||
|
||||
/**
|
||||
* 文件信息
|
||||
*
|
||||
* @author ruoyi
|
||||
*
|
||||
* @author microservices
|
||||
*/
|
||||
public class SysFile
|
||||
{
|
||||
|
|
|
@ -8,7 +8,7 @@ import lombok.Data;
|
|||
/**
|
||||
* 文件管理对象 sys_file_info
|
||||
*
|
||||
* @author ruoyi
|
||||
* @author microservices
|
||||
* @date 2021-12-29
|
||||
*/
|
||||
@Data
|
||||
|
|
|
@ -9,8 +9,8 @@ import java.util.Date;
|
|||
|
||||
/**
|
||||
* 系统访问记录表 sys_logininfor
|
||||
*
|
||||
* @author ruoyi
|
||||
*
|
||||
* @author microservices
|
||||
*/
|
||||
public class SysLogininfor extends BaseEntity
|
||||
{
|
||||
|
|
|
@ -10,8 +10,8 @@ import javax.validation.constraints.Size;
|
|||
|
||||
/**
|
||||
* 通知公告表 sys_notice
|
||||
*
|
||||
* @author ruoyi
|
||||
*
|
||||
* @author microservices
|
||||
*/
|
||||
public class SysNotice extends BaseEntity
|
||||
{
|
||||
|
|
|
@ -9,8 +9,8 @@ import java.util.Date;
|
|||
|
||||
/**
|
||||
* 操作日志记录表 oper_log
|
||||
*
|
||||
* @author ruoyi
|
||||
*
|
||||
* @author microservices
|
||||
*/
|
||||
public class SysOperLog extends BaseEntity
|
||||
{
|
||||
|
|
|
@ -12,8 +12,8 @@ import java.util.Set;
|
|||
|
||||
/**
|
||||
* 角色表 sys_role
|
||||
*
|
||||
* @author ruoyi
|
||||
*
|
||||
* @author microservices
|
||||
*/
|
||||
@Data
|
||||
public class SysRole extends BaseEntity
|
||||
|
|
|
@ -18,7 +18,7 @@ import java.util.List;
|
|||
/**
|
||||
* 用户对象 sys_user
|
||||
*
|
||||
* @author ruoyi
|
||||
* @author microservices
|
||||
*/
|
||||
|
||||
@Data
|
||||
|
|
|
@ -11,7 +11,7 @@ import org.springframework.stereotype.Component;
|
|||
/**
|
||||
* 内容管理服务降级处理
|
||||
*
|
||||
* @author ruoyi
|
||||
* @author microservices
|
||||
*/
|
||||
@Component
|
||||
public class RemoteCmsFallbackFactory implements FallbackFactory<RemoteCmsService> {
|
||||
|
|
|
@ -14,7 +14,7 @@ import java.util.List;
|
|||
/**
|
||||
* 部门服务降级处理
|
||||
*
|
||||
* @author ruoyi
|
||||
* @author microservices
|
||||
*/
|
||||
@Component
|
||||
public class RemoteDeptFallbackFactory implements FallbackFactory<RemoteDeptService> {
|
||||
|
|
|
@ -14,8 +14,8 @@ import java.util.List;
|
|||
|
||||
/**
|
||||
* 文件服务降级处理
|
||||
*
|
||||
* @author ruoyi
|
||||
*
|
||||
* @author microservices
|
||||
*/
|
||||
@Component
|
||||
public class RemoteFileFallbackFactory implements FallbackFactory<RemoteFileService>
|
||||
|
|
|
@ -11,8 +11,8 @@ import org.springframework.stereotype.Component;
|
|||
|
||||
/**
|
||||
* 日志服务降级处理
|
||||
*
|
||||
* @author ruoyi
|
||||
*
|
||||
* @author microservices
|
||||
*/
|
||||
@Component
|
||||
public class RemoteLogFallbackFactory implements FallbackFactory<RemoteLogService>
|
||||
|
|
|
@ -10,7 +10,7 @@ import org.springframework.stereotype.Component;
|
|||
/**
|
||||
* 用户服务降级处理
|
||||
*
|
||||
* @author ruoyi
|
||||
* @author microservices
|
||||
*/
|
||||
@Component
|
||||
public class RemotePmsFallbackFactory implements FallbackFactory<RemotePmsService> {
|
||||
|
|
|
@ -17,8 +17,8 @@ import java.util.Set;
|
|||
|
||||
/**
|
||||
* 用户服务降级处理
|
||||
*
|
||||
* @author ruoyi
|
||||
*
|
||||
* @author microservices
|
||||
*/
|
||||
@Component
|
||||
public class RemoteUserFallbackFactory implements FallbackFactory<RemoteUserService>
|
||||
|
|
|
@ -13,7 +13,7 @@ import java.util.List;
|
|||
/**
|
||||
* 特色专区服务降级处理
|
||||
*
|
||||
* @author ruoyi
|
||||
* @author microservices
|
||||
*/
|
||||
@Component
|
||||
public class RemoteZoneFallbackFactory implements FallbackFactory<RemoteZoneService> {
|
||||
|
|
|
@ -8,7 +8,7 @@ import java.io.Serializable;
|
|||
/**
|
||||
* 用户信息
|
||||
*
|
||||
* @author ruoyi
|
||||
* @author microservices
|
||||
*/
|
||||
@Data
|
||||
public class LoginUser implements Serializable {
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
<packaging>pom</packaging>
|
||||
|
||||
<description>
|
||||
ruoyi-api系统接口
|
||||
microservices-api系统接口
|
||||
</description>
|
||||
|
||||
</project>
|
||||
|
|
|
@ -11,7 +11,7 @@
|
|||
<artifactId>microservices-auth</artifactId>
|
||||
|
||||
<description>
|
||||
ruoyi-auth认证授权中心
|
||||
microservices-auth认证授权中心
|
||||
</description>
|
||||
|
||||
<dependencies>
|
||||
|
@ -45,8 +45,8 @@
|
|||
<groupId>org.springframework.boot</groupId>
|
||||
<artifactId>spring-boot-starter-actuator</artifactId>
|
||||
</dependency>
|
||||
|
||||
<!-- RuoYi Common Security-->
|
||||
|
||||
<!-- Microservices Common Security-->
|
||||
<dependency>
|
||||
<groupId>com.microservices</groupId>
|
||||
<artifactId>microservices-common-security</artifactId>
|
||||
|
|
|
@ -8,7 +8,7 @@ import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
|
|||
/**
|
||||
* 认证授权中心
|
||||
*
|
||||
* @author ruoyi
|
||||
* @author microservices
|
||||
*/
|
||||
@EnableRyFeignClients
|
||||
@SpringBootApplication(exclude = {DataSourceAutoConfiguration.class})
|
||||
|
|
|
@ -20,8 +20,8 @@ import javax.servlet.http.HttpServletRequest;
|
|||
|
||||
/**
|
||||
* token 控制
|
||||
*
|
||||
* @author ruoyi
|
||||
*
|
||||
* @author microservices
|
||||
*/
|
||||
@RestController
|
||||
public class TokenController
|
||||
|
|
|
@ -2,8 +2,8 @@ package com.microservices.auth.form;
|
|||
|
||||
/**
|
||||
* 用户登录对象
|
||||
*
|
||||
* @author ruoyi
|
||||
*
|
||||
* @author microservices
|
||||
*/
|
||||
public class LoginBody
|
||||
{
|
||||
|
|
|
@ -2,8 +2,8 @@ package com.microservices.auth.form;
|
|||
|
||||
/**
|
||||
* 用户注册对象
|
||||
*
|
||||
* @author ruoyi
|
||||
*
|
||||
* @author microservices
|
||||
*/
|
||||
public class RegisterBody extends LoginBody
|
||||
{
|
||||
|
|
|
@ -20,8 +20,8 @@ import org.springframework.stereotype.Component;
|
|||
|
||||
/**
|
||||
* 登录校验方法
|
||||
*
|
||||
* @author ruoyi
|
||||
*
|
||||
* @author microservices
|
||||
*/
|
||||
@Component
|
||||
public class SysLoginService
|
||||
|
|
|
@ -13,8 +13,8 @@ import java.util.concurrent.TimeUnit;
|
|||
|
||||
/**
|
||||
* 登录密码方法
|
||||
*
|
||||
* @author ruoyi
|
||||
*
|
||||
* @author microservices
|
||||
*/
|
||||
@Component
|
||||
public class SysPasswordService
|
||||
|
|
|
@ -11,8 +11,8 @@ import org.springframework.stereotype.Component;
|
|||
|
||||
/**
|
||||
* 记录日志方法
|
||||
*
|
||||
* @author ruoyi
|
||||
*
|
||||
* @author microservices
|
||||
*/
|
||||
@Component
|
||||
public class SysRecordLogService
|
||||
|
|
|
@ -6,7 +6,7 @@ server:
|
|||
spring:
|
||||
application:
|
||||
# 应用名称
|
||||
name: ruoyi-auth
|
||||
name: microservices-auth
|
||||
config:
|
||||
activate:
|
||||
# 环境配置
|
||||
|
|
|
@ -6,7 +6,7 @@ server:
|
|||
spring:
|
||||
application:
|
||||
# 应用名称
|
||||
name: ruoyi-auth
|
||||
name: microservices-auth
|
||||
profiles:
|
||||
# 环境配置
|
||||
active: dev
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<configuration scan="true" scanPeriod="60 seconds" debug="false">
|
||||
<!-- 日志存放路径 -->
|
||||
<property name="log.path" value="logs/ruoyi-auth" />
|
||||
<property name="log.path" value="logs/microservices-auth"/>
|
||||
<!-- 日志输出格式 -->
|
||||
<property name="log.pattern" value="%d{HH:mm:ss.SSS} [%thread] %-5level %logger{20} - [%method,%line] - %msg%n" />
|
||||
|
||||
|
|
|
@ -12,6 +12,6 @@
|
|||
<artifactId>microservices-common-async</artifactId>
|
||||
|
||||
<description>
|
||||
ruoyi-common-async异步
|
||||
microservices-common-async异步
|
||||
</description>
|
||||
</project>
|
||||
|
|
|
@ -12,7 +12,7 @@
|
|||
<artifactId>microservices-common-core</artifactId>
|
||||
|
||||
<description>
|
||||
ruoyi-common-core核心模块
|
||||
microservices-common-core核心模块
|
||||
</description>
|
||||
|
||||
<dependencies>
|
||||
|
|
|
@ -12,8 +12,8 @@ import java.math.BigDecimal;
|
|||
|
||||
/**
|
||||
* 自定义导出Excel数据注解
|
||||
*
|
||||
* @author ruoyi
|
||||
*
|
||||
* @author microservices
|
||||
*/
|
||||
@Retention(RetentionPolicy.RUNTIME)
|
||||
@Target(ElementType.FIELD)
|
||||
|
|
|
@ -7,8 +7,8 @@ import java.lang.annotation.Target;
|
|||
|
||||
/**
|
||||
* Excel注解集
|
||||
*
|
||||
* @author ruoyi
|
||||
*
|
||||
* @author microservices
|
||||
*/
|
||||
@Target(ElementType.FIELD)
|
||||
@Retention(RetentionPolicy.RUNTIME)
|
||||
|
|
|
@ -2,8 +2,8 @@ package com.microservices.common.core.constant;
|
|||
|
||||
/**
|
||||
* 缓存常量信息
|
||||
*
|
||||
* @author ruoyi
|
||||
*
|
||||
* @author microservices
|
||||
*/
|
||||
public class CacheConstants
|
||||
{
|
||||
|
|
|
@ -2,8 +2,8 @@ package com.microservices.common.core.constant;
|
|||
|
||||
/**
|
||||
* 通用常量信息
|
||||
*
|
||||
* @author ruoyi
|
||||
*
|
||||
* @author microservices
|
||||
*/
|
||||
public class Constants
|
||||
{
|
||||
|
@ -120,7 +120,7 @@ public class Constants
|
|||
/**
|
||||
* 定时任务白名单配置(仅允许访问的包名,如其他需要可以自行添加)
|
||||
*/
|
||||
public static final String[] JOB_WHITELIST_STR = {"com.ruoyi"};
|
||||
public static final String[] JOB_WHITELIST_STR = {"com.microservices"};
|
||||
/**
|
||||
* JSON类型
|
||||
*/
|
||||
|
@ -134,5 +134,5 @@ public class Constants
|
|||
* 定时任务违规的字符
|
||||
*/
|
||||
public static final String[] JOB_ERROR_STR = {"java.net.URL", "javax.naming.InitialContext", "org.yaml.snakeyaml",
|
||||
"org.springframework", "org.apache", "com.ruoyi.common.core.utils.file"};
|
||||
"org.springframework", "org.apache", "com.microservices.common.core.utils.file"};
|
||||
}
|
||||
|
|
|
@ -2,8 +2,8 @@ package com.microservices.common.core.constant;
|
|||
|
||||
/**
|
||||
* 代码生成通用常量
|
||||
*
|
||||
* @author ruoyi
|
||||
*
|
||||
* @author microservices
|
||||
*/
|
||||
public class GenConstants
|
||||
{
|
||||
|
|
|
@ -2,8 +2,8 @@ package com.microservices.common.core.constant;
|
|||
|
||||
/**
|
||||
* 返回状态码
|
||||
*
|
||||
* @author ruoyi
|
||||
*
|
||||
* @author microservices
|
||||
*/
|
||||
public class HttpStatus
|
||||
{
|
||||
|
|
|
@ -2,8 +2,8 @@ package com.microservices.common.core.constant;
|
|||
|
||||
/**
|
||||
* 任务调度通用常量
|
||||
*
|
||||
* @author ruoyi
|
||||
*
|
||||
* @author microservices
|
||||
*/
|
||||
public class ScheduleConstants
|
||||
{
|
||||
|
|
|
@ -3,7 +3,7 @@ package com.microservices.common.core.constant;
|
|||
/**
|
||||
* 权限相关通用常量
|
||||
*
|
||||
* @author ruoyi
|
||||
* @author microservices
|
||||
*/
|
||||
public class SecurityConstants
|
||||
{
|
||||
|
|
|
@ -3,7 +3,7 @@ package com.microservices.common.core.constant;
|
|||
/**
|
||||
* 服务名称
|
||||
*
|
||||
* @author ruoyi
|
||||
* @author microservices
|
||||
*/
|
||||
public class ServiceNameConstants {
|
||||
/**
|
||||
|
|
|
@ -3,7 +3,7 @@ package com.microservices.common.core.constant;
|
|||
/**
|
||||
* Token的Key常量
|
||||
*
|
||||
* @author ruoyi
|
||||
* @author microservices
|
||||
*/
|
||||
public class TokenConstants {
|
||||
/**
|
||||
|
|
|
@ -2,8 +2,8 @@ package com.microservices.common.core.constant;
|
|||
|
||||
/**
|
||||
* 用户常量信息
|
||||
*
|
||||
* @author ruoyi
|
||||
*
|
||||
* @author microservices
|
||||
*/
|
||||
public class UserConstants
|
||||
{
|
||||
|
|
|
@ -12,7 +12,7 @@ import java.util.concurrent.ConcurrentHashMap;
|
|||
* 获取当前线程变量中的 用户id、用户名称、Token等信息
|
||||
* 注意: 必须在网关通过请求头的方法传入,同时在HeaderInterceptor拦截器设置值。 否则这里无法获取
|
||||
*
|
||||
* @author ruoyi
|
||||
* @author microservices
|
||||
*/
|
||||
public class SecurityContextHolder
|
||||
{
|
||||
|
|
|
@ -7,7 +7,7 @@ import java.io.Serializable;
|
|||
/**
|
||||
* 响应信息主体
|
||||
*
|
||||
* @author ruoyi
|
||||
* @author microservices
|
||||
*/
|
||||
public class R<T> implements Serializable
|
||||
{
|
||||
|
|
|
@ -2,8 +2,8 @@ package com.microservices.common.core.enums;
|
|||
|
||||
/**
|
||||
* 用户状态
|
||||
*
|
||||
* @author ruoyi
|
||||
*
|
||||
* @author microservices
|
||||
*/
|
||||
public enum UserStatus
|
||||
{
|
||||
|
|
|
@ -2,8 +2,8 @@ package com.microservices.common.core.exception;
|
|||
|
||||
/**
|
||||
* 验证码错误异常类
|
||||
*
|
||||
* @author ruoyi
|
||||
*
|
||||
* @author microservices
|
||||
*/
|
||||
public class CaptchaException extends RuntimeException
|
||||
{
|
||||
|
|
|
@ -2,8 +2,8 @@ package com.microservices.common.core.exception;
|
|||
|
||||
/**
|
||||
* 检查异常
|
||||
*
|
||||
* @author ruoyi
|
||||
*
|
||||
* @author microservices
|
||||
*/
|
||||
public class CheckedException extends RuntimeException
|
||||
{
|
||||
|
|
|
@ -2,8 +2,8 @@ package com.microservices.common.core.exception;
|
|||
|
||||
/**
|
||||
* 演示模式异常
|
||||
*
|
||||
* @author ruoyi
|
||||
*
|
||||
* @author microservices
|
||||
*/
|
||||
public class DemoModeException extends RuntimeException
|
||||
{
|
||||
|
|
|
@ -2,8 +2,8 @@ package com.microservices.common.core.exception;
|
|||
|
||||
/**
|
||||
* 全局异常
|
||||
*
|
||||
* @author ruoyi
|
||||
*
|
||||
* @author microservices
|
||||
*/
|
||||
public class GlobalException extends RuntimeException
|
||||
{
|
||||
|
|
|
@ -2,8 +2,8 @@ package com.microservices.common.core.exception;
|
|||
|
||||
/**
|
||||
* 内部认证异常
|
||||
*
|
||||
* @author ruoyi
|
||||
*
|
||||
* @author microservices
|
||||
*/
|
||||
public class InnerAuthException extends RuntimeException
|
||||
{
|
||||
|
|
|
@ -3,7 +3,7 @@ package com.microservices.common.core.exception;
|
|||
/**
|
||||
* 多身份异常
|
||||
*
|
||||
* @author ruoyi
|
||||
* @author microservices
|
||||
*/
|
||||
public final class MultiIdentityException extends RuntimeException {
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
|
|
@ -3,7 +3,7 @@ package com.microservices.common.core.exception;
|
|||
/**
|
||||
* 业务异常
|
||||
*
|
||||
* @author ruoyi
|
||||
* @author microservices
|
||||
*/
|
||||
public final class NotFoundException extends RuntimeException {
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
|
|
@ -2,8 +2,8 @@ package com.microservices.common.core.exception;
|
|||
|
||||
/**
|
||||
* 权限异常
|
||||
*
|
||||
* @author ruoyi
|
||||
*
|
||||
* @author microservices
|
||||
*/
|
||||
public class PreAuthorizeException extends RuntimeException
|
||||
{
|
||||
|
|
|
@ -2,8 +2,8 @@ package com.microservices.common.core.exception;
|
|||
|
||||
/**
|
||||
* 业务异常
|
||||
*
|
||||
* @author ruoyi
|
||||
*
|
||||
* @author microservices
|
||||
*/
|
||||
public final class ServiceException extends RuntimeException
|
||||
{
|
||||
|
|
|
@ -2,8 +2,8 @@ package com.microservices.common.core.exception;
|
|||
|
||||
/**
|
||||
* 工具类异常
|
||||
*
|
||||
* @author ruoyi
|
||||
*
|
||||
* @author microservices
|
||||
*/
|
||||
public class UtilException extends RuntimeException
|
||||
{
|
||||
|
|
|
@ -2,8 +2,8 @@ package com.microservices.common.core.exception.auth;
|
|||
|
||||
/**
|
||||
* 未能通过的登录认证异常
|
||||
*
|
||||
* @author ruoyi
|
||||
*
|
||||
* @author microservices
|
||||
*/
|
||||
public class NotLoginException extends RuntimeException
|
||||
{
|
||||
|
|
|
@ -4,8 +4,8 @@ import org.apache.commons.lang3.StringUtils;
|
|||
|
||||
/**
|
||||
* 未能通过的权限认证异常
|
||||
*
|
||||
* @author ruoyi
|
||||
*
|
||||
* @author microservices
|
||||
*/
|
||||
public class NotPermissionException extends RuntimeException
|
||||
{
|
||||
|
|
|
@ -4,8 +4,8 @@ import org.apache.commons.lang3.StringUtils;
|
|||
|
||||
/**
|
||||
* 未能通过的角色认证异常
|
||||
*
|
||||
* @author ruoyi
|
||||
*
|
||||
* @author microservices
|
||||
*/
|
||||
public class NotRoleException extends RuntimeException
|
||||
{
|
||||
|
|
|
@ -2,8 +2,8 @@ package com.microservices.common.core.exception.base;
|
|||
|
||||
/**
|
||||
* 基础异常
|
||||
*
|
||||
* @author ruoyi
|
||||
*
|
||||
* @author microservices
|
||||
*/
|
||||
public class BaseException extends RuntimeException
|
||||
{
|
||||
|
|
|
@ -4,8 +4,8 @@ import com.microservices.common.core.exception.base.BaseException;
|
|||
|
||||
/**
|
||||
* 文件信息异常类
|
||||
*
|
||||
* @author ruoyi
|
||||
*
|
||||
* @author microservices
|
||||
*/
|
||||
public class FileException extends BaseException
|
||||
{
|
||||
|
|
|
@ -2,8 +2,8 @@ package com.microservices.common.core.exception.file;
|
|||
|
||||
/**
|
||||
* 文件名称超长限制异常类
|
||||
*
|
||||
* @author ruoyi
|
||||
*
|
||||
* @author microservices
|
||||
*/
|
||||
public class FileNameLengthLimitExceededException extends FileException
|
||||
{
|
||||
|
|
|
@ -2,8 +2,8 @@ package com.microservices.common.core.exception.file;
|
|||
|
||||
/**
|
||||
* 文件名大小限制异常类
|
||||
*
|
||||
* @author ruoyi
|
||||
*
|
||||
* @author microservices
|
||||
*/
|
||||
public class FileSizeLimitExceededException extends FileException
|
||||
{
|
||||
|
|
|
@ -5,8 +5,8 @@ import java.io.PrintWriter;
|
|||
|
||||
/**
|
||||
* 文件上传异常类
|
||||
*
|
||||
* @author ruoyi
|
||||
*
|
||||
* @author microservices
|
||||
*/
|
||||
public class FileUploadException extends Exception
|
||||
{
|
||||
|
|
|
@ -4,8 +4,8 @@ import java.util.Arrays;
|
|||
|
||||
/**
|
||||
* 文件上传 误异常类
|
||||
*
|
||||
* @author ruoyi
|
||||
*
|
||||
* @author microservices
|
||||
*/
|
||||
public class InvalidExtensionException extends FileUploadException
|
||||
{
|
||||
|
|
|
@ -2,8 +2,8 @@ package com.microservices.common.core.exception.job;
|
|||
|
||||
/**
|
||||
* 计划策略异常
|
||||
*
|
||||
* @author ruoyi
|
||||
*
|
||||
* @author microservices
|
||||
*/
|
||||
public class TaskException extends Exception
|
||||
{
|
||||
|
|
|
@ -2,8 +2,8 @@ package com.microservices.common.core.exception.user;
|
|||
|
||||
/**
|
||||
* 验证码失效异常类
|
||||
*
|
||||
* @author ruoyi
|
||||
*
|
||||
* @author microservices
|
||||
*/
|
||||
public class CaptchaExpireException extends UserException
|
||||
{
|
||||
|
|
|
@ -4,8 +4,8 @@ import com.microservices.common.core.exception.base.BaseException;
|
|||
|
||||
/**
|
||||
* 用户信息异常类
|
||||
*
|
||||
* @author ruoyi
|
||||
*
|
||||
* @author microservices
|
||||
*/
|
||||
public class UserException extends BaseException
|
||||
{
|
||||
|
|
|
@ -2,8 +2,8 @@ package com.microservices.common.core.exception.user;
|
|||
|
||||
/**
|
||||
* 用户密码不正确或不符合规范异常类
|
||||
*
|
||||
* @author ruoyi
|
||||
*
|
||||
* @author microservices
|
||||
*/
|
||||
public class UserPasswordNotMatchException extends UserException
|
||||
{
|
||||
|
|
|
@ -7,8 +7,8 @@ import java.nio.charset.StandardCharsets;
|
|||
|
||||
/**
|
||||
* 字符集工具类
|
||||
*
|
||||
* @author ruoyi
|
||||
*
|
||||
* @author microservices
|
||||
*/
|
||||
public class CharsetKit
|
||||
{
|
||||
|
|
|
@ -11,8 +11,8 @@ import java.util.Set;
|
|||
|
||||
/**
|
||||
* 类型转换器
|
||||
*
|
||||
* @author ruoyi
|
||||
*
|
||||
* @author microservices
|
||||
*/
|
||||
public class Convert
|
||||
{
|
||||
|
|
|
@ -4,8 +4,8 @@ import com.microservices.common.core.utils.StringUtils;
|
|||
|
||||
/**
|
||||
* 字符串格式化
|
||||
*
|
||||
* @author ruoyi
|
||||
*
|
||||
* @author microservices
|
||||
*/
|
||||
public class StrFormatter
|
||||
{
|
||||
|
|
|
@ -6,7 +6,7 @@ import java.math.RoundingMode;
|
|||
/**
|
||||
* 精确的浮点数运算
|
||||
*
|
||||
* @author ruoyi
|
||||
* @author microservices
|
||||
*/
|
||||
public class Arith {
|
||||
|
||||
|
|
|
@ -12,7 +12,7 @@ import java.util.Date;
|
|||
/**
|
||||
* 时间工具类
|
||||
*
|
||||
* @author ruoyi
|
||||
* @author microservices
|
||||
*/
|
||||
public class DateUtils extends org.apache.commons.lang3.time.DateUtils
|
||||
{
|
||||
|
|
|
@ -8,7 +8,7 @@ import java.io.StringWriter;
|
|||
/**
|
||||
* 错误信息处理类。
|
||||
*
|
||||
* @author ruoyi
|
||||
* @author microservices
|
||||
*/
|
||||
public class ExceptionUtil
|
||||
{
|
||||
|
|
|
@ -12,7 +12,7 @@ import java.util.Map;
|
|||
/**
|
||||
* Jwt工具类
|
||||
*
|
||||
* @author ruoyi
|
||||
* @author microservices
|
||||
*/
|
||||
public class JwtUtils
|
||||
{
|
||||
|
|
|
@ -17,7 +17,7 @@ import java.util.stream.Collectors;
|
|||
/**
|
||||
* 分页工具类
|
||||
*
|
||||
* @author ruoyi
|
||||
* @author microservices
|
||||
*/
|
||||
public class PageUtils extends PageHelper
|
||||
{
|
||||
|
|
|
@ -31,8 +31,8 @@ import java.util.Map;
|
|||
|
||||
/**
|
||||
* 客户端工具类
|
||||
*
|
||||
* @author ruoyi
|
||||
*
|
||||
* @author microservices
|
||||
*/
|
||||
public class ServletUtils
|
||||
{
|
||||
|
|
|
@ -9,8 +9,8 @@ import org.springframework.stereotype.Component;
|
|||
|
||||
/**
|
||||
* spring工具类 方便在非spring管理环境中获取bean
|
||||
*
|
||||
* @author ruoyi
|
||||
*
|
||||
* @author microservices
|
||||
*/
|
||||
@Component
|
||||
public final class SpringUtils implements BeanFactoryPostProcessor
|
||||
|
|
|
@ -10,8 +10,8 @@ import java.util.Map;
|
|||
|
||||
/**
|
||||
* 字符串工具类
|
||||
*
|
||||
* @author ruoyi
|
||||
*
|
||||
* @author microservices
|
||||
*/
|
||||
public class StringUtils extends org.apache.commons.lang3.StringUtils
|
||||
{
|
||||
|
|
|
@ -8,8 +8,8 @@ import java.util.regex.Pattern;
|
|||
|
||||
/**
|
||||
* Bean 工具类
|
||||
*
|
||||
* @author ruoyi
|
||||
*
|
||||
* @author microservices
|
||||
*/
|
||||
public class BeanUtils extends org.springframework.beans.BeanUtils
|
||||
{
|
||||
|
|
|
@ -7,8 +7,8 @@ import java.util.Set;
|
|||
|
||||
/**
|
||||
* bean对象属性验证
|
||||
*
|
||||
* @author ruoyi
|
||||
*
|
||||
* @author microservices
|
||||
*/
|
||||
public class BeanValidators
|
||||
{
|
||||
|
|
|
@ -10,14 +10,14 @@ import java.util.Objects;
|
|||
/**
|
||||
* 文件类型工具类
|
||||
*
|
||||
* @author ruoyi
|
||||
* @author microservices
|
||||
*/
|
||||
public class FileTypeUtils
|
||||
{
|
||||
/**
|
||||
* 获取文件类型
|
||||
* <p>
|
||||
* 例如: ruoyi.txt, 返回: txt
|
||||
* 例如: microservices.txt, 返回: txt
|
||||
*
|
||||
* @param file 文件名
|
||||
* @return 后缀(不含".")
|
||||
|
@ -34,7 +34,7 @@ public class FileTypeUtils
|
|||
/**
|
||||
* 获取文件类型
|
||||
* <p>
|
||||
* 例如: ruoyi.txt, 返回: txt
|
||||
* 例如: microservices.txt, 返回: txt
|
||||
*
|
||||
* @param fileName 文件名
|
||||
* @return 后缀(不含".")
|
||||
|
|
|
@ -11,8 +11,8 @@ import java.nio.charset.StandardCharsets;
|
|||
|
||||
/**
|
||||
* 文件处理工具类
|
||||
*
|
||||
* @author ruoyi
|
||||
*
|
||||
* @author microservices
|
||||
*/
|
||||
public class FileUtils
|
||||
{
|
||||
|
|
|
@ -13,7 +13,7 @@ import java.util.Arrays;
|
|||
/**
|
||||
* 图片处理工具类
|
||||
*
|
||||
* @author ruoyi
|
||||
* @author microservices
|
||||
*/
|
||||
public class ImageUtils
|
||||
{
|
||||
|
|
|
@ -2,8 +2,8 @@ package com.microservices.common.core.utils.file;
|
|||
|
||||
/**
|
||||
* 媒体类型工具类
|
||||
*
|
||||
* @author ruoyi
|
||||
*
|
||||
* @author microservices
|
||||
*/
|
||||
public class MimeTypeUtils
|
||||
{
|
||||
|
|
|
@ -4,8 +4,8 @@ import com.microservices.common.core.utils.StringUtils;
|
|||
|
||||
/**
|
||||
* 转义和反转义工具类
|
||||
*
|
||||
* @author ruoyi
|
||||
*
|
||||
* @author microservices
|
||||
*/
|
||||
public class EscapeUtil
|
||||
{
|
||||
|
|
|
@ -9,7 +9,7 @@ import java.util.regex.Pattern;
|
|||
/**
|
||||
* HTML过滤器,用于去除XSS漏洞隐患。
|
||||
*
|
||||
* @author ruoyi
|
||||
* @author microservices
|
||||
*/
|
||||
public final class HTMLFilter
|
||||
{
|
||||
|
|
|
@ -9,8 +9,8 @@ import java.net.UnknownHostException;
|
|||
|
||||
/**
|
||||
* 获取IP方法
|
||||
*
|
||||
* @author ruoyi
|
||||
*
|
||||
* @author microservices
|
||||
*/
|
||||
public class IpUtils
|
||||
{
|
||||
|
|
|
@ -2,8 +2,8 @@ package com.microservices.common.core.utils.poi;
|
|||
|
||||
/**
|
||||
* Excel数据格式处理适配器
|
||||
*
|
||||
* @author ruoyi
|
||||
*
|
||||
* @author microservices
|
||||
*/
|
||||
public interface ExcelHandlerAdapter
|
||||
{
|
||||
|
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue