Compare commits
2 Commits
1dce28afa3
...
f9356bd0b7
Author | SHA1 | Date |
---|---|---|
|
f9356bd0b7 | |
|
68ced79707 |
42
README.md
42
README.md
|
@ -1,26 +1,26 @@
|
|||
## 系统模块
|
||||
|
||||
~~~
|
||||
com.muyu
|
||||
├── muyu-ui // 前端框架 [80]
|
||||
├── muyu-gateway // 网关模块 [8080]
|
||||
├── muyu-auth // 认证中心 [9200]
|
||||
├── muyu-common // 通用模块
|
||||
│ └── muyu-common-core // 核心模块
|
||||
│ └── muyu-common-datascope // 权限范围
|
||||
│ └── muyu-common-datasource // 多数据源
|
||||
│ └── muyu-common-log // 日志记录
|
||||
│ └── muyu-common-redis // 缓存服务
|
||||
│ └── muyu-common-seata // 分布式事务
|
||||
│ └── muyu-common-security // 安全模块
|
||||
│ └── muyu-common-swagger // 系统接口
|
||||
│ └── muyu-common-system // 系统基础
|
||||
├── muyu-modules // 业务模块
|
||||
│ └── muyu-system // 系统模块 [9201]
|
||||
│ └── muyu-gen // 代码生成 [9202]
|
||||
│ └── muyu-job // 定时任务 [9203]
|
||||
│ └── muyu-file // 文件服务 [9300]
|
||||
├── muyu-visual // 图形化管理模块
|
||||
│ └── muyu-visual-monitor // 监控中心 [9100]
|
||||
com.couplet
|
||||
├── couplet-ui // 前端框架 [80]
|
||||
├── couplet-gateway // 网关模块 [8080]
|
||||
├── couplet-auth // 认证中心 [9200]
|
||||
├── couplet-common // 通用模块
|
||||
│ └── couplet-common-core // 核心模块
|
||||
│ └── couplet-common-datascope // 权限范围
|
||||
│ └── couplet-common-datasource // 多数据源
|
||||
│ └── couplet-common-log // 日志记录
|
||||
│ └── couplet-common-redis // 缓存服务
|
||||
│ └── couplet-common-seata // 分布式事务
|
||||
│ └── couplet-common-security // 安全模块
|
||||
│ └── couplet-common-swagger // 系统接口
|
||||
│ └── couplet-common-system // 系统基础
|
||||
├── couplet-modules // 业务模块
|
||||
│ └── couplet-system // 系统模块 [9201]
|
||||
│ └── couplet-gen // 代码生成 [9202]
|
||||
│ └── couplet-job // 定时任务 [9203]
|
||||
│ └── couplet-file // 文件服务 [9300]
|
||||
├── couplet-visual // 图形化管理模块
|
||||
│ └── couplet-visual-monitor // 监控中心 [9100]
|
||||
├──pom.xml // 公共依赖
|
||||
~~~
|
||||
|
|
|
@ -4,11 +4,11 @@ echo [<5B><>Ϣ] ʹ<><CAB9>Jar<61><72><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Auth<74><68><EFBFBD>̡<EFBFBD>
|
|||
echo.
|
||||
|
||||
cd %~dp0
|
||||
cd ../muyu-auth/target
|
||||
cd ../couplet-auth/target
|
||||
|
||||
set JAVA_OPTS=-Xms512m -Xmx1024m -XX:MetaspaceSize=128m -XX:MaxMetaspaceSize=512m
|
||||
|
||||
java -Dfile.encoding=utf-8 %JAVA_OPTS% -jar muyu-auth.jar
|
||||
java -Dfile.encoding=utf-8 %JAVA_OPTS% -jar couplet-auth.jar
|
||||
|
||||
cd bin
|
||||
pause
|
||||
|
|
|
@ -4,11 +4,11 @@ echo [<5B><>Ϣ] ʹ<><CAB9>Jar<61><72><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Gateway<61><79><EFBFBD>̡<EFBFBD>
|
|||
echo.
|
||||
|
||||
cd %~dp0
|
||||
cd ../muyu-gateway/target
|
||||
cd ../couplet-gateway/target
|
||||
|
||||
set JAVA_OPTS=-Xms512m -Xmx1024m -XX:MetaspaceSize=128m -XX:MaxMetaspaceSize=512m
|
||||
|
||||
java -Dfile.encoding=utf-8 %JAVA_OPTS% -jar muyu-gateway.jar
|
||||
java -Dfile.encoding=utf-8 %JAVA_OPTS% -jar couplet-gateway.jar
|
||||
|
||||
cd bin
|
||||
pause
|
||||
|
|
|
@ -4,11 +4,11 @@ echo [<5B><>Ϣ] ʹ<><CAB9>Jar<61><72><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Modules-File<6C><65><EFBFBD>̡<EFBFBD>
|
|||
echo.
|
||||
|
||||
cd %~dp0
|
||||
cd ../muyu-modules/muyu-file/target
|
||||
cd ../couplet-modules/couplet-file/target
|
||||
|
||||
set JAVA_OPTS=-Xms512m -Xmx1024m -XX:MetaspaceSize=128m -XX:MaxMetaspaceSize=512m
|
||||
|
||||
java -Dfile.encoding=utf-8 %JAVA_OPTS% -jar muyu-modules-file.jar
|
||||
java -Dfile.encoding=utf-8 %JAVA_OPTS% -jar couplet-modules-file.jar
|
||||
|
||||
cd bin
|
||||
pause
|
||||
|
|
|
@ -4,11 +4,11 @@ echo [<5B><>Ϣ] ʹ<><CAB9>Jar<61><72><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Modules-Gen<65><6E><EFBFBD>̡<EFBFBD>
|
|||
echo.
|
||||
|
||||
cd %~dp0
|
||||
cd ../muyu-modules/muyu-gen/target
|
||||
cd ../couplet-modules/couplet-gen/target
|
||||
|
||||
set JAVA_OPTS=-Xms512m -Xmx1024m -XX:MetaspaceSize=128m -XX:MaxMetaspaceSize=512m
|
||||
|
||||
java -Dfile.encoding=utf-8 %JAVA_OPTS% -jar muyu-modules-gen.jar
|
||||
java -Dfile.encoding=utf-8 %JAVA_OPTS% -jar couplet-modules-gen.jar
|
||||
|
||||
cd bin
|
||||
pause
|
||||
|
|
|
@ -4,11 +4,11 @@ echo [<5B><>Ϣ] ʹ<><CAB9>Jar<61><72><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Modules-Job<6F><62><EFBFBD>̡<EFBFBD>
|
|||
echo.
|
||||
|
||||
cd %~dp0
|
||||
cd ../muyu-modules/muyu-job/target
|
||||
cd ../couplet-modules/couplet-job/target
|
||||
|
||||
set JAVA_OPTS=-Xms512m -Xmx1024m -XX:MetaspaceSize=128m -XX:MaxMetaspaceSize=512m
|
||||
|
||||
java -Dfile.encoding=utf-8 %JAVA_OPTS% -jar muyu-modules-job.jar
|
||||
java -Dfile.encoding=utf-8 %JAVA_OPTS% -jar couplet-modules-job.jar
|
||||
|
||||
cd bin
|
||||
pause
|
||||
|
|
|
@ -4,11 +4,11 @@ echo [<5B><>Ϣ] ʹ<><CAB9>Jar<61><72><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Modules-System<65><6D><EFBFBD>̡<EFBFBD>
|
|||
echo.
|
||||
|
||||
cd %~dp0
|
||||
cd ../muyu-modules/muyu-system/target
|
||||
cd ../couplet-modules/couplet-system/target
|
||||
|
||||
set JAVA_OPTS=-Xms512m -Xmx1024m -XX:MetaspaceSize=128m -XX:MaxMetaspaceSize=512m
|
||||
|
||||
java -Dfile.encoding=utf-8 %JAVA_OPTS% -jar muyu-modules-system.jar
|
||||
java -Dfile.encoding=utf-8 %JAVA_OPTS% -jar couplet-modules-system.jar
|
||||
|
||||
cd bin
|
||||
pause
|
||||
|
|
|
@ -4,11 +4,11 @@ echo [<5B><>Ϣ] ʹ<><CAB9>Jar<61><72><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Monitor<6F><72><EFBFBD>̡<EFBFBD>
|
|||
echo.
|
||||
|
||||
cd %~dp0
|
||||
cd ../muyu-visual/muyu-monitor/target
|
||||
cd ../couplet-visual/couplet-monitor/target
|
||||
|
||||
set JAVA_OPTS=-Xms512m -Xmx1024m -XX:MetaspaceSize=128m -XX:MaxMetaspaceSize=512m
|
||||
|
||||
java -Dfile.encoding=utf-8 %JAVA_OPTS% -jar muyu-visual-monitor.jar
|
||||
java -Dfile.encoding=utf-8 %JAVA_OPTS% -jar couplet-visual-monitor.jar
|
||||
|
||||
cd bin
|
||||
pause
|
||||
|
|
|
@ -2,16 +2,16 @@
|
|||
xmlns="http://maven.apache.org/POM/4.0.0"
|
||||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
||||
<parent>
|
||||
<groupId>com.muyu</groupId>
|
||||
<artifactId>muyu</artifactId>
|
||||
<groupId>com.couplet</groupId>
|
||||
<artifactId>couplet</artifactId>
|
||||
<version>3.6.3</version>
|
||||
</parent>
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
|
||||
<artifactId>muyu-auth</artifactId>
|
||||
<artifactId>couplet-auth</artifactId>
|
||||
|
||||
<description>
|
||||
muyu-auth认证授权中心
|
||||
couplet-auth认证授权中心
|
||||
</description>
|
||||
|
||||
<dependencies>
|
||||
|
@ -48,8 +48,8 @@
|
|||
|
||||
<!-- MuYu Common Security-->
|
||||
<dependency>
|
||||
<groupId>com.muyu</groupId>
|
||||
<artifactId>muyu-common-security</artifactId>
|
||||
<groupId>com.couplet</groupId>
|
||||
<artifactId>couplet-common-security</artifactId>
|
||||
</dependency>
|
||||
|
||||
</dependencies>
|
|
@ -1,6 +1,6 @@
|
|||
package com.muyu.auth;
|
||||
package com.couplet.auth;
|
||||
|
||||
import com.muyu.common.security.annotation.EnableMyFeignClients;
|
||||
import com.couplet.common.security.annotation.EnableMyFeignClients;
|
||||
import org.springframework.boot.SpringApplication;
|
||||
import org.springframework.boot.autoconfigure.SpringBootApplication;
|
||||
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
|
||||
|
@ -8,12 +8,12 @@ import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
|
|||
/**
|
||||
* 认证授权中心
|
||||
*
|
||||
* @author muyu
|
||||
* @author couplet
|
||||
*/
|
||||
@EnableMyFeignClients
|
||||
@SpringBootApplication(exclude = {DataSourceAutoConfiguration.class})
|
||||
public class MuYuAuthApplication {
|
||||
public class CoupletAuthApplication {
|
||||
public static void main (String[] args) {
|
||||
SpringApplication.run(MuYuAuthApplication.class, args);
|
||||
SpringApplication.run(CoupletAuthApplication.class, args);
|
||||
}
|
||||
}
|
|
@ -1,15 +1,15 @@
|
|||
package com.muyu.auth.controller;
|
||||
package com.couplet.auth.controller;
|
||||
|
||||
import com.muyu.auth.form.LoginBody;
|
||||
import com.muyu.auth.form.RegisterBody;
|
||||
import com.muyu.auth.service.SysLoginService;
|
||||
import com.muyu.common.core.domain.Result;
|
||||
import com.muyu.common.core.utils.JwtUtils;
|
||||
import com.muyu.common.core.utils.StringUtils;
|
||||
import com.muyu.common.security.auth.AuthUtil;
|
||||
import com.muyu.common.security.service.TokenService;
|
||||
import com.muyu.common.security.utils.SecurityUtils;
|
||||
import com.muyu.common.system.domain.LoginUser;
|
||||
import com.couplet.auth.form.LoginBody;
|
||||
import com.couplet.auth.form.RegisterBody;
|
||||
import com.couplet.auth.service.SysLoginService;
|
||||
import com.couplet.common.core.domain.Result;
|
||||
import com.couplet.common.core.utils.JwtUtils;
|
||||
import com.couplet.common.core.utils.StringUtils;
|
||||
import com.couplet.common.security.auth.AuthUtil;
|
||||
import com.couplet.common.security.service.TokenService;
|
||||
import com.couplet.common.security.utils.SecurityUtils;
|
||||
import com.couplet.common.system.domain.LoginUser;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.DeleteMapping;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
|
@ -21,7 +21,7 @@ import javax.servlet.http.HttpServletRequest;
|
|||
/**
|
||||
* token 控制
|
||||
*
|
||||
* @author muyu
|
||||
* @author couplet
|
||||
*/
|
||||
@RestController
|
||||
public class TokenController {
|
|
@ -1,9 +1,9 @@
|
|||
package com.muyu.auth.form;
|
||||
package com.couplet.auth.form;
|
||||
|
||||
/**
|
||||
* 用户登录对象
|
||||
*
|
||||
* @author muyu
|
||||
* @author couplet
|
||||
*/
|
||||
public class LoginBody {
|
||||
/**
|
|
@ -1,9 +1,9 @@
|
|||
package com.muyu.auth.form;
|
||||
package com.couplet.auth.form;
|
||||
|
||||
/**
|
||||
* 用户注册对象
|
||||
*
|
||||
* @author muyu
|
||||
* @author couplet
|
||||
*/
|
||||
public class RegisterBody extends LoginBody {
|
||||
|
|
@ -1,27 +1,27 @@
|
|||
package com.muyu.auth.service;
|
||||
package com.couplet.auth.service;
|
||||
|
||||
import com.muyu.common.core.constant.CacheConstants;
|
||||
import com.muyu.common.core.constant.Constants;
|
||||
import com.muyu.common.core.constant.SecurityConstants;
|
||||
import com.muyu.common.core.constant.UserConstants;
|
||||
import com.muyu.common.core.domain.Result;
|
||||
import com.muyu.common.core.enums.UserStatus;
|
||||
import com.muyu.common.core.exception.ServiceException;
|
||||
import com.muyu.common.core.text.Convert;
|
||||
import com.muyu.common.core.utils.StringUtils;
|
||||
import com.muyu.common.core.utils.ip.IpUtils;
|
||||
import com.muyu.common.redis.service.RedisService;
|
||||
import com.muyu.common.security.utils.SecurityUtils;
|
||||
import com.muyu.common.system.remote.RemoteUserService;
|
||||
import com.muyu.common.system.domain.SysUser;
|
||||
import com.muyu.common.system.domain.LoginUser;
|
||||
import com.couplet.common.core.constant.CacheConstants;
|
||||
import com.couplet.common.core.constant.Constants;
|
||||
import com.couplet.common.core.constant.SecurityConstants;
|
||||
import com.couplet.common.core.constant.UserConstants;
|
||||
import com.couplet.common.core.domain.Result;
|
||||
import com.couplet.common.core.enums.UserStatus;
|
||||
import com.couplet.common.core.exception.ServiceException;
|
||||
import com.couplet.common.core.text.Convert;
|
||||
import com.couplet.common.core.utils.StringUtils;
|
||||
import com.couplet.common.core.utils.ip.IpUtils;
|
||||
import com.couplet.common.redis.service.RedisService;
|
||||
import com.couplet.common.security.utils.SecurityUtils;
|
||||
import com.couplet.common.system.remote.RemoteUserService;
|
||||
import com.couplet.common.system.domain.SysUser;
|
||||
import com.couplet.common.system.domain.LoginUser;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Component;
|
||||
|
||||
/**
|
||||
* 登录校验方法
|
||||
*
|
||||
* @author muyu
|
||||
* @author couplet
|
||||
*/
|
||||
@Component
|
||||
public class SysLoginService {
|
|
@ -1,11 +1,11 @@
|
|||
package com.muyu.auth.service;
|
||||
package com.couplet.auth.service;
|
||||
|
||||
import com.muyu.common.core.constant.CacheConstants;
|
||||
import com.muyu.common.core.constant.Constants;
|
||||
import com.muyu.common.core.exception.ServiceException;
|
||||
import com.muyu.common.redis.service.RedisService;
|
||||
import com.muyu.common.security.utils.SecurityUtils;
|
||||
import com.muyu.common.system.domain.SysUser;
|
||||
import com.couplet.common.core.constant.CacheConstants;
|
||||
import com.couplet.common.core.constant.Constants;
|
||||
import com.couplet.common.core.exception.ServiceException;
|
||||
import com.couplet.common.redis.service.RedisService;
|
||||
import com.couplet.common.security.utils.SecurityUtils;
|
||||
import com.couplet.common.system.domain.SysUser;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Component;
|
||||
|
||||
|
@ -14,7 +14,7 @@ import java.util.concurrent.TimeUnit;
|
|||
/**
|
||||
* 登录密码方法
|
||||
*
|
||||
* @author muyu
|
||||
* @author couplet
|
||||
*/
|
||||
@Component
|
||||
public class SysPasswordService {
|
|
@ -1,18 +1,18 @@
|
|||
package com.muyu.auth.service;
|
||||
package com.couplet.auth.service;
|
||||
|
||||
import com.muyu.common.core.constant.Constants;
|
||||
import com.muyu.common.core.constant.SecurityConstants;
|
||||
import com.muyu.common.core.utils.StringUtils;
|
||||
import com.muyu.common.core.utils.ip.IpUtils;
|
||||
import com.muyu.common.system.remote.RemoteLogService;
|
||||
import com.muyu.common.system.domain.SysLogininfor;
|
||||
import com.couplet.common.core.constant.Constants;
|
||||
import com.couplet.common.core.constant.SecurityConstants;
|
||||
import com.couplet.common.core.utils.StringUtils;
|
||||
import com.couplet.common.core.utils.ip.IpUtils;
|
||||
import com.couplet.common.system.remote.RemoteLogService;
|
||||
import com.couplet.common.system.domain.SysLogininfor;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Component;
|
||||
|
||||
/**
|
||||
* 记录日志方法
|
||||
*
|
||||
* @author muyu
|
||||
* @author couplet
|
||||
*/
|
||||
@Component
|
||||
public class SysRecordLogService {
|
|
@ -6,7 +6,7 @@ server:
|
|||
spring:
|
||||
application:
|
||||
# 应用名称
|
||||
name: muyu-auth
|
||||
name: couplet-auth
|
||||
profiles:
|
||||
# 环境配置
|
||||
active: dev
|
||||
|
@ -14,10 +14,12 @@ spring:
|
|||
nacos:
|
||||
discovery:
|
||||
# 服务注册地址
|
||||
server-addr: 127.0.0.1:8848
|
||||
server-addr: 121.89.211.230:8848
|
||||
namespace: 968741d4-299d-483c-8d30-ede2aff8cfd4
|
||||
config:
|
||||
# 配置中心地址
|
||||
server-addr: 127.0.0.1:8848
|
||||
server-addr: 121.89.211.230:8848
|
||||
namespace: 968741d4-299d-483c-8d30-ede2aff8cfd4
|
||||
# 配置文件格式
|
||||
file-extension: yml
|
||||
# 共享配置
|
|
@ -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/muyu-file"/>
|
||||
<property name="log.path" value="logs/couplet-auth"/>
|
||||
<!-- 日志输出格式 -->
|
||||
<property name="log.pattern" value="%d{HH:mm:ss.SSS} [%thread] %-5level %logger{20} - [%method,%line] - %msg%n"/>
|
||||
|
||||
|
@ -58,7 +58,7 @@
|
|||
</appender>
|
||||
|
||||
<!-- 系统模块日志级别控制 -->
|
||||
<logger name="com.muyu" level="info"/>
|
||||
<logger name="com.couplet" level="info"/>
|
||||
<!-- Spring日志级别控制 -->
|
||||
<logger name="org.springframework" level="warn"/>
|
||||
|
|
@ -3,16 +3,16 @@
|
|||
xmlns="http://maven.apache.org/POM/4.0.0"
|
||||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
||||
<parent>
|
||||
<groupId>com.muyu</groupId>
|
||||
<artifactId>muyu-common</artifactId>
|
||||
<groupId>com.couplet</groupId>
|
||||
<artifactId>couplet-common</artifactId>
|
||||
<version>3.6.3</version>
|
||||
</parent>
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
|
||||
<artifactId>muyu-common-core</artifactId>
|
||||
<artifactId>couplet-common-core</artifactId>
|
||||
|
||||
<description>
|
||||
muyu-common-core核心模块
|
||||
couplet-common-core核心模块
|
||||
</description>
|
||||
|
||||
<dependencies>
|
|
@ -1,6 +1,6 @@
|
|||
package com.muyu.common.core.annotation;
|
||||
package com.couplet.common.core.annotation;
|
||||
|
||||
import com.muyu.common.core.utils.poi.ExcelHandlerAdapter;
|
||||
import com.couplet.common.core.utils.poi.ExcelHandlerAdapter;
|
||||
import org.apache.poi.ss.usermodel.HorizontalAlignment;
|
||||
import org.apache.poi.ss.usermodel.IndexedColors;
|
||||
|
||||
|
@ -13,7 +13,7 @@ import java.math.BigDecimal;
|
|||
/**
|
||||
* 自定义导出Excel数据注解
|
||||
*
|
||||
* @author muyu
|
||||
* @author couplet
|
||||
*/
|
||||
@Retention(RetentionPolicy.RUNTIME)
|
||||
@Target(ElementType.FIELD)
|
|
@ -1,4 +1,4 @@
|
|||
package com.muyu.common.core.annotation;
|
||||
package com.couplet.common.core.annotation;
|
||||
|
||||
import java.lang.annotation.ElementType;
|
||||
import java.lang.annotation.Retention;
|
||||
|
@ -8,7 +8,7 @@ import java.lang.annotation.Target;
|
|||
/**
|
||||
* Excel注解集
|
||||
*
|
||||
* @author muyu
|
||||
* @author couplet
|
||||
*/
|
||||
@Target(ElementType.FIELD)
|
||||
@Retention(RetentionPolicy.RUNTIME)
|
|
@ -1,9 +1,9 @@
|
|||
package com.muyu.common.core.constant;
|
||||
package com.couplet.common.core.constant;
|
||||
|
||||
/**
|
||||
* 缓存常量信息
|
||||
*
|
||||
* @author muyu
|
||||
* @author couplet
|
||||
*/
|
||||
public class CacheConstants {
|
||||
/**
|
|
@ -1,9 +1,9 @@
|
|||
package com.muyu.common.core.constant;
|
||||
package com.couplet.common.core.constant;
|
||||
|
||||
/**
|
||||
* 通用常量信息
|
||||
*
|
||||
* @author muyu
|
||||
* @author couplet
|
||||
*/
|
||||
public class Constants {
|
||||
/**
|
||||
|
@ -119,16 +119,16 @@ public class Constants {
|
|||
/**
|
||||
* 自动识别json对象白名单配置(仅允许解析的包名,范围越小越安全)
|
||||
*/
|
||||
public static final String[] JSON_WHITELIST_STR = {"org.springframework", "com.muyu"};
|
||||
public static final String[] JSON_WHITELIST_STR = {"org.springframework", "com.couplet"};
|
||||
|
||||
/**
|
||||
* 定时任务白名单配置(仅允许访问的包名,如其他需要可以自行添加)
|
||||
*/
|
||||
public static final String[] JOB_WHITELIST_STR = {"com.muyu"};
|
||||
public static final String[] JOB_WHITELIST_STR = {"com.couplet"};
|
||||
|
||||
/**
|
||||
* 定时任务违规的字符
|
||||
*/
|
||||
public static final String[] JOB_ERROR_STR = {"java.net.URL", "javax.naming.InitialContext", "org.yaml.snakeyaml",
|
||||
"org.springframework", "org.apache", "com.muyu.common.core.utils.file"};
|
||||
"org.springframework", "org.apache", "com.couplet.common.core.utils.file"};
|
||||
}
|
|
@ -1,9 +1,9 @@
|
|||
package com.muyu.common.core.constant;
|
||||
package com.couplet.common.core.constant;
|
||||
|
||||
/**
|
||||
* 代码生成通用常量
|
||||
*
|
||||
* @author muyu
|
||||
* @author couplet
|
||||
*/
|
||||
public class GenConstants {
|
||||
/**
|
|
@ -1,9 +1,9 @@
|
|||
package com.muyu.common.core.constant;
|
||||
package com.couplet.common.core.constant;
|
||||
|
||||
/**
|
||||
* 返回状态码
|
||||
*
|
||||
* @author muyu
|
||||
* @author couplet
|
||||
*/
|
||||
public class HttpStatus {
|
||||
/**
|
|
@ -1,9 +1,9 @@
|
|||
package com.muyu.common.core.constant;
|
||||
package com.couplet.common.core.constant;
|
||||
|
||||
/**
|
||||
* 任务调度通用常量
|
||||
*
|
||||
* @author muyu
|
||||
* @author couplet
|
||||
*/
|
||||
public class ScheduleConstants {
|
||||
public static final String TASK_CLASS_NAME = "TASK_CLASS_NAME";
|
|
@ -1,9 +1,9 @@
|
|||
package com.muyu.common.core.constant;
|
||||
package com.couplet.common.core.constant;
|
||||
|
||||
/**
|
||||
* 权限相关通用常量
|
||||
*
|
||||
* @author muyu
|
||||
* @author couplet
|
||||
*/
|
||||
public class SecurityConstants {
|
||||
/**
|
|
@ -0,0 +1,23 @@
|
|||
package com.couplet.common.core.constant;
|
||||
|
||||
/**
|
||||
* 服务名称
|
||||
*
|
||||
* @author couplet
|
||||
*/
|
||||
public class ServiceNameConstants {
|
||||
/**
|
||||
* 认证服务的serviceid
|
||||
*/
|
||||
public static final String AUTH_SERVICE = "couplet-auth";
|
||||
|
||||
/**
|
||||
* 系统模块的serviceid
|
||||
*/
|
||||
public static final String SYSTEM_SERVICE = "couplet-system";
|
||||
|
||||
/**
|
||||
* 文件服务的serviceid
|
||||
*/
|
||||
public static final String FILE_SERVICE = "couplet-file";
|
||||
}
|
|
@ -1,9 +1,9 @@
|
|||
package com.muyu.common.core.constant;
|
||||
package com.couplet.common.core.constant;
|
||||
|
||||
/**
|
||||
* Token的Key常量
|
||||
*
|
||||
* @author muyu
|
||||
* @author couplet
|
||||
*/
|
||||
public class TokenConstants {
|
||||
/**
|
|
@ -1,9 +1,9 @@
|
|||
package com.muyu.common.core.constant;
|
||||
package com.couplet.common.core.constant;
|
||||
|
||||
/**
|
||||
* 用户常量信息
|
||||
*
|
||||
* @author muyu
|
||||
* @author couplet
|
||||
*/
|
||||
public class UserConstants {
|
||||
/**
|
|
@ -1,9 +1,9 @@
|
|||
package com.muyu.common.core.context;
|
||||
package com.couplet.common.core.context;
|
||||
|
||||
import com.alibaba.ttl.TransmittableThreadLocal;
|
||||
import com.muyu.common.core.constant.SecurityConstants;
|
||||
import com.muyu.common.core.text.Convert;
|
||||
import com.muyu.common.core.utils.StringUtils;
|
||||
import com.couplet.common.core.constant.SecurityConstants;
|
||||
import com.couplet.common.core.text.Convert;
|
||||
import com.couplet.common.core.utils.StringUtils;
|
||||
|
||||
import java.util.Map;
|
||||
import java.util.concurrent.ConcurrentHashMap;
|
||||
|
@ -12,7 +12,7 @@ import java.util.concurrent.ConcurrentHashMap;
|
|||
* 获取当前线程变量中的 用户id、用户名称、Token等信息
|
||||
* 注意: 必须在网关通过请求头的方法传入,同时在HeaderInterceptor拦截器设置值。 否则这里无法获取
|
||||
*
|
||||
* @author muyu
|
||||
* @author couplet
|
||||
*/
|
||||
public class SecurityContextHolder {
|
||||
private static final TransmittableThreadLocal<Map<String, Object>> THREAD_LOCAL = new TransmittableThreadLocal<>();
|
|
@ -1,7 +1,7 @@
|
|||
package com.muyu.common.core.domain;
|
||||
package com.couplet.common.core.domain;
|
||||
|
||||
import com.muyu.common.core.constant.Constants;
|
||||
import com.muyu.common.core.constant.HttpStatus;
|
||||
import com.couplet.common.core.constant.Constants;
|
||||
import com.couplet.common.core.constant.HttpStatus;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Builder;
|
||||
import lombok.Data;
|
||||
|
@ -12,7 +12,7 @@ import java.io.Serializable;
|
|||
/**
|
||||
* 响应信息主体
|
||||
*
|
||||
* @author muyu
|
||||
* @author couplet
|
||||
*/
|
||||
@Data
|
||||
@Builder
|
|
@ -1,9 +1,9 @@
|
|||
package com.muyu.common.core.enums;
|
||||
package com.couplet.common.core.enums;
|
||||
|
||||
/**
|
||||
* 用户状态
|
||||
*
|
||||
* @author muyu
|
||||
* @author couplet
|
||||
*/
|
||||
public enum UserStatus {
|
||||
OK("0", "正常"), DISABLE("1", "停用"), DELETED("2", "删除");
|
|
@ -1,9 +1,9 @@
|
|||
package com.muyu.common.core.exception;
|
||||
package com.couplet.common.core.exception;
|
||||
|
||||
/**
|
||||
* 验证码错误异常类
|
||||
*
|
||||
* @author muyu
|
||||
* @author couplet
|
||||
*/
|
||||
public class CaptchaException extends RuntimeException {
|
||||
private static final long serialVersionUID = 1L;
|
|
@ -1,9 +1,9 @@
|
|||
package com.muyu.common.core.exception;
|
||||
package com.couplet.common.core.exception;
|
||||
|
||||
/**
|
||||
* 检查异常
|
||||
*
|
||||
* @author muyu
|
||||
* @author couplet
|
||||
*/
|
||||
public class CheckedException extends RuntimeException {
|
||||
private static final long serialVersionUID = 1L;
|
|
@ -1,9 +1,9 @@
|
|||
package com.muyu.common.core.exception;
|
||||
package com.couplet.common.core.exception;
|
||||
|
||||
/**
|
||||
* 演示模式异常
|
||||
*
|
||||
* @author muyu
|
||||
* @author couplet
|
||||
*/
|
||||
public class DemoModeException extends RuntimeException {
|
||||
private static final long serialVersionUID = 1L;
|
|
@ -1,9 +1,9 @@
|
|||
package com.muyu.common.core.exception;
|
||||
package com.couplet.common.core.exception;
|
||||
|
||||
/**
|
||||
* 全局异常
|
||||
*
|
||||
* @author muyu
|
||||
* @author couplet
|
||||
*/
|
||||
public class GlobalException extends RuntimeException {
|
||||
private static final long serialVersionUID = 1L;
|
|
@ -1,9 +1,9 @@
|
|||
package com.muyu.common.core.exception;
|
||||
package com.couplet.common.core.exception;
|
||||
|
||||
/**
|
||||
* 内部认证异常
|
||||
*
|
||||
* @author muyu
|
||||
* @author couplet
|
||||
*/
|
||||
public class InnerAuthException extends RuntimeException {
|
||||
private static final long serialVersionUID = 1L;
|
|
@ -1,9 +1,9 @@
|
|||
package com.muyu.common.core.exception;
|
||||
package com.couplet.common.core.exception;
|
||||
|
||||
/**
|
||||
* 权限异常
|
||||
*
|
||||
* @author muyu
|
||||
* @author couplet
|
||||
*/
|
||||
public class PreAuthorizeException extends RuntimeException {
|
||||
private static final long serialVersionUID = 1L;
|
|
@ -1,9 +1,9 @@
|
|||
package com.muyu.common.core.exception;
|
||||
package com.couplet.common.core.exception;
|
||||
|
||||
/**
|
||||
* 业务异常
|
||||
*
|
||||
* @author muyu
|
||||
* @author couplet
|
||||
*/
|
||||
public final class ServiceException extends RuntimeException {
|
||||
private static final long serialVersionUID = 1L;
|
|
@ -1,9 +1,9 @@
|
|||
package com.muyu.common.core.exception;
|
||||
package com.couplet.common.core.exception;
|
||||
|
||||
/**
|
||||
* 工具类异常
|
||||
*
|
||||
* @author muyu
|
||||
* @author couplet
|
||||
*/
|
||||
public class UtilException extends RuntimeException {
|
||||
private static final long serialVersionUID = 8247610319171014183L;
|
|
@ -1,9 +1,9 @@
|
|||
package com.muyu.common.core.exception.auth;
|
||||
package com.couplet.common.core.exception.auth;
|
||||
|
||||
/**
|
||||
* 未能通过的登录认证异常
|
||||
*
|
||||
* @author muyu
|
||||
* @author couplet
|
||||
*/
|
||||
public class NotLoginException extends RuntimeException {
|
||||
private static final long serialVersionUID = 1L;
|
|
@ -1,11 +1,11 @@
|
|||
package com.muyu.common.core.exception.auth;
|
||||
package com.couplet.common.core.exception.auth;
|
||||
|
||||
import org.apache.commons.lang3.StringUtils;
|
||||
|
||||
/**
|
||||
* 未能通过的权限认证异常
|
||||
*
|
||||
* @author muyu
|
||||
* @author couplet
|
||||
*/
|
||||
public class NotPermissionException extends RuntimeException {
|
||||
private static final long serialVersionUID = 1L;
|
|
@ -1,11 +1,11 @@
|
|||
package com.muyu.common.core.exception.auth;
|
||||
package com.couplet.common.core.exception.auth;
|
||||
|
||||
import org.apache.commons.lang3.StringUtils;
|
||||
|
||||
/**
|
||||
* 未能通过的角色认证异常
|
||||
*
|
||||
* @author muyu
|
||||
* @author couplet
|
||||
*/
|
||||
public class NotRoleException extends RuntimeException {
|
||||
private static final long serialVersionUID = 1L;
|
|
@ -1,9 +1,9 @@
|
|||
package com.muyu.common.core.exception.base;
|
||||
package com.couplet.common.core.exception.base;
|
||||
|
||||
/**
|
||||
* 基础异常
|
||||
*
|
||||
* @author muyu
|
||||
* @author couplet
|
||||
*/
|
||||
public class BaseException extends RuntimeException {
|
||||
private static final long serialVersionUID = 1L;
|
|
@ -1,11 +1,11 @@
|
|||
package com.muyu.common.core.exception.file;
|
||||
package com.couplet.common.core.exception.file;
|
||||
|
||||
import com.muyu.common.core.exception.base.BaseException;
|
||||
import com.couplet.common.core.exception.base.BaseException;
|
||||
|
||||
/**
|
||||
* 文件信息异常类
|
||||
*
|
||||
* @author muyu
|
||||
* @author couplet
|
||||
*/
|
||||
public class FileException extends BaseException {
|
||||
private static final long serialVersionUID = 1L;
|
|
@ -1,9 +1,9 @@
|
|||
package com.muyu.common.core.exception.file;
|
||||
package com.couplet.common.core.exception.file;
|
||||
|
||||
/**
|
||||
* 文件名称超长限制异常类
|
||||
*
|
||||
* @author muyu
|
||||
* @author couplet
|
||||
*/
|
||||
public class FileNameLengthLimitExceededException extends FileException {
|
||||
private static final long serialVersionUID = 1L;
|
|
@ -1,9 +1,9 @@
|
|||
package com.muyu.common.core.exception.file;
|
||||
package com.couplet.common.core.exception.file;
|
||||
|
||||
/**
|
||||
* 文件名大小限制异常类
|
||||
*
|
||||
* @author muyu
|
||||
* @author couplet
|
||||
*/
|
||||
public class FileSizeLimitExceededException extends FileException {
|
||||
private static final long serialVersionUID = 1L;
|
|
@ -1,4 +1,4 @@
|
|||
package com.muyu.common.core.exception.file;
|
||||
package com.couplet.common.core.exception.file;
|
||||
|
||||
import java.io.PrintStream;
|
||||
import java.io.PrintWriter;
|
||||
|
@ -6,7 +6,7 @@ import java.io.PrintWriter;
|
|||
/**
|
||||
* 文件上传异常类
|
||||
*
|
||||
* @author muyu
|
||||
* @author couplet
|
||||
*/
|
||||
public class FileUploadException extends Exception {
|
||||
|
|
@ -1,11 +1,11 @@
|
|||
package com.muyu.common.core.exception.file;
|
||||
package com.couplet.common.core.exception.file;
|
||||
|
||||
import java.util.Arrays;
|
||||
|
||||
/**
|
||||
* 文件上传 误异常类
|
||||
*
|
||||
* @author muyu
|
||||
* @author couplet
|
||||
*/
|
||||
public class InvalidExtensionException extends FileUploadException {
|
||||
private static final long serialVersionUID = 1L;
|
|
@ -1,9 +1,9 @@
|
|||
package com.muyu.common.core.exception.job;
|
||||
package com.couplet.common.core.exception.job;
|
||||
|
||||
/**
|
||||
* 计划策略异常
|
||||
*
|
||||
* @author muyu
|
||||
* @author couplet
|
||||
*/
|
||||
public class TaskException extends Exception {
|
||||
private static final long serialVersionUID = 1L;
|
|
@ -1,9 +1,9 @@
|
|||
package com.muyu.common.core.exception.user;
|
||||
package com.couplet.common.core.exception.user;
|
||||
|
||||
/**
|
||||
* 验证码失效异常类
|
||||
*
|
||||
* @author muyu
|
||||
* @author couplet
|
||||
*/
|
||||
public class CaptchaExpireException extends UserException {
|
||||
private static final long serialVersionUID = 1L;
|
|
@ -1,11 +1,11 @@
|
|||
package com.muyu.common.core.exception.user;
|
||||
package com.couplet.common.core.exception.user;
|
||||
|
||||
import com.muyu.common.core.exception.base.BaseException;
|
||||
import com.couplet.common.core.exception.base.BaseException;
|
||||
|
||||
/**
|
||||
* 用户信息异常类
|
||||
*
|
||||
* @author muyu
|
||||
* @author couplet
|
||||
*/
|
||||
public class UserException extends BaseException {
|
||||
private static final long serialVersionUID = 1L;
|
|
@ -1,9 +1,9 @@
|
|||
package com.muyu.common.core.exception.user;
|
||||
package com.couplet.common.core.exception.user;
|
||||
|
||||
/**
|
||||
* 用户密码不正确或不符合规范异常类
|
||||
*
|
||||
* @author muyu
|
||||
* @author couplet
|
||||
*/
|
||||
public class UserPasswordNotMatchException extends UserException {
|
||||
private static final long serialVersionUID = 1L;
|
|
@ -1,6 +1,6 @@
|
|||
package com.muyu.common.core.text;
|
||||
package com.couplet.common.core.text;
|
||||
|
||||
import com.muyu.common.core.utils.StringUtils;
|
||||
import com.couplet.common.core.utils.StringUtils;
|
||||
|
||||
import java.nio.charset.Charset;
|
||||
import java.nio.charset.StandardCharsets;
|
||||
|
@ -8,7 +8,7 @@ import java.nio.charset.StandardCharsets;
|
|||
/**
|
||||
* 字符集工具类
|
||||
*
|
||||
* @author muyu
|
||||
* @author couplet
|
||||
*/
|
||||
public class CharsetKit {
|
||||
/**
|
|
@ -1,6 +1,6 @@
|
|||
package com.muyu.common.core.text;
|
||||
package com.couplet.common.core.text;
|
||||
|
||||
import com.muyu.common.core.utils.StringUtils;
|
||||
import com.couplet.common.core.utils.StringUtils;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
import java.math.BigInteger;
|
||||
|
@ -13,7 +13,7 @@ import java.util.Set;
|
|||
/**
|
||||
* 类型转换器
|
||||
*
|
||||
* @author muyu
|
||||
* @author couplet
|
||||
*/
|
||||
public class Convert {
|
||||
/**
|
|
@ -1,11 +1,11 @@
|
|||
package com.muyu.common.core.text;
|
||||
package com.couplet.common.core.text;
|
||||
|
||||
import com.muyu.common.core.utils.StringUtils;
|
||||
import com.couplet.common.core.utils.StringUtils;
|
||||
|
||||
/**
|
||||
* 字符串格式化
|
||||
*
|
||||
* @author muyu
|
||||
* @author couplet
|
||||
*/
|
||||
public class StrFormatter {
|
||||
public static final String EMPTY_JSON = "{}";
|
|
@ -1,4 +1,4 @@
|
|||
package com.muyu.common.core.utils;
|
||||
package com.couplet.common.core.utils;
|
||||
|
||||
import org.apache.commons.lang3.time.DateFormatUtils;
|
||||
|
||||
|
@ -11,7 +11,7 @@ import java.util.Date;
|
|||
/**
|
||||
* 时间工具类
|
||||
*
|
||||
* @author muyu
|
||||
* @author couplet
|
||||
*/
|
||||
public class DateUtils extends org.apache.commons.lang3.time.DateUtils {
|
||||
public static String YYYY = "yyyy";
|
|
@ -1,4 +1,4 @@
|
|||
package com.muyu.common.core.utils;
|
||||
package com.couplet.common.core.utils;
|
||||
|
||||
import org.apache.commons.lang3.exception.ExceptionUtils;
|
||||
|
||||
|
@ -8,7 +8,7 @@ import java.io.StringWriter;
|
|||
/**
|
||||
* 错误信息处理类。
|
||||
*
|
||||
* @author muyu
|
||||
* @author couplet
|
||||
*/
|
||||
public class ExceptionUtil {
|
||||
/**
|
|
@ -1,8 +1,8 @@
|
|||
package com.muyu.common.core.utils;
|
||||
package com.couplet.common.core.utils;
|
||||
|
||||
import com.muyu.common.core.constant.SecurityConstants;
|
||||
import com.muyu.common.core.constant.TokenConstants;
|
||||
import com.muyu.common.core.text.Convert;
|
||||
import com.couplet.common.core.constant.SecurityConstants;
|
||||
import com.couplet.common.core.constant.TokenConstants;
|
||||
import com.couplet.common.core.text.Convert;
|
||||
import io.jsonwebtoken.Claims;
|
||||
import io.jsonwebtoken.Jwts;
|
||||
import io.jsonwebtoken.SignatureAlgorithm;
|
||||
|
@ -12,7 +12,7 @@ import java.util.Map;
|
|||
/**
|
||||
* Jwt工具类
|
||||
*
|
||||
* @author muyu
|
||||
* @author couplet
|
||||
*/
|
||||
public class JwtUtils {
|
||||
public static String secret = TokenConstants.SECRET;
|
|
@ -1,14 +1,14 @@
|
|||
package com.muyu.common.core.utils;
|
||||
package com.couplet.common.core.utils;
|
||||
|
||||
import com.github.pagehelper.PageHelper;
|
||||
import com.muyu.common.core.utils.sql.SqlUtil;
|
||||
import com.muyu.common.core.web.page.PageDomain;
|
||||
import com.muyu.common.core.web.page.TableSupport;
|
||||
import com.couplet.common.core.utils.sql.SqlUtil;
|
||||
import com.couplet.common.core.web.page.PageDomain;
|
||||
import com.couplet.common.core.web.page.TableSupport;
|
||||
|
||||
/**
|
||||
* 分页工具类
|
||||
*
|
||||
* @author muyu
|
||||
* @author couplet
|
||||
*/
|
||||
public class PageUtils extends PageHelper {
|
||||
/**
|
|
@ -1,9 +1,9 @@
|
|||
package com.muyu.common.core.utils;
|
||||
package com.couplet.common.core.utils;
|
||||
|
||||
import com.alibaba.fastjson2.JSON;
|
||||
import com.muyu.common.core.constant.Constants;
|
||||
import com.muyu.common.core.domain.Result;
|
||||
import com.muyu.common.core.text.Convert;
|
||||
import com.couplet.common.core.constant.Constants;
|
||||
import com.couplet.common.core.domain.Result;
|
||||
import com.couplet.common.core.text.Convert;
|
||||
import org.springframework.core.io.buffer.DataBuffer;
|
||||
import org.springframework.http.HttpHeaders;
|
||||
import org.springframework.http.HttpStatus;
|
||||
|
@ -31,7 +31,7 @@ import java.util.Map;
|
|||
/**
|
||||
* 客户端工具类
|
||||
*
|
||||
* @author muyu
|
||||
* @author couplet
|
||||
*/
|
||||
public class ServletUtils {
|
||||
/**
|
|
@ -1,4 +1,4 @@
|
|||
package com.muyu.common.core.utils;
|
||||
package com.couplet.common.core.utils;
|
||||
|
||||
import org.springframework.aop.framework.AopContext;
|
||||
import org.springframework.beans.BeansException;
|
||||
|
@ -10,7 +10,7 @@ import org.springframework.stereotype.Component;
|
|||
/**
|
||||
* spring工具类 方便在非spring管理环境中获取bean
|
||||
*
|
||||
* @author muyu
|
||||
* @author couplet
|
||||
*/
|
||||
@Component
|
||||
public final class SpringUtils implements BeanFactoryPostProcessor {
|
|
@ -1,7 +1,7 @@
|
|||
package com.muyu.common.core.utils;
|
||||
package com.couplet.common.core.utils;
|
||||
|
||||
import com.muyu.common.core.constant.Constants;
|
||||
import com.muyu.common.core.text.StrFormatter;
|
||||
import com.couplet.common.core.constant.Constants;
|
||||
import com.couplet.common.core.text.StrFormatter;
|
||||
import org.springframework.util.AntPathMatcher;
|
||||
|
||||
import java.util.Collection;
|
||||
|
@ -11,7 +11,7 @@ import java.util.Map;
|
|||
/**
|
||||
* 字符串工具类
|
||||
*
|
||||
* @author muyu
|
||||
* @author couplet
|
||||
*/
|
||||
public class StringUtils extends org.apache.commons.lang3.StringUtils {
|
||||
/**
|
|
@ -1,4 +1,4 @@
|
|||
package com.muyu.common.core.utils.bean;
|
||||
package com.couplet.common.core.utils.bean;
|
||||
|
||||
import java.lang.reflect.Method;
|
||||
import java.util.ArrayList;
|
||||
|
@ -9,7 +9,7 @@ import java.util.regex.Pattern;
|
|||
/**
|
||||
* Bean 工具类
|
||||
*
|
||||
* @author muyu
|
||||
* @author couplet
|
||||
*/
|
||||
public class BeanUtils extends org.springframework.beans.BeanUtils {
|
||||
/**
|
|
@ -1,4 +1,4 @@
|
|||
package com.muyu.common.core.utils.bean;
|
||||
package com.couplet.common.core.utils.bean;
|
||||
|
||||
import javax.validation.ConstraintViolation;
|
||||
import javax.validation.ConstraintViolationException;
|
||||
|
@ -8,7 +8,7 @@ import java.util.Set;
|
|||
/**
|
||||
* bean对象属性验证
|
||||
*
|
||||
* @author muyu
|
||||
* @author couplet
|
||||
*/
|
||||
public class BeanValidators {
|
||||
public static void validateWithException (Validator validator, Object object, Class<?>... groups)
|
|
@ -1,4 +1,4 @@
|
|||
package com.muyu.common.core.utils.file;
|
||||
package com.couplet.common.core.utils.file;
|
||||
|
||||
import org.apache.commons.io.FilenameUtils;
|
||||
import org.apache.commons.lang3.StringUtils;
|
||||
|
@ -10,13 +10,13 @@ import java.util.Objects;
|
|||
/**
|
||||
* 文件类型工具类
|
||||
*
|
||||
* @author muyu
|
||||
* @author couplet
|
||||
*/
|
||||
public class FileTypeUtils {
|
||||
/**
|
||||
* 获取文件类型
|
||||
* <p>
|
||||
* 例如: muyu.txt, 返回: txt
|
||||
* 例如: couplet.txt, 返回: txt
|
||||
*
|
||||
* @param file 文件名
|
||||
*
|
||||
|
@ -32,7 +32,7 @@ public class FileTypeUtils {
|
|||
/**
|
||||
* 获取文件类型
|
||||
* <p>
|
||||
* 例如: muyu.txt, 返回: txt
|
||||
* 例如: couplet.txt, 返回: txt
|
||||
*
|
||||
* @param fileName 文件名
|
||||
*
|
|
@ -1,6 +1,6 @@
|
|||
package com.muyu.common.core.utils.file;
|
||||
package com.couplet.common.core.utils.file;
|
||||
|
||||
import com.muyu.common.core.utils.StringUtils;
|
||||
import com.couplet.common.core.utils.StringUtils;
|
||||
import org.apache.commons.lang3.ArrayUtils;
|
||||
|
||||
import javax.servlet.http.HttpServletRequest;
|
||||
|
@ -12,7 +12,7 @@ import java.nio.charset.StandardCharsets;
|
|||
/**
|
||||
* 文件处理工具类
|
||||
*
|
||||
* @author muyu
|
||||
* @author couplet
|
||||
*/
|
||||
public class FileUtils {
|
||||
/**
|
|
@ -1,4 +1,4 @@
|
|||
package com.muyu.common.core.utils.file;
|
||||
package com.couplet.common.core.utils.file;
|
||||
|
||||
import org.apache.poi.util.IOUtils;
|
||||
import org.slf4j.Logger;
|
||||
|
@ -13,7 +13,7 @@ import java.util.Arrays;
|
|||
/**
|
||||
* 图片处理工具类
|
||||
*
|
||||
* @author muyu
|
||||
* @author couplet
|
||||
*/
|
||||
public class ImageUtils {
|
||||
private static final Logger log = LoggerFactory.getLogger(ImageUtils.class);
|
|
@ -1,9 +1,9 @@
|
|||
package com.muyu.common.core.utils.file;
|
||||
package com.couplet.common.core.utils.file;
|
||||
|
||||
/**
|
||||
* 媒体类型工具类
|
||||
*
|
||||
* @author muyu
|
||||
* @author couplet
|
||||
*/
|
||||
public class MimeTypeUtils {
|
||||
public static final String IMAGE_PNG = "image/png";
|
|
@ -1,11 +1,11 @@
|
|||
package com.muyu.common.core.utils.html;
|
||||
package com.couplet.common.core.utils.html;
|
||||
|
||||
import com.muyu.common.core.utils.StringUtils;
|
||||
import com.couplet.common.core.utils.StringUtils;
|
||||
|
||||
/**
|
||||
* 转义和反转义工具类
|
||||
*
|
||||
* @author muyu
|
||||
* @author couplet
|
||||
*/
|
||||
public class EscapeUtil {
|
||||
public static final String RE_HTML_MARK = "(<[^<]*?>)|(<[\\s]*?/[^<]*?>)|(<[^<]*?/[\\s]*?>)";
|
|
@ -1,4 +1,4 @@
|
|||
package com.muyu.common.core.utils.html;
|
||||
package com.couplet.common.core.utils.html;
|
||||
|
||||
import java.util.*;
|
||||
import java.util.concurrent.ConcurrentHashMap;
|
||||
|
@ -9,7 +9,7 @@ import java.util.regex.Pattern;
|
|||
/**
|
||||
* HTML过滤器,用于去除XSS漏洞隐患。
|
||||
*
|
||||
* @author muyu
|
||||
* @author couplet
|
||||
*/
|
||||
public final class HTMLFilter {
|
||||
/**
|
|
@ -1,7 +1,7 @@
|
|||
package com.muyu.common.core.utils.ip;
|
||||
package com.couplet.common.core.utils.ip;
|
||||
|
||||
import com.muyu.common.core.utils.ServletUtils;
|
||||
import com.muyu.common.core.utils.StringUtils;
|
||||
import com.couplet.common.core.utils.ServletUtils;
|
||||
import com.couplet.common.core.utils.StringUtils;
|
||||
|
||||
import javax.servlet.http.HttpServletRequest;
|
||||
import java.net.InetAddress;
|
||||
|
@ -10,7 +10,7 @@ import java.net.UnknownHostException;
|
|||
/**
|
||||
* 获取IP方法
|
||||
*
|
||||
* @author muyu
|
||||
* @author couplet
|
||||
*/
|
||||
public class IpUtils {
|
||||
public final static String REGX_0_255 = "(25[0-5]|2[0-4]\\d|1\\d{2}|[1-9]\\d|\\d)";
|
|
@ -1,4 +1,4 @@
|
|||
package com.muyu.common.core.utils.poi;
|
||||
package com.couplet.common.core.utils.poi;
|
||||
|
||||
import org.apache.poi.ss.usermodel.Cell;
|
||||
import org.apache.poi.ss.usermodel.Workbook;
|
||||
|
@ -6,7 +6,7 @@ import org.apache.poi.ss.usermodel.Workbook;
|
|||
/**
|
||||
* Excel数据格式处理适配器
|
||||
*
|
||||
* @author muyu
|
||||
* @author couplet
|
||||
*/
|
||||
public interface ExcelHandlerAdapter {
|
||||
/**
|
|
@ -1,16 +1,16 @@
|
|||
package com.muyu.common.core.utils.poi;
|
||||
package com.couplet.common.core.utils.poi;
|
||||
|
||||
import com.muyu.common.core.annotation.Excel;
|
||||
import com.muyu.common.core.annotation.Excel.ColumnType;
|
||||
import com.muyu.common.core.annotation.Excel.Type;
|
||||
import com.muyu.common.core.annotation.Excels;
|
||||
import com.muyu.common.core.exception.UtilException;
|
||||
import com.muyu.common.core.text.Convert;
|
||||
import com.muyu.common.core.utils.DateUtils;
|
||||
import com.muyu.common.core.utils.StringUtils;
|
||||
import com.muyu.common.core.utils.file.FileTypeUtils;
|
||||
import com.muyu.common.core.utils.file.ImageUtils;
|
||||
import com.muyu.common.core.utils.reflect.ReflectUtils;
|
||||
import com.couplet.common.core.annotation.Excel;
|
||||
import com.couplet.common.core.annotation.Excel.ColumnType;
|
||||
import com.couplet.common.core.annotation.Excel.Type;
|
||||
import com.couplet.common.core.annotation.Excels;
|
||||
import com.couplet.common.core.exception.UtilException;
|
||||
import com.couplet.common.core.text.Convert;
|
||||
import com.couplet.common.core.utils.DateUtils;
|
||||
import com.couplet.common.core.utils.StringUtils;
|
||||
import com.couplet.common.core.utils.file.FileTypeUtils;
|
||||
import com.couplet.common.core.utils.file.ImageUtils;
|
||||
import com.couplet.common.core.utils.reflect.ReflectUtils;
|
||||
import org.apache.commons.lang3.ArrayUtils;
|
||||
import org.apache.commons.lang3.RegExUtils;
|
||||
import org.apache.commons.lang3.reflect.FieldUtils;
|
||||
|
@ -40,7 +40,7 @@ import java.util.stream.Collectors;
|
|||
/**
|
||||
* Excel相关处理
|
||||
*
|
||||
* @author muyu
|
||||
* @author couplet
|
||||
*/
|
||||
public class ExcelUtil<T> {
|
||||
public static final String FORMULA_REGEX_STR = "=|-|\\+|@";
|
|
@ -1,7 +1,7 @@
|
|||
package com.muyu.common.core.utils.reflect;
|
||||
package com.couplet.common.core.utils.reflect;
|
||||
|
||||
import com.muyu.common.core.text.Convert;
|
||||
import com.muyu.common.core.utils.DateUtils;
|
||||
import com.couplet.common.core.text.Convert;
|
||||
import com.couplet.common.core.utils.DateUtils;
|
||||
import org.apache.commons.lang3.StringUtils;
|
||||
import org.apache.commons.lang3.Validate;
|
||||
import org.apache.poi.ss.usermodel.DateUtil;
|
||||
|
@ -14,7 +14,7 @@ import java.util.Date;
|
|||
/**
|
||||
* 反射工具类. 提供调用getter/setter方法, 访问私有变量, 调用私有方法, 获取泛型类型Class, 被AOP过的真实类等工具函数.
|
||||
*
|
||||
* @author muyu
|
||||
* @author couplet
|
||||
*/
|
||||
@SuppressWarnings("rawtypes")
|
||||
public class ReflectUtils {
|
|
@ -1,9 +1,9 @@
|
|||
package com.muyu.common.core.utils.sign;
|
||||
package com.couplet.common.core.utils.sign;
|
||||
|
||||
/**
|
||||
* Base64工具类
|
||||
*
|
||||
* @author muyu
|
||||
* @author couplet
|
||||
*/
|
||||
public final class Base64 {
|
||||
static private final int BASELENGTH = 128;
|
|
@ -1,12 +1,12 @@
|
|||
package com.muyu.common.core.utils.sql;
|
||||
package com.couplet.common.core.utils.sql;
|
||||
|
||||
import com.muyu.common.core.exception.UtilException;
|
||||
import com.muyu.common.core.utils.StringUtils;
|
||||
import com.couplet.common.core.exception.UtilException;
|
||||
import com.couplet.common.core.utils.StringUtils;
|
||||
|
||||
/**
|
||||
* sql操作工具类
|
||||
*
|
||||
* @author muyu
|
||||
* @author couplet
|
||||
*/
|
||||
public class SqlUtil {
|
||||
/**
|
|
@ -1,9 +1,9 @@
|
|||
package com.muyu.common.core.utils.uuid;
|
||||
package com.couplet.common.core.utils.uuid;
|
||||
|
||||
/**
|
||||
* ID生成器工具类
|
||||
*
|
||||
* @author muyu
|
||||
* @author couplet
|
||||
*/
|
||||
public class IdUtils {
|
||||
/**
|
|
@ -1,12 +1,12 @@
|
|||
package com.muyu.common.core.utils.uuid;
|
||||
package com.couplet.common.core.utils.uuid;
|
||||
|
||||
import com.muyu.common.core.utils.DateUtils;
|
||||
import com.muyu.common.core.utils.StringUtils;
|
||||
import com.couplet.common.core.utils.DateUtils;
|
||||
import com.couplet.common.core.utils.StringUtils;
|
||||
|
||||
import java.util.concurrent.atomic.AtomicInteger;
|
||||
|
||||
/**
|
||||
* @author muyu 序列生成类
|
||||
* @author couplet 序列生成类
|
||||
*/
|
||||
public class Seq {
|
||||
// 通用序列类型
|
|
@ -1,6 +1,6 @@
|
|||
package com.muyu.common.core.utils.uuid;
|
||||
package com.couplet.common.core.utils.uuid;
|
||||
|
||||
import com.muyu.common.core.exception.UtilException;
|
||||
import com.couplet.common.core.exception.UtilException;
|
||||
|
||||
import java.security.MessageDigest;
|
||||
import java.security.NoSuchAlgorithmException;
|
||||
|
@ -11,7 +11,7 @@ import java.util.concurrent.ThreadLocalRandom;
|
|||
/**
|
||||
* 提供通用唯一识别码(universally unique identifier)(UUID)实现
|
||||
*
|
||||
* @author muyu
|
||||
* @author couplet
|
||||
*/
|
||||
public final class UUID implements java.io.Serializable, Comparable<UUID> {
|
||||
private static final long serialVersionUID = -1185015143654744140L;
|
|
@ -1,10 +1,10 @@
|
|||
package com.muyu.common.core.web.controller;
|
||||
package com.couplet.common.core.web.controller;
|
||||
|
||||
import com.github.pagehelper.PageInfo;
|
||||
import com.muyu.common.core.utils.DateUtils;
|
||||
import com.muyu.common.core.utils.PageUtils;
|
||||
import com.muyu.common.core.domain.Result;
|
||||
import com.muyu.common.core.web.page.TableDataInfo;
|
||||
import com.couplet.common.core.utils.DateUtils;
|
||||
import com.couplet.common.core.utils.PageUtils;
|
||||
import com.couplet.common.core.domain.Result;
|
||||
import com.couplet.common.core.web.page.TableDataInfo;
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
import org.springframework.web.bind.WebDataBinder;
|
||||
|
@ -17,7 +17,7 @@ import java.util.List;
|
|||
/**
|
||||
* web层通用数据处理
|
||||
*
|
||||
* @author muyu
|
||||
* @author couplet
|
||||
*/
|
||||
public class BaseController {
|
||||
protected final Logger logger = LoggerFactory.getLogger(this.getClass());
|
|
@ -1,4 +1,4 @@
|
|||
package com.muyu.common.core.web.domain;
|
||||
package com.couplet.common.core.web.domain;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.TableField;
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
|
@ -17,7 +17,7 @@ import java.util.Map;
|
|||
/**
|
||||
* Entity基类
|
||||
*
|
||||
* @author muyu
|
||||
* @author couplet
|
||||
*/
|
||||
@Data
|
||||
@SuperBuilder
|
|
@ -1,4 +1,4 @@
|
|||
package com.muyu.common.core.web.domain;
|
||||
package com.couplet.common.core.web.domain;
|
||||
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Data;
|
||||
|
@ -12,7 +12,7 @@ import java.util.List;
|
|||
/**
|
||||
* Tree基类
|
||||
*
|
||||
* @author muyu
|
||||
* @author couplet
|
||||
*/
|
||||
@Data
|
||||
@SuperBuilder
|
|
@ -1,11 +1,11 @@
|
|||
package com.muyu.common.core.web.page;
|
||||
package com.couplet.common.core.web.page;
|
||||
|
||||
import com.muyu.common.core.utils.StringUtils;
|
||||
import com.couplet.common.core.utils.StringUtils;
|
||||
|
||||
/**
|
||||
* 分页数据
|
||||
*
|
||||
* @author muyu
|
||||
* @author couplet
|
||||
*/
|
||||
public class PageDomain {
|
||||
/**
|
|
@ -1,4 +1,4 @@
|
|||
package com.muyu.common.core.web.page;
|
||||
package com.couplet.common.core.web.page;
|
||||
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Builder;
|
||||
|
@ -12,7 +12,7 @@ import java.util.List;
|
|||
/**
|
||||
* 表格分页数据对象
|
||||
*
|
||||
* @author muyu
|
||||
* @author couplet
|
||||
*/
|
||||
|
||||
@Data
|
|
@ -1,12 +1,12 @@
|
|||
package com.muyu.common.core.web.page;
|
||||
package com.couplet.common.core.web.page;
|
||||
|
||||
import com.muyu.common.core.text.Convert;
|
||||
import com.muyu.common.core.utils.ServletUtils;
|
||||
import com.couplet.common.core.text.Convert;
|
||||
import com.couplet.common.core.utils.ServletUtils;
|
||||
|
||||
/**
|
||||
* 表格数据处理
|
||||
*
|
||||
* @author muyu
|
||||
* @author couplet
|
||||
*/
|
||||
public class TableSupport {
|
||||
/**
|
|
@ -1,4 +1,4 @@
|
|||
package com.muyu.common.core.xss;
|
||||
package com.couplet.common.core.xss;
|
||||
|
||||
import javax.validation.Constraint;
|
||||
import javax.validation.Payload;
|
||||
|
@ -10,7 +10,7 @@ import java.lang.annotation.Target;
|
|||
/**
|
||||
* 自定义xss校验注解
|
||||
*
|
||||
* @author muyu
|
||||
* @author couplet
|
||||
*/
|
||||
@Retention(RetentionPolicy.RUNTIME)
|
||||
@Target(value = {ElementType.METHOD, ElementType.FIELD, ElementType.CONSTRUCTOR, ElementType.PARAMETER})
|
|
@ -1,6 +1,6 @@
|
|||
package com.muyu.common.core.xss;
|
||||
package com.couplet.common.core.xss;
|
||||
|
||||
import com.muyu.common.core.utils.StringUtils;
|
||||
import com.couplet.common.core.utils.StringUtils;
|
||||
|
||||
import javax.validation.ConstraintValidator;
|
||||
import javax.validation.ConstraintValidatorContext;
|
||||
|
@ -10,7 +10,7 @@ import java.util.regex.Pattern;
|
|||
/**
|
||||
* 自定义xss校验注解实现
|
||||
*
|
||||
* @author muyu
|
||||
* @author couplet
|
||||
*/
|
||||
public class XssValidator implements ConstraintValidator<Xss, String> {
|
||||
private static final String HTML_PATTERN = "<(\\S*?)[^>]*>.*?|<.*? />";
|
|
@ -0,0 +1 @@
|
|||
com.couplet.common.core.utils.SpringUtils
|
|
@ -3,24 +3,24 @@
|
|||
xmlns="http://maven.apache.org/POM/4.0.0"
|
||||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
||||
<parent>
|
||||
<groupId>com.muyu</groupId>
|
||||
<artifactId>muyu-common</artifactId>
|
||||
<groupId>com.couplet</groupId>
|
||||
<artifactId>couplet-common</artifactId>
|
||||
<version>3.6.3</version>
|
||||
</parent>
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
|
||||
<artifactId>muyu-common-log</artifactId>
|
||||
<artifactId>couplet-common-datascope</artifactId>
|
||||
|
||||
<description>
|
||||
muyu-common-log日志记录
|
||||
couplet-common-datascope权限范围
|
||||
</description>
|
||||
|
||||
<dependencies>
|
||||
|
||||
<!-- MuYu Common Security -->
|
||||
<dependency>
|
||||
<groupId>com.muyu</groupId>
|
||||
<artifactId>muyu-common-security</artifactId>
|
||||
<groupId>com.couplet</groupId>
|
||||
<artifactId>couplet-common-security</artifactId>
|
||||
</dependency>
|
||||
|
||||
</dependencies>
|
|
@ -1,11 +1,11 @@
|
|||
package com.muyu.common.datascope.annotation;
|
||||
package com.couplet.common.datascope.annotation;
|
||||
|
||||
import java.lang.annotation.*;
|
||||
|
||||
/**
|
||||
* 数据权限过滤注解
|
||||
*
|
||||
* @author muyu
|
||||
* @author couplet
|
||||
*/
|
||||
@Target(ElementType.METHOD)
|
||||
@Retention(RetentionPolicy.RUNTIME)
|
|
@ -1,14 +1,14 @@
|
|||
package com.muyu.common.datascope.aspect;
|
||||
package com.couplet.common.datascope.aspect;
|
||||
|
||||
import com.muyu.common.core.context.SecurityContextHolder;
|
||||
import com.muyu.common.core.text.Convert;
|
||||
import com.muyu.common.core.utils.StringUtils;
|
||||
import com.muyu.common.core.web.domain.BaseEntity;
|
||||
import com.muyu.common.datascope.annotation.DataScope;
|
||||
import com.muyu.common.security.utils.SecurityUtils;
|
||||
import com.muyu.common.system.domain.SysRole;
|
||||
import com.muyu.common.system.domain.SysUser;
|
||||
import com.muyu.common.system.domain.LoginUser;
|
||||
import com.couplet.common.core.context.SecurityContextHolder;
|
||||
import com.couplet.common.core.text.Convert;
|
||||
import com.couplet.common.core.utils.StringUtils;
|
||||
import com.couplet.common.core.web.domain.BaseEntity;
|
||||
import com.couplet.common.datascope.annotation.DataScope;
|
||||
import com.couplet.common.security.utils.SecurityUtils;
|
||||
import com.couplet.common.system.domain.SysRole;
|
||||
import com.couplet.common.system.domain.SysUser;
|
||||
import com.couplet.common.system.domain.LoginUser;
|
||||
import org.aspectj.lang.JoinPoint;
|
||||
import org.aspectj.lang.annotation.Aspect;
|
||||
import org.aspectj.lang.annotation.Before;
|
||||
|
@ -20,7 +20,7 @@ import java.util.List;
|
|||
/**
|
||||
* 数据过滤处理
|
||||
*
|
||||
* @author muyu
|
||||
* @author couplet
|
||||
*/
|
||||
@Aspect
|
||||
@Component
|
|
@ -0,0 +1 @@
|
|||
com.couplet.common.datascope.aspect.DataScopeAspect
|
|
@ -3,16 +3,16 @@
|
|||
xmlns="http://maven.apache.org/POM/4.0.0"
|
||||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
||||
<parent>
|
||||
<groupId>com.muyu</groupId>
|
||||
<artifactId>muyu-common</artifactId>
|
||||
<groupId>com.couplet</groupId>
|
||||
<artifactId>couplet-common</artifactId>
|
||||
<version>3.6.3</version>
|
||||
</parent>
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
|
||||
<artifactId>muyu-common-datasource</artifactId>
|
||||
<artifactId>couplet-common-datasource</artifactId>
|
||||
|
||||
<description>
|
||||
muyu-common-datasource多数据源
|
||||
couplet-common-datasource多数据源
|
||||
</description>
|
||||
|
||||
<dependencies>
|
|
@ -1,4 +1,4 @@
|
|||
package com.muyu.common.datasource.annotation;
|
||||
package com.couplet.common.datasource.annotation;
|
||||
|
||||
import com.baomidou.dynamic.datasource.annotation.DS;
|
||||
|
||||
|
@ -7,7 +7,7 @@ import java.lang.annotation.*;
|
|||
/**
|
||||
* 主库数据源
|
||||
*
|
||||
* @author muyu
|
||||
* @author couplet
|
||||
*/
|
||||
@Target({ElementType.TYPE, ElementType.METHOD})
|
||||
@Retention(RetentionPolicy.RUNTIME)
|
|
@ -1,4 +1,4 @@
|
|||
package com.muyu.common.datasource.annotation;
|
||||
package com.couplet.common.datasource.annotation;
|
||||
|
||||
import com.baomidou.dynamic.datasource.annotation.DS;
|
||||
|
||||
|
@ -7,7 +7,7 @@ import java.lang.annotation.*;
|
|||
/**
|
||||
* 从库数据源
|
||||
*
|
||||
* @author muyu
|
||||
* @author couplet
|
||||
*/
|
||||
@Target({ElementType.TYPE, ElementType.METHOD})
|
||||
@Retention(RetentionPolicy.RUNTIME)
|
|
@ -3,24 +3,24 @@
|
|||
xmlns="http://maven.apache.org/POM/4.0.0"
|
||||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
||||
<parent>
|
||||
<groupId>com.muyu</groupId>
|
||||
<artifactId>muyu-common</artifactId>
|
||||
<groupId>com.couplet</groupId>
|
||||
<artifactId>couplet-common</artifactId>
|
||||
<version>3.6.3</version>
|
||||
</parent>
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
|
||||
<artifactId>muyu-common-datascope</artifactId>
|
||||
<artifactId>couplet-common-log</artifactId>
|
||||
|
||||
<description>
|
||||
muyu-common-datascope权限范围
|
||||
couplet-common-log日志记录
|
||||
</description>
|
||||
|
||||
<dependencies>
|
||||
|
||||
<!-- MuYu Common Security -->
|
||||
<dependency>
|
||||
<groupId>com.muyu</groupId>
|
||||
<artifactId>muyu-common-security</artifactId>
|
||||
<groupId>com.couplet</groupId>
|
||||
<artifactId>couplet-common-security</artifactId>
|
||||
</dependency>
|
||||
|
||||
</dependencies>
|
|
@ -1,14 +1,14 @@
|
|||
package com.muyu.common.log.annotation;
|
||||
package com.couplet.common.log.annotation;
|
||||
|
||||
import com.muyu.common.log.enums.BusinessType;
|
||||
import com.muyu.common.log.enums.OperatorType;
|
||||
import com.couplet.common.log.enums.BusinessType;
|
||||
import com.couplet.common.log.enums.OperatorType;
|
||||
|
||||
import java.lang.annotation.*;
|
||||
|
||||
/**
|
||||
* 自定义操作日志记录注解
|
||||
*
|
||||
* @author muyu
|
||||
* @author couplet
|
||||
*/
|
||||
@Target({ElementType.PARAMETER, ElementType.METHOD})
|
||||
@Retention(RetentionPolicy.RUNTIME)
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue