Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
int
Pig
提交
bea8d4e6
P
Pig
项目概览
int
/
Pig
上一次同步 大约 1 年
通知
8
Star
1
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
P
Pig
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
bea8d4e6
编写于
5月 13, 2020
作者:
N
NAVER
浏览文件
操作
浏览文件
下载
差异文件
Merge remote-tracking branch 'origin/dev' into dev
上级
809a91a0
b5829c4e
变更
42
显示空白变更内容
内联
并排
Showing
42 changed file
with
90 addition
and
94 deletion
+90
-94
pig-auth/src/main/java/com/pig4cloud/pig/auth/config/AuthorizationServerConfig.java
.../pig4cloud/pig/auth/config/AuthorizationServerConfig.java
+2
-2
pig-auth/src/main/java/com/pig4cloud/pig/auth/endpoint/PigTokenEndpoint.java
...ava/com/pig4cloud/pig/auth/endpoint/PigTokenEndpoint.java
+2
-2
pig-codegen/src/main/java/com/pig4cloud/pig/codegen/controller/GenDsConfController.java
...pig4cloud/pig/codegen/controller/GenDsConfController.java
+2
-2
pig-codegen/src/main/java/com/pig4cloud/pig/codegen/controller/GenFormConfController.java
...g4cloud/pig/codegen/controller/GenFormConfController.java
+2
-2
pig-codegen/src/main/java/com/pig4cloud/pig/codegen/controller/GeneratorController.java
...pig4cloud/pig/codegen/controller/GeneratorController.java
+2
-2
pig-codegen/src/main/java/com/pig4cloud/pig/codegen/service/impl/GenFormConfServiceImpl.java
...loud/pig/codegen/service/impl/GenFormConfServiceImpl.java
+2
-2
pig-codegen/src/main/java/com/pig4cloud/pig/codegen/service/impl/GeneratorServiceImpl.java
...4cloud/pig/codegen/service/impl/GeneratorServiceImpl.java
+2
-2
pig-codegen/src/main/resources/template/Controller.java.vm
pig-codegen/src/main/resources/template/Controller.java.vm
+2
-2
pig-common/pig-common-core/src/main/java/com/pig4cloud/pig/common/core/config/RedisTemplateConfig.java
...pig4cloud/pig/common/core/config/RedisTemplateConfig.java
+2
-2
pig-common/pig-common-core/src/main/java/com/pig4cloud/pig/common/core/constant/enums/DictTypeEnum.java
...ig4cloud/pig/common/core/constant/enums/DictTypeEnum.java
+4
-4
pig-common/pig-common-core/src/main/java/com/pig4cloud/pig/common/core/constant/enums/LoginTypeEnum.java
...g4cloud/pig/common/core/constant/enums/LoginTypeEnum.java
+2
-2
pig-common/pig-common-core/src/main/java/com/pig4cloud/pig/common/core/constant/enums/MenuTypeEnum.java
...ig4cloud/pig/common/core/constant/enums/MenuTypeEnum.java
+4
-4
pig-common/pig-common-datasource/src/main/java/com/pig4cloud/pig/common/datasource/DynamicDataSourceAutoConfiguration.java
...common/datasource/DynamicDataSourceAutoConfiguration.java
+2
-2
pig-common/pig-common-log/src/main/java/com/pig4cloud/pig/common/log/LogAutoConfiguration.java
...va/com/pig4cloud/pig/common/log/LogAutoConfiguration.java
+2
-2
pig-common/pig-common-log/src/main/java/com/pig4cloud/pig/common/log/event/SysLogListener.java
...va/com/pig4cloud/pig/common/log/event/SysLogListener.java
+2
-2
pig-common/pig-common-security/src/main/java/com/pig4cloud/pig/common/security/component/PigAccessDeniedHandler.java
...pig/common/security/component/PigAccessDeniedHandler.java
+2
-2
pig-common/pig-common-security/src/main/java/com/pig4cloud/pig/common/security/component/PigSecurityInnerAspect.java
...pig/common/security/component/PigSecurityInnerAspect.java
+2
-2
pig-common/pig-common-security/src/main/java/com/pig4cloud/pig/common/security/component/ResourceAuthExceptionEntryPoint.java
...n/security/component/ResourceAuthExceptionEntryPoint.java
+2
-2
pig-common/pig-common-security/src/main/java/com/pig4cloud/pig/common/security/feign/PigFeignClientConfiguration.java
...ig/common/security/feign/PigFeignClientConfiguration.java
+0
-2
pig-common/pig-common-security/src/main/java/com/pig4cloud/pig/common/security/handler/FormAuthenticationFailureHandler.java
...on/security/handler/FormAuthenticationFailureHandler.java
+2
-2
pig-common/pig-common-security/src/main/java/com/pig4cloud/pig/common/security/service/PigUserDetailsServiceImpl.java
...ig/common/security/service/PigUserDetailsServiceImpl.java
+2
-2
pig-gateway/src/main/java/com/pig4cloud/pig/gateway/config/RouterFunctionConfiguration.java
...cloud/pig/gateway/config/RouterFunctionConfiguration.java
+3
-7
pig-gateway/src/main/java/com/pig4cloud/pig/gateway/config/SwaggerProviderConfiguration.java
...loud/pig/gateway/config/SwaggerProviderConfiguration.java
+2
-2
pig-gateway/src/main/java/com/pig4cloud/pig/gateway/filter/ValidateCodeGatewayFilter.java
...g4cloud/pig/gateway/filter/ValidateCodeGatewayFilter.java
+4
-2
pig-gateway/src/main/java/com/pig4cloud/pig/gateway/handler/ImageCodeHandler.java
...a/com/pig4cloud/pig/gateway/handler/ImageCodeHandler.java
+2
-2
pig-gateway/src/main/java/com/pig4cloud/pig/gateway/handler/SwaggerResourceHandler.java
...pig4cloud/pig/gateway/handler/SwaggerResourceHandler.java
+2
-2
pig-upms/pig-upms-biz/src/main/java/com/pig4cloud/pig/admin/controller/DeptController.java
...va/com/pig4cloud/pig/admin/controller/DeptController.java
+2
-2
pig-upms/pig-upms-biz/src/main/java/com/pig4cloud/pig/admin/controller/DictController.java
...va/com/pig4cloud/pig/admin/controller/DictController.java
+2
-2
pig-upms/pig-upms-biz/src/main/java/com/pig4cloud/pig/admin/controller/LogController.java
...ava/com/pig4cloud/pig/admin/controller/LogController.java
+2
-2
pig-upms/pig-upms-biz/src/main/java/com/pig4cloud/pig/admin/controller/MenuController.java
...va/com/pig4cloud/pig/admin/controller/MenuController.java
+2
-2
pig-upms/pig-upms-biz/src/main/java/com/pig4cloud/pig/admin/controller/OauthClientDetailsController.java
...ud/pig/admin/controller/OauthClientDetailsController.java
+2
-2
pig-upms/pig-upms-biz/src/main/java/com/pig4cloud/pig/admin/controller/RoleController.java
...va/com/pig4cloud/pig/admin/controller/RoleController.java
+2
-2
pig-upms/pig-upms-biz/src/main/java/com/pig4cloud/pig/admin/controller/TokenController.java
...a/com/pig4cloud/pig/admin/controller/TokenController.java
+2
-2
pig-upms/pig-upms-biz/src/main/java/com/pig4cloud/pig/admin/controller/UserController.java
...va/com/pig4cloud/pig/admin/controller/UserController.java
+2
-2
pig-upms/pig-upms-biz/src/main/java/com/pig4cloud/pig/admin/service/impl/SysDeptRelationServiceImpl.java
...ud/pig/admin/service/impl/SysDeptRelationServiceImpl.java
+2
-2
pig-upms/pig-upms-biz/src/main/java/com/pig4cloud/pig/admin/service/impl/SysDeptServiceImpl.java
.../pig4cloud/pig/admin/service/impl/SysDeptServiceImpl.java
+2
-2
pig-upms/pig-upms-biz/src/main/java/com/pig4cloud/pig/admin/service/impl/SysDictItemServiceImpl.java
...4cloud/pig/admin/service/impl/SysDictItemServiceImpl.java
+2
-2
pig-upms/pig-upms-biz/src/main/java/com/pig4cloud/pig/admin/service/impl/SysDictServiceImpl.java
.../pig4cloud/pig/admin/service/impl/SysDictServiceImpl.java
+2
-2
pig-upms/pig-upms-biz/src/main/java/com/pig4cloud/pig/admin/service/impl/SysMenuServiceImpl.java
.../pig4cloud/pig/admin/service/impl/SysMenuServiceImpl.java
+2
-2
pig-upms/pig-upms-biz/src/main/java/com/pig4cloud/pig/admin/service/impl/SysRoleMenuServiceImpl.java
...4cloud/pig/admin/service/impl/SysRoleMenuServiceImpl.java
+2
-2
pig-upms/pig-upms-biz/src/main/java/com/pig4cloud/pig/admin/service/impl/SysRoleServiceImpl.java
.../pig4cloud/pig/admin/service/impl/SysRoleServiceImpl.java
+3
-3
pig-upms/pig-upms-biz/src/main/java/com/pig4cloud/pig/admin/service/impl/SysUserServiceImpl.java
.../pig4cloud/pig/admin/service/impl/SysUserServiceImpl.java
+2
-2
未找到文件。
pig-auth/src/main/java/com/pig4cloud/pig/auth/config/AuthorizationServerConfig.java
浏览文件 @
bea8d4e6
...
...
@@ -23,7 +23,7 @@ import com.pig4cloud.pig.common.core.constant.SecurityConstants;
import
com.pig4cloud.pig.common.security.component.PigWebResponseExceptionTranslator
;
import
com.pig4cloud.pig.common.security.service.PigClientDetailsService
;
import
com.pig4cloud.pig.common.security.service.PigUser
;
import
lombok.
All
ArgsConstructor
;
import
lombok.
Required
ArgsConstructor
;
import
lombok.SneakyThrows
;
import
org.springframework.context.annotation.Bean
;
import
org.springframework.context.annotation.Configuration
;
...
...
@@ -51,7 +51,7 @@ import java.util.Map;
* 认证服务器配置
*/
@Configuration
@
All
ArgsConstructor
@
Required
ArgsConstructor
@EnableAuthorizationServer
public
class
AuthorizationServerConfig
extends
AuthorizationServerConfigurerAdapter
{
private
final
DataSource
dataSource
;
...
...
pig-auth/src/main/java/com/pig4cloud/pig/auth/endpoint/PigTokenEndpoint.java
浏览文件 @
bea8d4e6
...
...
@@ -26,7 +26,7 @@ import com.pig4cloud.pig.common.core.constant.CommonConstants;
import
com.pig4cloud.pig.common.core.util.R
;
import
com.pig4cloud.pig.common.security.annotation.Inner
;
import
com.pig4cloud.pig.common.security.util.SecurityUtils
;
import
lombok.
All
ArgsConstructor
;
import
lombok.
Required
ArgsConstructor
;
import
lombok.extern.slf4j.Slf4j
;
import
org.springframework.cache.CacheManager
;
import
org.springframework.data.redis.core.ConvertingCursor
;
...
...
@@ -61,7 +61,7 @@ import java.util.Map;
*/
@Slf4j
@RestController
@
All
ArgsConstructor
@
Required
ArgsConstructor
@RequestMapping
(
"/token"
)
public
class
PigTokenEndpoint
{
private
final
ClientDetailsService
clientDetailsService
;
...
...
pig-codegen/src/main/java/com/pig4cloud/pig/codegen/controller/GenDsConfController.java
浏览文件 @
bea8d4e6
...
...
@@ -24,7 +24,7 @@ import com.pig4cloud.pig.codegen.service.GenDatasourceConfService;
import
com.pig4cloud.pig.common.core.util.R
;
import
com.pig4cloud.pig.common.log.annotation.SysLog
;
import
io.swagger.annotations.Api
;
import
lombok.
All
ArgsConstructor
;
import
lombok.
Required
ArgsConstructor
;
import
org.springframework.web.bind.annotation.*
;
...
...
@@ -35,7 +35,7 @@ import org.springframework.web.bind.annotation.*;
* @date 2019-03-31 16:00:20
*/
@RestController
@
All
ArgsConstructor
@
Required
ArgsConstructor
@RequestMapping
(
"/dsconf"
)
@Api
(
value
=
"dsconf"
,
tags
=
"数据源管理模块"
)
public
class
GenDsConfController
{
...
...
pig-codegen/src/main/java/com/pig4cloud/pig/codegen/controller/GenFormConfController.java
浏览文件 @
bea8d4e6
...
...
@@ -26,7 +26,7 @@ import com.pig4cloud.pig.common.core.util.R;
import
com.pig4cloud.pig.common.log.annotation.SysLog
;
import
io.swagger.annotations.Api
;
import
io.swagger.annotations.ApiOperation
;
import
lombok.
All
ArgsConstructor
;
import
lombok.
Required
ArgsConstructor
;
import
org.springframework.security.access.prepost.PreAuthorize
;
import
org.springframework.web.bind.annotation.*
;
...
...
@@ -38,7 +38,7 @@ import org.springframework.web.bind.annotation.*;
* @date 2019-08-12 15:55:35
*/
@RestController
@
All
ArgsConstructor
@
Required
ArgsConstructor
@RequestMapping
(
"/form"
)
@Api
(
value
=
"form"
,
tags
=
"表单管理"
)
public
class
GenFormConfController
{
...
...
pig-codegen/src/main/java/com/pig4cloud/pig/codegen/controller/GeneratorController.java
浏览文件 @
bea8d4e6
...
...
@@ -24,7 +24,7 @@ import com.pig4cloud.pig.codegen.entity.GenConfig;
import
com.pig4cloud.pig.codegen.service.GeneratorService
;
import
com.pig4cloud.pig.common.core.util.R
;
import
io.swagger.annotations.Api
;
import
lombok.
All
ArgsConstructor
;
import
lombok.
Required
ArgsConstructor
;
import
lombok.SneakyThrows
;
import
org.springframework.http.HttpHeaders
;
import
org.springframework.web.bind.annotation.*
;
...
...
@@ -38,7 +38,7 @@ import javax.servlet.http.HttpServletResponse;
* @date 2018-07-30
*/
@RestController
@
All
ArgsConstructor
@
Required
ArgsConstructor
@RequestMapping
(
"/generator"
)
@Api
(
value
=
"generator"
,
tags
=
"代码生成模块"
)
public
class
GeneratorController
{
...
...
pig-codegen/src/main/java/com/pig4cloud/pig/codegen/service/impl/GenFormConfServiceImpl.java
浏览文件 @
bea8d4e6
...
...
@@ -27,7 +27,7 @@ import com.pig4cloud.pig.codegen.mapper.GenFormConfMapper;
import
com.pig4cloud.pig.codegen.mapper.GeneratorMapper
;
import
com.pig4cloud.pig.codegen.service.GenFormConfService
;
import
com.pig4cloud.pig.codegen.util.CodeGenUtils
;
import
lombok.
All
ArgsConstructor
;
import
lombok.
Required
ArgsConstructor
;
import
lombok.SneakyThrows
;
import
org.apache.commons.lang.StringUtils
;
import
org.apache.velocity.Template
;
...
...
@@ -49,7 +49,7 @@ import java.util.Properties;
* @date 2019-08-12 15:55:35
*/
@Service
@
All
ArgsConstructor
@
Required
ArgsConstructor
public
class
GenFormConfServiceImpl
extends
ServiceImpl
<
GenFormConfMapper
,
GenFormConf
>
implements
GenFormConfService
{
private
final
GeneratorMapper
generatorMapper
;
...
...
pig-codegen/src/main/java/com/pig4cloud/pig/codegen/service/impl/GeneratorServiceImpl.java
浏览文件 @
bea8d4e6
...
...
@@ -32,7 +32,7 @@ import com.pig4cloud.pig.codegen.mapper.GenFormConfMapper;
import
com.pig4cloud.pig.codegen.mapper.GeneratorMapper
;
import
com.pig4cloud.pig.codegen.service.GeneratorService
;
import
com.pig4cloud.pig.codegen.util.CodeGenUtils
;
import
lombok.
All
ArgsConstructor
;
import
lombok.
Required
ArgsConstructor
;
import
org.springframework.stereotype.Service
;
import
java.io.ByteArrayOutputStream
;
...
...
@@ -47,7 +47,7 @@ import java.util.zip.ZipOutputStream;
* 代码生成器
*/
@Service
@
All
ArgsConstructor
@
Required
ArgsConstructor
public
class
GeneratorServiceImpl
implements
GeneratorService
{
private
final
GeneratorMapper
generatorMapper
;
private
final
GenFormConfMapper
genFormConfMapper
;
...
...
pig-codegen/src/main/resources/template/Controller.java.vm
浏览文件 @
bea8d4e6
...
...
@@ -26,7 +26,7 @@ import ${package}.${moduleName}.service.${className}Service;
import org.springframework.security.access.prepost.PreAuthorize;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.
All
ArgsConstructor;
import lombok.
Required
ArgsConstructor;
import org.springframework.web.bind.annotation.*;
...
...
@@ -37,7 +37,7 @@ import org.springframework.web.bind.annotation.*;
* @date
${
datetime
}
*/
@RestController
@
All
ArgsConstructor
@
Required
ArgsConstructor
@RequestMapping("/
${
pathName
}
" )
@Api(value = "
${
pathName
}
", tags = "
${
comments
}
管理")
public class
${
className
}
Controller
{
...
...
pig-common/pig-common-core/src/main/java/com/pig4cloud/pig/common/core/config/RedisTemplateConfig.java
浏览文件 @
bea8d4e6
...
...
@@ -18,7 +18,7 @@
package
com.pig4cloud.pig.common.core.config
;
import
lombok.
All
ArgsConstructor
;
import
lombok.
Required
ArgsConstructor
;
import
org.springframework.boot.autoconfigure.AutoConfigureBefore
;
import
org.springframework.boot.autoconfigure.data.redis.RedisAutoConfiguration
;
import
org.springframework.cache.annotation.EnableCaching
;
...
...
@@ -36,7 +36,7 @@ import org.springframework.data.redis.serializer.StringRedisSerializer;
*/
@EnableCaching
@Configuration
@
All
ArgsConstructor
@
Required
ArgsConstructor
@AutoConfigureBefore
(
RedisAutoConfiguration
.
class
)
public
class
RedisTemplateConfig
{
private
final
RedisConnectionFactory
factory
;
...
...
pig-common/pig-common-core/src/main/java/com/pig4cloud/pig/common/core/constant/enums/DictTypeEnum.java
浏览文件 @
bea8d4e6
...
...
@@ -18,8 +18,8 @@
package
com.pig4cloud.pig.common.core.constant.enums
;
import
lombok.AllArgsConstructor
;
import
lombok.Getter
;
import
lombok.RequiredArgsConstructor
;
/**
* @author lengleng
...
...
@@ -28,7 +28,7 @@ import lombok.Getter;
* 字典类型
*/
@Getter
@
All
ArgsConstructor
@
Required
ArgsConstructor
public
enum
DictTypeEnum
{
/**
* 字典类型-系统内置(不可修改)
...
...
@@ -43,9 +43,9 @@ public enum DictTypeEnum {
/**
* 类型
*/
private
String
type
;
private
final
String
type
;
/**
* 描述
*/
private
String
description
;
private
final
String
description
;
}
pig-common/pig-common-core/src/main/java/com/pig4cloud/pig/common/core/constant/enums/LoginTypeEnum.java
浏览文件 @
bea8d4e6
...
...
@@ -18,8 +18,8 @@
package
com.pig4cloud.pig.common.core.constant.enums
;
import
lombok.AllArgsConstructor
;
import
lombok.Getter
;
import
lombok.RequiredArgsConstructor
;
/**
* @author lengleng
...
...
@@ -27,7 +27,7 @@ import lombok.Getter;
* 社交登录类型
*/
@Getter
@
All
ArgsConstructor
@
Required
ArgsConstructor
public
enum
LoginTypeEnum
{
/**
* 账号密码登录
...
...
pig-common/pig-common-core/src/main/java/com/pig4cloud/pig/common/core/constant/enums/MenuTypeEnum.java
浏览文件 @
bea8d4e6
...
...
@@ -18,8 +18,8 @@
package
com.pig4cloud.pig.common.core.constant.enums
;
import
lombok.AllArgsConstructor
;
import
lombok.Getter
;
import
lombok.RequiredArgsConstructor
;
/**
* @author lengleng
...
...
@@ -28,7 +28,7 @@ import lombok.Getter;
* 菜单类型
*/
@Getter
@
All
ArgsConstructor
@
Required
ArgsConstructor
public
enum
MenuTypeEnum
{
/**
...
...
@@ -49,9 +49,9 @@ public enum MenuTypeEnum {
/**
* 类型
*/
private
String
type
;
private
final
String
type
;
/**
* 描述
*/
private
String
description
;
private
final
String
description
;
}
pig-common/pig-common-datasource/src/main/java/com/pig4cloud/pig/common/datasource/DynamicDataSourceAutoConfiguration.java
浏览文件 @
bea8d4e6
...
...
@@ -23,7 +23,7 @@ import com.baomidou.dynamic.datasource.provider.DynamicDataSourceProvider;
import
com.pig4cloud.pig.common.datasource.config.DataSourceProperties
;
import
com.pig4cloud.pig.common.datasource.config.JdbcDynamicDataSourceProvider
;
import
com.pig4cloud.pig.common.datasource.config.LastParamDsProcessor
;
import
lombok.
All
ArgsConstructor
;
import
lombok.
Required
ArgsConstructor
;
import
org.jasypt.encryption.StringEncryptor
;
import
org.springframework.boot.autoconfigure.AutoConfigureAfter
;
import
org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration
;
...
...
@@ -37,7 +37,7 @@ import org.springframework.context.annotation.Configuration;
* <p>
* 动态数据源切换配置
*/
@
All
ArgsConstructor
@
Required
ArgsConstructor
@Configuration
(
proxyBeanMethods
=
false
)
@AutoConfigureAfter
(
DataSourceAutoConfiguration
.
class
)
@EnableConfigurationProperties
(
DataSourceProperties
.
class
)
...
...
pig-common/pig-common-log/src/main/java/com/pig4cloud/pig/common/log/LogAutoConfiguration.java
浏览文件 @
bea8d4e6
...
...
@@ -21,7 +21,7 @@ package com.pig4cloud.pig.common.log;
import
com.pig4cloud.pig.admin.api.feign.RemoteLogService
;
import
com.pig4cloud.pig.common.log.aspect.SysLogAspect
;
import
com.pig4cloud.pig.common.log.event.SysLogListener
;
import
lombok.
All
ArgsConstructor
;
import
lombok.
Required
ArgsConstructor
;
import
org.springframework.boot.autoconfigure.condition.ConditionalOnWebApplication
;
import
org.springframework.context.annotation.Bean
;
import
org.springframework.context.annotation.Configuration
;
...
...
@@ -33,7 +33,7 @@ import org.springframework.scheduling.annotation.EnableAsync;
* 日志自动配置
*/
@EnableAsync
@
All
ArgsConstructor
@
Required
ArgsConstructor
@ConditionalOnWebApplication
@Configuration
(
proxyBeanMethods
=
false
)
public
class
LogAutoConfiguration
{
...
...
pig-common/pig-common-log/src/main/java/com/pig4cloud/pig/common/log/event/SysLogListener.java
浏览文件 @
bea8d4e6
...
...
@@ -21,7 +21,7 @@ package com.pig4cloud.pig.common.log.event;
import
com.pig4cloud.pig.admin.api.entity.SysLog
;
import
com.pig4cloud.pig.admin.api.feign.RemoteLogService
;
import
com.pig4cloud.pig.common.core.constant.SecurityConstants
;
import
lombok.
All
ArgsConstructor
;
import
lombok.
Required
ArgsConstructor
;
import
lombok.extern.slf4j.Slf4j
;
import
org.springframework.context.event.EventListener
;
import
org.springframework.core.annotation.Order
;
...
...
@@ -33,7 +33,7 @@ import org.springframework.scheduling.annotation.Async;
* 异步监听日志事件
*/
@Slf4j
@
All
ArgsConstructor
@
Required
ArgsConstructor
public
class
SysLogListener
{
private
final
RemoteLogService
remoteLogService
;
...
...
pig-common/pig-common-security/src/main/java/com/pig4cloud/pig/common/security/component/PigAccessDeniedHandler.java
浏览文件 @
bea8d4e6
...
...
@@ -28,7 +28,7 @@ import com.fasterxml.jackson.databind.ObjectMapper;
import
com.pig4cloud.pig.common.core.constant.CommonConstants
;
import
com.pig4cloud.pig.common.core.exception.PigDeniedException
;
import
com.pig4cloud.pig.common.core.util.R
;
import
lombok.
All
ArgsConstructor
;
import
lombok.
Required
ArgsConstructor
;
import
lombok.SneakyThrows
;
import
lombok.extern.slf4j.Slf4j
;
import
org.springframework.security.access.AccessDeniedException
;
...
...
@@ -46,7 +46,7 @@ import java.io.PrintWriter;
*/
@Slf4j
@Component
@
All
ArgsConstructor
@
Required
ArgsConstructor
public
class
PigAccessDeniedHandler
extends
OAuth2AccessDeniedHandler
{
private
final
ObjectMapper
objectMapper
;
...
...
pig-common/pig-common-security/src/main/java/com/pig4cloud/pig/common/security/component/PigSecurityInnerAspect.java
浏览文件 @
bea8d4e6
...
...
@@ -21,7 +21,7 @@ package com.pig4cloud.pig.common.security.component;
import
cn.hutool.core.util.StrUtil
;
import
com.pig4cloud.pig.common.core.constant.SecurityConstants
;
import
com.pig4cloud.pig.common.security.annotation.Inner
;
import
lombok.
All
ArgsConstructor
;
import
lombok.
Required
ArgsConstructor
;
import
lombok.SneakyThrows
;
import
lombok.extern.slf4j.Slf4j
;
import
org.aspectj.lang.ProceedingJoinPoint
;
...
...
@@ -40,7 +40,7 @@ import javax.servlet.http.HttpServletRequest;
*/
@Slf4j
@Aspect
@
All
ArgsConstructor
@
Required
ArgsConstructor
public
class
PigSecurityInnerAspect
implements
Ordered
{
private
final
HttpServletRequest
request
;
...
...
pig-common/pig-common-security/src/main/java/com/pig4cloud/pig/common/security/component/ResourceAuthExceptionEntryPoint.java
浏览文件 @
bea8d4e6
...
...
@@ -22,7 +22,7 @@ import cn.hutool.http.HttpStatus;
import
com.fasterxml.jackson.databind.ObjectMapper
;
import
com.pig4cloud.pig.common.core.constant.CommonConstants
;
import
com.pig4cloud.pig.common.core.util.R
;
import
lombok.
All
ArgsConstructor
;
import
lombok.
Required
ArgsConstructor
;
import
lombok.SneakyThrows
;
import
lombok.extern.slf4j.Slf4j
;
import
org.springframework.security.core.AuthenticationException
;
...
...
@@ -41,7 +41,7 @@ import java.io.PrintWriter;
*/
@Slf4j
@Component
@
All
ArgsConstructor
@
Required
ArgsConstructor
public
class
ResourceAuthExceptionEntryPoint
implements
AuthenticationEntryPoint
{
private
final
ObjectMapper
objectMapper
;
...
...
pig-common/pig-common-security/src/main/java/com/pig4cloud/pig/common/security/feign/PigFeignClientConfiguration.java
浏览文件 @
bea8d4e6
...
...
@@ -19,7 +19,6 @@
package
com.pig4cloud.pig.common.security.feign
;
import
feign.RequestInterceptor
;
import
lombok.AllArgsConstructor
;
import
org.springframework.boot.autoconfigure.condition.ConditionalOnProperty
;
import
org.springframework.cloud.security.oauth2.client.AccessTokenContextRelay
;
import
org.springframework.context.annotation.Bean
;
...
...
@@ -34,7 +33,6 @@ import org.springframework.security.oauth2.client.resource.OAuth2ProtectedResour
* 使用hystrix 的信号量模式
*/
@Configuration
@AllArgsConstructor
@ConditionalOnProperty
(
"security.oauth2.client.client-id"
)
public
class
PigFeignClientConfiguration
{
@Bean
...
...
pig-common/pig-common-security/src/main/java/com/pig4cloud/pig/common/security/handler/FormAuthenticationFailureHandler.java
浏览文件 @
bea8d4e6
...
...
@@ -47,7 +47,7 @@ public class FormAuthenticationFailureHandler implements AuthenticationFailureHa
@SneakyThrows
public
void
onAuthenticationFailure
(
HttpServletRequest
request
,
HttpServletResponse
response
,
AuthenticationException
exception
)
{
log
.
debug
(
"表单登录失败:{}"
,
exception
.
getLocalizedMessage
());
response
.
sendRedirect
(
String
.
format
(
"/token/login?error=%s"
,
HttpUtil
.
encodeParams
(
exception
.
getMessage
(),
Charset
.
defaultCharset
()))
);
String
url
=
HttpUtil
.
encodeParams
(
String
.
format
(
"/token/login?error=%s"
,
exception
.
getMessage
()),
Charset
.
defaultCharset
());
WebUtils
.
getResponse
().
sendRedirect
(
url
);
}
}
pig-common/pig-common-security/src/main/java/com/pig4cloud/pig/common/security/service/PigUserDetailsServiceImpl.java
浏览文件 @
bea8d4e6
...
...
@@ -27,7 +27,7 @@ import com.pig4cloud.pig.common.core.constant.CacheConstants;
import
com.pig4cloud.pig.common.core.constant.CommonConstants
;
import
com.pig4cloud.pig.common.core.constant.SecurityConstants
;
import
com.pig4cloud.pig.common.core.util.R
;
import
lombok.
All
ArgsConstructor
;
import
lombok.
Required
ArgsConstructor
;
import
lombok.SneakyThrows
;
import
lombok.extern.slf4j.Slf4j
;
import
org.springframework.cache.Cache
;
...
...
@@ -51,7 +51,7 @@ import java.util.Set;
*/
@Slf4j
@Service
@
All
ArgsConstructor
@
Required
ArgsConstructor
public
class
PigUserDetailsServiceImpl
implements
UserDetailsService
{
private
final
RemoteUserService
remoteUserService
;
private
final
CacheManager
cacheManager
;
...
...
pig-gateway/src/main/java/com/pig4cloud/pig/gateway/config/RouterFunctionConfiguration.java
浏览文件 @
bea8d4e6
...
...
@@ -18,12 +18,8 @@
package
com.pig4cloud.pig.gateway.config
;
import
com.pig4cloud.pig.gateway.handler.HystrixFallbackHandler
;
import
com.pig4cloud.pig.gateway.handler.ImageCodeHandler
;
import
com.pig4cloud.pig.gateway.handler.SwaggerResourceHandler
;
import
com.pig4cloud.pig.gateway.handler.SwaggerSecurityHandler
;
import
com.pig4cloud.pig.gateway.handler.SwaggerUiHandler
;
import
lombok.AllArgsConstructor
;
import
com.pig4cloud.pig.gateway.handler.*
;
import
lombok.RequiredArgsConstructor
;
import
lombok.extern.slf4j.Slf4j
;
import
org.springframework.context.annotation.Bean
;
import
org.springframework.context.annotation.Configuration
;
...
...
@@ -39,7 +35,7 @@ import org.springframework.web.reactive.function.server.RouterFunctions;
*/
@Slf4j
@Configuration
@
All
ArgsConstructor
@
Required
ArgsConstructor
public
class
RouterFunctionConfiguration
{
private
final
HystrixFallbackHandler
hystrixFallbackHandler
;
private
final
ImageCodeHandler
imageCodeHandler
;
...
...
pig-gateway/src/main/java/com/pig4cloud/pig/gateway/config/SwaggerProviderConfiguration.java
浏览文件 @
bea8d4e6
...
...
@@ -18,7 +18,7 @@
package
com.pig4cloud.pig.gateway.config
;
import
lombok.
All
ArgsConstructor
;
import
lombok.
Required
ArgsConstructor
;
import
org.springframework.cloud.gateway.config.GatewayProperties
;
import
org.springframework.cloud.gateway.route.RouteLocator
;
import
org.springframework.cloud.gateway.support.NameUtils
;
...
...
@@ -36,7 +36,7 @@ import java.util.List;
*/
@Component
@Primary
@
All
ArgsConstructor
@
Required
ArgsConstructor
public
class
SwaggerProviderConfiguration
implements
SwaggerResourcesProvider
{
private
static
final
String
API_URI
=
"/v2/api-docs"
;
private
final
RouteLocator
routeLocator
;
...
...
pig-gateway/src/main/java/com/pig4cloud/pig/gateway/filter/ValidateCodeGatewayFilter.java
浏览文件 @
bea8d4e6
...
...
@@ -27,13 +27,14 @@ import com.pig4cloud.pig.common.core.exception.ValidateCodeException;
import
com.pig4cloud.pig.common.core.util.R
;
import
com.pig4cloud.pig.common.core.util.WebUtils
;
import
com.pig4cloud.pig.gateway.config.IgnoreClientConfiguration
;
import
lombok.
All
ArgsConstructor
;
import
lombok.
Required
ArgsConstructor
;
import
lombok.SneakyThrows
;
import
lombok.extern.slf4j.Slf4j
;
import
org.springframework.cloud.gateway.filter.GatewayFilter
;
import
org.springframework.cloud.gateway.filter.factory.AbstractGatewayFilterFactory
;
import
org.springframework.data.redis.core.RedisTemplate
;
import
org.springframework.http.HttpStatus
;
import
org.springframework.http.MediaType
;
import
org.springframework.http.server.reactive.ServerHttpRequest
;
import
org.springframework.http.server.reactive.ServerHttpResponse
;
import
org.springframework.stereotype.Component
;
...
...
@@ -46,7 +47,7 @@ import reactor.core.publisher.Mono;
*/
@Slf4j
@Component
@
All
ArgsConstructor
@
Required
ArgsConstructor
public
class
ValidateCodeGatewayFilter
extends
AbstractGatewayFilterFactory
{
private
final
IgnoreClientConfiguration
ignoreClient
;
private
final
ObjectMapper
objectMapper
;
...
...
@@ -81,6 +82,7 @@ public class ValidateCodeGatewayFilter extends AbstractGatewayFilterFactory {
}
catch
(
Exception
e
)
{
ServerHttpResponse
response
=
exchange
.
getResponse
();
response
.
setStatusCode
(
HttpStatus
.
PRECONDITION_REQUIRED
);
response
.
getHeaders
().
setContentType
(
MediaType
.
APPLICATION_JSON
);
try
{
return
response
.
writeWith
(
Mono
.
just
(
response
.
bufferFactory
()
.
wrap
(
objectMapper
.
writeValueAsBytes
(
...
...
pig-gateway/src/main/java/com/pig4cloud/pig/gateway/handler/ImageCodeHandler.java
浏览文件 @
bea8d4e6
...
...
@@ -20,7 +20,7 @@ package com.pig4cloud.pig.gateway.handler;
import
com.google.code.kaptcha.Producer
;
import
com.pig4cloud.pig.common.core.constant.CommonConstants
;
import
lombok.
All
ArgsConstructor
;
import
lombok.
Required
ArgsConstructor
;
import
lombok.extern.slf4j.Slf4j
;
import
org.springframework.core.io.ByteArrayResource
;
import
org.springframework.data.redis.core.RedisTemplate
;
...
...
@@ -46,7 +46,7 @@ import java.util.concurrent.TimeUnit;
*/
@Slf4j
@Component
@
All
ArgsConstructor
@
Required
ArgsConstructor
public
class
ImageCodeHandler
implements
HandlerFunction
<
ServerResponse
>
{
private
final
Producer
producer
;
private
final
RedisTemplate
redisTemplate
;
...
...
pig-gateway/src/main/java/com/pig4cloud/pig/gateway/handler/SwaggerResourceHandler.java
浏览文件 @
bea8d4e6
...
...
@@ -18,7 +18,7 @@
package
com.pig4cloud.pig.gateway.handler
;
import
lombok.
All
ArgsConstructor
;
import
lombok.
Required
ArgsConstructor
;
import
lombok.extern.slf4j.Slf4j
;
import
org.springframework.http.HttpStatus
;
import
org.springframework.http.MediaType
;
...
...
@@ -37,7 +37,7 @@ import springfox.documentation.swagger.web.SwaggerResourcesProvider;
*/
@Slf4j
@Component
@
All
ArgsConstructor
@
Required
ArgsConstructor
public
class
SwaggerResourceHandler
implements
HandlerFunction
<
ServerResponse
>
{
private
final
SwaggerResourcesProvider
swaggerResources
;
...
...
pig-upms/pig-upms-biz/src/main/java/com/pig4cloud/pig/admin/controller/DeptController.java
浏览文件 @
bea8d4e6
...
...
@@ -23,7 +23,7 @@ import com.pig4cloud.pig.admin.service.SysDeptService;
import
com.pig4cloud.pig.common.core.util.R
;
import
com.pig4cloud.pig.common.log.annotation.SysLog
;
import
io.swagger.annotations.Api
;
import
lombok.
All
ArgsConstructor
;
import
lombok.
Required
ArgsConstructor
;
import
org.springframework.security.access.prepost.PreAuthorize
;
import
org.springframework.web.bind.annotation.*
;
...
...
@@ -39,7 +39,7 @@ import java.time.LocalDateTime;
* @since 2019/2/1
*/
@RestController
@
All
ArgsConstructor
@
Required
ArgsConstructor
@RequestMapping
(
"/dept"
)
@Api
(
value
=
"dept"
,
tags
=
"部门管理模块"
)
public
class
DeptController
{
...
...
pig-upms/pig-upms-biz/src/main/java/com/pig4cloud/pig/admin/controller/DictController.java
浏览文件 @
bea8d4e6
...
...
@@ -30,7 +30,7 @@ import com.pig4cloud.pig.common.core.constant.CacheConstants;
import
com.pig4cloud.pig.common.core.util.R
;
import
com.pig4cloud.pig.common.log.annotation.SysLog
;
import
io.swagger.annotations.Api
;
import
lombok.
All
ArgsConstructor
;
import
lombok.
Required
ArgsConstructor
;
import
org.springframework.cache.annotation.CacheEvict
;
import
org.springframework.cache.annotation.Cacheable
;
import
org.springframework.security.access.prepost.PreAuthorize
;
...
...
@@ -47,7 +47,7 @@ import javax.validation.Valid;
* @since 2019-03-19
*/
@RestController
@
All
ArgsConstructor
@
Required
ArgsConstructor
@RequestMapping
(
"/dict"
)
@Api
(
value
=
"dict"
,
tags
=
"字典管理模块"
)
public
class
DictController
{
...
...
pig-upms/pig-upms-biz/src/main/java/com/pig4cloud/pig/admin/controller/LogController.java
浏览文件 @
bea8d4e6
...
...
@@ -24,7 +24,7 @@ import com.pig4cloud.pig.admin.service.SysLogService;
import
com.pig4cloud.pig.common.core.util.R
;
import
com.pig4cloud.pig.common.security.annotation.Inner
;
import
io.swagger.annotations.Api
;
import
lombok.
All
ArgsConstructor
;
import
lombok.
Required
ArgsConstructor
;
import
org.springframework.security.access.prepost.PreAuthorize
;
import
org.springframework.web.bind.annotation.*
;
...
...
@@ -39,7 +39,7 @@ import javax.validation.Valid;
* @since 2019/2/1
*/
@RestController
@
All
ArgsConstructor
@
Required
ArgsConstructor
@RequestMapping
(
"/log"
)
@Api
(
value
=
"log"
,
tags
=
"日志管理模块"
)
public
class
LogController
{
...
...
pig-upms/pig-upms-biz/src/main/java/com/pig4cloud/pig/admin/controller/MenuController.java
浏览文件 @
bea8d4e6
...
...
@@ -25,7 +25,7 @@ import com.pig4cloud.pig.common.core.util.R;
import
com.pig4cloud.pig.common.log.annotation.SysLog
;
import
com.pig4cloud.pig.common.security.util.SecurityUtils
;
import
io.swagger.annotations.Api
;
import
lombok.
All
ArgsConstructor
;
import
lombok.
Required
ArgsConstructor
;
import
org.springframework.security.access.prepost.PreAuthorize
;
import
org.springframework.web.bind.annotation.*
;
...
...
@@ -39,7 +39,7 @@ import java.util.stream.Collectors;
* @date 2017/10/31
*/
@RestController
@
All
ArgsConstructor
@
Required
ArgsConstructor
@RequestMapping
(
"/menu"
)
@Api
(
value
=
"menu"
,
tags
=
"菜单管理模块"
)
public
class
MenuController
{
...
...
pig-upms/pig-upms-biz/src/main/java/com/pig4cloud/pig/admin/controller/OauthClientDetailsController.java
浏览文件 @
bea8d4e6
...
...
@@ -25,7 +25,7 @@ import com.pig4cloud.pig.admin.service.SysOauthClientDetailsService;
import
com.pig4cloud.pig.common.core.util.R
;
import
com.pig4cloud.pig.common.log.annotation.SysLog
;
import
io.swagger.annotations.Api
;
import
lombok.
All
ArgsConstructor
;
import
lombok.
Required
ArgsConstructor
;
import
org.springframework.security.access.prepost.PreAuthorize
;
import
org.springframework.web.bind.annotation.*
;
...
...
@@ -40,7 +40,7 @@ import javax.validation.Valid;
* @since 2018-05-15
*/
@RestController
@
All
ArgsConstructor
@
Required
ArgsConstructor
@RequestMapping
(
"/client"
)
@Api
(
value
=
"client"
,
tags
=
"客户端管理模块"
)
public
class
OauthClientDetailsController
{
...
...
pig-upms/pig-upms-biz/src/main/java/com/pig4cloud/pig/admin/controller/RoleController.java
浏览文件 @
bea8d4e6
...
...
@@ -27,7 +27,7 @@ import com.pig4cloud.pig.admin.service.SysRoleService;
import
com.pig4cloud.pig.common.core.util.R
;
import
com.pig4cloud.pig.common.log.annotation.SysLog
;
import
io.swagger.annotations.Api
;
import
lombok.
All
ArgsConstructor
;
import
lombok.
Required
ArgsConstructor
;
import
org.springframework.security.access.prepost.PreAuthorize
;
import
org.springframework.web.bind.annotation.*
;
...
...
@@ -38,7 +38,7 @@ import javax.validation.Valid;
* @date 2019/2/1
*/
@RestController
@
All
ArgsConstructor
@
Required
ArgsConstructor
@RequestMapping
(
"/role"
)
@Api
(
value
=
"role"
,
tags
=
"角色管理模块"
)
public
class
RoleController
{
...
...
pig-upms/pig-upms-biz/src/main/java/com/pig4cloud/pig/admin/controller/TokenController.java
浏览文件 @
bea8d4e6
...
...
@@ -22,7 +22,7 @@ import com.pig4cloud.pig.admin.api.feign.RemoteTokenService;
import
com.pig4cloud.pig.common.core.constant.SecurityConstants
;
import
com.pig4cloud.pig.common.core.util.R
;
import
io.swagger.annotations.Api
;
import
lombok.
All
ArgsConstructor
;
import
lombok.
Required
ArgsConstructor
;
import
org.springframework.security.access.prepost.PreAuthorize
;
import
org.springframework.web.bind.annotation.*
;
...
...
@@ -34,7 +34,7 @@ import java.util.Map;
* getTokenPage 管理
*/
@RestController
@
All
ArgsConstructor
@
Required
ArgsConstructor
@RequestMapping
(
"/token"
)
@Api
(
value
=
"token"
,
tags
=
"令牌管理模块"
)
public
class
TokenController
{
...
...
pig-upms/pig-upms-biz/src/main/java/com/pig4cloud/pig/admin/controller/UserController.java
浏览文件 @
bea8d4e6
...
...
@@ -29,7 +29,7 @@ import com.pig4cloud.pig.common.log.annotation.SysLog;
import
com.pig4cloud.pig.common.security.annotation.Inner
;
import
com.pig4cloud.pig.common.security.util.SecurityUtils
;
import
io.swagger.annotations.Api
;
import
lombok.
All
ArgsConstructor
;
import
lombok.
Required
ArgsConstructor
;
import
org.springframework.security.access.prepost.PreAuthorize
;
import
org.springframework.web.bind.annotation.*
;
...
...
@@ -40,7 +40,7 @@ import javax.validation.Valid;
* @date 2019/2/1
*/
@RestController
@
All
ArgsConstructor
@
Required
ArgsConstructor
@RequestMapping
(
"/user"
)
@Api
(
value
=
"user"
,
tags
=
"用户管理模块"
)
public
class
UserController
{
...
...
pig-upms/pig-upms-biz/src/main/java/com/pig4cloud/pig/admin/service/impl/SysDeptRelationServiceImpl.java
浏览文件 @
bea8d4e6
...
...
@@ -25,7 +25,7 @@ import com.pig4cloud.pig.admin.api.entity.SysDept;
import
com.pig4cloud.pig.admin.api.entity.SysDeptRelation
;
import
com.pig4cloud.pig.admin.mapper.SysDeptRelationMapper
;
import
com.pig4cloud.pig.admin.service.SysDeptRelationService
;
import
lombok.
All
ArgsConstructor
;
import
lombok.
Required
ArgsConstructor
;
import
org.springframework.stereotype.Service
;
import
org.springframework.transaction.annotation.Transactional
;
...
...
@@ -41,7 +41,7 @@ import java.util.stream.Collectors;
* @since 2019/2/1
*/
@Service
@
All
ArgsConstructor
@
Required
ArgsConstructor
public
class
SysDeptRelationServiceImpl
extends
ServiceImpl
<
SysDeptRelationMapper
,
SysDeptRelation
>
implements
SysDeptRelationService
{
private
final
SysDeptRelationMapper
sysDeptRelationMapper
;
...
...
pig-upms/pig-upms-biz/src/main/java/com/pig4cloud/pig/admin/service/impl/SysDeptServiceImpl.java
浏览文件 @
bea8d4e6
...
...
@@ -29,7 +29,7 @@ import com.pig4cloud.pig.admin.mapper.SysDeptMapper;
import
com.pig4cloud.pig.admin.service.SysDeptRelationService
;
import
com.pig4cloud.pig.admin.service.SysDeptService
;
import
com.pig4cloud.pig.common.security.util.SecurityUtils
;
import
lombok.
All
ArgsConstructor
;
import
lombok.
Required
ArgsConstructor
;
import
org.springframework.beans.BeanUtils
;
import
org.springframework.stereotype.Service
;
import
org.springframework.transaction.annotation.Transactional
;
...
...
@@ -47,7 +47,7 @@ import java.util.stream.Collectors;
* @since 2019/2/1
*/
@Service
@
All
ArgsConstructor
@
Required
ArgsConstructor
public
class
SysDeptServiceImpl
extends
ServiceImpl
<
SysDeptMapper
,
SysDept
>
implements
SysDeptService
{
private
final
SysDeptRelationService
sysDeptRelationService
;
...
...
pig-upms/pig-upms-biz/src/main/java/com/pig4cloud/pig/admin/service/impl/SysDictItemServiceImpl.java
浏览文件 @
bea8d4e6
...
...
@@ -26,7 +26,7 @@ import com.pig4cloud.pig.admin.service.SysDictService;
import
com.pig4cloud.pig.common.core.constant.CacheConstants
;
import
com.pig4cloud.pig.common.core.constant.enums.DictTypeEnum
;
import
com.pig4cloud.pig.common.core.util.R
;
import
lombok.
All
ArgsConstructor
;
import
lombok.
Required
ArgsConstructor
;
import
org.springframework.cache.annotation.CacheEvict
;
import
org.springframework.stereotype.Service
;
...
...
@@ -37,7 +37,7 @@ import org.springframework.stereotype.Service;
* @date 2019/03/19
*/
@Service
@
All
ArgsConstructor
@
Required
ArgsConstructor
public
class
SysDictItemServiceImpl
extends
ServiceImpl
<
SysDictItemMapper
,
SysDictItem
>
implements
SysDictItemService
{
private
final
SysDictService
dictService
;
...
...
pig-upms/pig-upms-biz/src/main/java/com/pig4cloud/pig/admin/service/impl/SysDictServiceImpl.java
浏览文件 @
bea8d4e6
...
...
@@ -27,7 +27,7 @@ import com.pig4cloud.pig.admin.service.SysDictService;
import
com.pig4cloud.pig.common.core.constant.CacheConstants
;
import
com.pig4cloud.pig.common.core.constant.enums.DictTypeEnum
;
import
com.pig4cloud.pig.common.core.util.R
;
import
lombok.
All
ArgsConstructor
;
import
lombok.
Required
ArgsConstructor
;
import
org.springframework.cache.annotation.CacheEvict
;
import
org.springframework.stereotype.Service
;
import
org.springframework.transaction.annotation.Transactional
;
...
...
@@ -39,7 +39,7 @@ import org.springframework.transaction.annotation.Transactional;
* @date 2019/03/19
*/
@Service
@
All
ArgsConstructor
@
Required
ArgsConstructor
public
class
SysDictServiceImpl
extends
ServiceImpl
<
SysDictMapper
,
SysDict
>
implements
SysDictService
{
private
final
SysDictItemMapper
dictItemMapper
;
...
...
pig-upms/pig-upms-biz/src/main/java/com/pig4cloud/pig/admin/service/impl/SysMenuServiceImpl.java
浏览文件 @
bea8d4e6
...
...
@@ -33,7 +33,7 @@ import com.pig4cloud.pig.common.core.constant.CacheConstants;
import
com.pig4cloud.pig.common.core.constant.CommonConstants
;
import
com.pig4cloud.pig.common.core.constant.enums.MenuTypeEnum
;
import
com.pig4cloud.pig.common.core.util.R
;
import
lombok.
All
ArgsConstructor
;
import
lombok.
Required
ArgsConstructor
;
import
org.springframework.cache.annotation.CacheEvict
;
import
org.springframework.cache.annotation.Cacheable
;
import
org.springframework.stereotype.Service
;
...
...
@@ -53,7 +53,7 @@ import java.util.stream.Collectors;
* @since 2017-10-29
*/
@Service
@
All
ArgsConstructor
@
Required
ArgsConstructor
public
class
SysMenuServiceImpl
extends
ServiceImpl
<
SysMenuMapper
,
SysMenu
>
implements
SysMenuService
{
private
final
SysRoleMenuMapper
sysRoleMenuMapper
;
...
...
pig-upms/pig-upms-biz/src/main/java/com/pig4cloud/pig/admin/service/impl/SysRoleMenuServiceImpl.java
浏览文件 @
bea8d4e6
...
...
@@ -25,7 +25,7 @@ import com.pig4cloud.pig.admin.api.entity.SysRoleMenu;
import
com.pig4cloud.pig.admin.mapper.SysRoleMenuMapper
;
import
com.pig4cloud.pig.admin.service.SysRoleMenuService
;
import
com.pig4cloud.pig.common.core.constant.CacheConstants
;
import
lombok.
All
ArgsConstructor
;
import
lombok.
Required
ArgsConstructor
;
import
org.springframework.cache.CacheManager
;
import
org.springframework.cache.annotation.CacheEvict
;
import
org.springframework.stereotype.Service
;
...
...
@@ -44,7 +44,7 @@ import java.util.stream.Collectors;
* @since 2019/2/1
*/
@Service
@
All
ArgsConstructor
@
Required
ArgsConstructor
public
class
SysRoleMenuServiceImpl
extends
ServiceImpl
<
SysRoleMenuMapper
,
SysRoleMenu
>
implements
SysRoleMenuService
{
private
final
CacheManager
cacheManager
;
...
...
pig-upms/pig-upms-biz/src/main/java/com/pig4cloud/pig/admin/service/impl/SysRoleServiceImpl.java
浏览文件 @
bea8d4e6
...
...
@@ -26,7 +26,7 @@ import com.pig4cloud.pig.admin.mapper.SysRoleMapper;
import
com.pig4cloud.pig.admin.mapper.SysRoleMenuMapper
;
import
com.pig4cloud.pig.admin.service.SysRoleService
;
import
com.pig4cloud.pig.common.core.constant.CacheConstants
;
import
lombok.
All
ArgsConstructor
;
import
lombok.
Required
ArgsConstructor
;
import
org.springframework.cache.annotation.CacheEvict
;
import
org.springframework.stereotype.Service
;
import
org.springframework.transaction.annotation.Transactional
;
...
...
@@ -42,9 +42,9 @@ import java.util.List;
* @since 2019/2/1
*/
@Service
@
All
ArgsConstructor
@
Required
ArgsConstructor
public
class
SysRoleServiceImpl
extends
ServiceImpl
<
SysRoleMapper
,
SysRole
>
implements
SysRoleService
{
private
SysRoleMenuMapper
sysRoleMenuMapper
;
private
final
SysRoleMenuMapper
sysRoleMenuMapper
;
/**
* 通过用户ID,查询角色信息
...
...
pig-upms/pig-upms-biz/src/main/java/com/pig4cloud/pig/admin/service/impl/SysUserServiceImpl.java
浏览文件 @
bea8d4e6
...
...
@@ -37,7 +37,7 @@ import com.pig4cloud.pig.admin.service.*;
import
com.pig4cloud.pig.common.core.constant.CacheConstants
;
import
com.pig4cloud.pig.common.core.constant.CommonConstants
;
import
com.pig4cloud.pig.common.core.util.R
;
import
lombok.
All
ArgsConstructor
;
import
lombok.
Required
ArgsConstructor
;
import
lombok.extern.slf4j.Slf4j
;
import
org.apache.commons.lang.StringUtils
;
import
org.springframework.beans.BeanUtils
;
...
...
@@ -59,7 +59,7 @@ import java.util.stream.Collectors;
*/
@Slf4j
@Service
@
All
ArgsConstructor
@
Required
ArgsConstructor
public
class
SysUserServiceImpl
extends
ServiceImpl
<
SysUserMapper
,
SysUser
>
implements
SysUserService
{
private
static
final
PasswordEncoder
ENCODER
=
new
BCryptPasswordEncoder
();
private
final
SysMenuService
sysMenuService
;
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录