PIGAI
|
38916dda25
|
feat(security): 新增单体架构下内部请求头安全过滤机制
- 添加PigxInnerHeaderRemoveFilter类用于防止前端伪造inner header
- 实现基于IP地址和FROM请求头的访问控制逻辑
- 在AutoConfiguration中注册过滤器配置
- 添加hutool-extra依赖支持IP地址工具类
|
2025-10-09 14:52:27 +08:00 |
|
冷冷
|
9ee99d4063
|
style(common-oss): 统一代码格式并优化路径分隔符处理
- 将代码缩进统一调整为4个空格
- 将硬编码路径分隔符替换为FileUtil.FILE_SEPARATOR
- 优化AmazonS3Client构建器的代码格式
- 移除冗余注释和空行
|
2025-10-09 14:51:42 +08:00 |
|
lengleng
|
79b27b6d7d
|
feat(auth): 增强认证逻辑,支持密码过期校验及定时攻击保护机制
|
2025-10-09 14:48:11 +08:00 |
|
lengleng
|
2551ef2606
|
refactor(RedisUtils): 统一RedisTemplate泛型类型并优化代码格式
- 将所有RedisTemplate声明统一为<String, Object>类型提高类型安全
- 调整代码缩进格式为统一标准
- 移除冗余的Optional.ofNullable包装简化代码逻辑
- 保持原有Redis操作方法功能不变
|
2025-10-09 14:47:45 +08:00 |
|
lengleng
|
a60127323e
|
refactor(sequence): 优化Redis序列号生成器实现
- 使用Lombok的@Getter/@Setter简化stringRedisTemplate和stepStart字段访问
- 移除冗余的空字符串检查方法isEmpty
- 清理未使用的getter/setter方法减少代码量
- 保持原有核心序列号生成逻辑不变
|
2025-10-09 14:47:41 +08:00 |
|
PIG AI
|
8d81533751
|
fix(security): 增强OAuth2 token管理功能, 确保删除操作后清理残留的username关联键
|
2025-07-09 21:18:15 +08:00 |
|
PIG AI
|
a3951a0368
|
refactor(excel): 替换alibaba-excel为fastexcel依赖
- 将alibaba-excel相关import更新为cn.idev.excel
- 更新pom.xml中依赖为fastexcel 1.2.0
- 修改Excel相关注解及工具类的包路径
|
2025-07-05 14:58:12 +08:00 |
|
PIG AI
|
2d7d089fcd
|
feat(auth): 优化租户过期验证逻辑并统一Redis key格式
- 修改登录失败/成功处理中的Redis key格式,移除tenantKeyStrResolver依赖
- 简化RedisUtils.execute调用方式,移除冗余的RedisCallback类型声明
- 在SysTenantServiceImpl中增加租户状态和时间有效性过滤
- 重构TenantContextHolderFilter的租户验证逻辑,增加remoteTenantService备用查询
- 调整租户无效时的HTTP状态码为426并优化响应内容类型
|
2025-07-04 16:41:06 +08:00 |
|
PIG AI
|
00efa97eef
|
feat(cache): 在RedisUtils中增加increment方法并优化验证码缓存服务
- 新增RedisUtils.increment方法用于原子递增操作
- 重构CaptchaCacheServiceProvider使用RedisUtils替代直接stringRedisTemplate调用
- 统一Redis缓存操作工具类方法调用方式
|
2025-07-04 12:24:28 +08:00 |
|
PIG AI
|
32c7aec93d
|
fix(mybatis): 修复匿名用户处理逻辑返回null值问题
- 修改AnonymousAuthenticationToken情况下的返回值为null
- 优化authentication对象存在性检查逻辑
|
2025-07-04 12:07:15 +08:00 |
|
PIG AI
|
c8edf16536
|
feat(security): 重构Redis存储的OAuth2授权服务
- 将PigxRedisOAuth2AuthorizationService迁移至common-security模块
- 使用RedisTemplate替代RedisUtils进行缓存操作
- 增加Jackson序列化支持RouteDefinitionVo
- 优化token存储逻辑与过期时间处理
- 统一授权服务与路由管理的Redis配置
|
2025-07-04 12:07:00 +08:00 |
|
PIG AI
|
c8a8da7497
|
feat(tenant): 新增租户用户管理功能
- 在SysUserPost实体类中添加tenantId字段
- 新增SysTenantUserDTO用于租户用户数据传输
- 在SysTenantController中新增用户租户管理接口
- 实现租户用户的增删改查及分页查询功能
- 优化ValidateCodeFilter中的验证码校验逻辑
- 修复PigxUserDetailsService中空部门列表处理问题
|
2025-07-04 12:01:27 +08:00 |
|
PIG AI
|
d3770993ce
|
refactor(user): update user information retrieval to use UserDTO and improve method documentation
|
2025-07-04 11:58:50 +08:00 |
|
PIG AI
|
3a53fb5677
|
feat(redis): 添加Redis工具类,优化RedisTemplate配置
|
2025-07-04 11:57:22 +08:00 |
|
PIG AI
|
7205251977
|
feat(upms): ❕ 增强多租户支持,支持在线切换租户
- 新增SysTenantUser实体类及Mapper用于租户用户关系管理
- 新增SysUserDept实体类及Mapper实现用户多部门支持
- 重构用户信息查询逻辑,支持跨租户查询
- 优化部门管理,支持多租户下的部门树查询
- 扩展UserInfo DTO增加deptId字段
- 重构Redis授权服务,优化租户信息存储结构
# Conflicts:
# pigx-upms/pigx-upms-biz/src/main/java/com/pig4cloud/pigx/admin/controller/SysTenantController.java
# pigx-upms/pigx-upms-biz/src/main/java/com/pig4cloud/pigx/admin/service/SysUserService.java
|
2025-07-04 11:56:14 +08:00 |
|
PIG AI
|
a970fe166a
|
refactor(stream): 替换Collectors.toList()为toList()方法
- 优化代码简洁性,使用Java 16引入的Stream.toList()替代Collectors.toList()
- 统一代码风格,减少冗余代码
- 提升代码可读性,简化stream操作
|
2025-07-04 11:50:17 +08:00 |
|
PIG AI
|
f7edba9801
|
feat(deps): 升级pigx-common-idempotent模块的redisson版本至3.50.0
|
2025-06-25 11:35:56 +08:00 |
|
PIG AI
|
de7e1fb4df
|
feat(pom): 升级项目版本及依赖版本
- 将项目版本从5.8.0升级至5.9.0
- 升级spring-boot版本至3.5.3
- 升级spring-boot-admin版本至3.5.0
- 更新所有子模块的parent版本号
|
2025-06-24 09:00:07 +08:00 |
|
PIG AI
|
78874c1646
|
refactor(pom): 适配 springboot 3.5 & spring cloud 2025
|
2025-06-23 16:19:50 +08:00 |
|
PIG AI
|
9601609eb2
|
feat(sse): 优化SSE模块配置与文档
- 重命名messageDistributor为sseMessageDistributor以明确功能定位
- 为SseEmitterEndpoint添加详细方法注释说明
- 优化RedisMessageDistributorConfiguration类结构与文档
- 更新SseEmitterMessageSender类文档与日期信息
- 为MessageDistributorTypeConstants添加类说明文档
|
2025-06-23 16:18:14 +08:00 |
|
PIG AI
|
718a587c19
|
feat(tenant): 增强租户状态检查逻辑
- 新增对租户有效期的检查,包括startTime和endTime验证
- 优化无效租户的响应方式,返回401状态码和JSON格式错误信息
- 使用JSONUtil和ContentType处理错误响应输出
- 添加@SneakyThrows注解处理潜在异常
|
2025-06-23 16:18:09 +08:00 |
|
PIG AI
|
8d0eb9c8fb
|
feat(mybatis): 修改匿名用户处理逻辑以返回用户名
- 移除未使用的SecurityUtils import
- 当用户为AnonymousAuthenticationToken时返回authentication.getName()
- 保持原有非匿名用户处理逻辑不变
|
2025-06-23 16:16:39 +08:00 |
|
PIG AI
|
2ad48fb751
|
fix(pom): 回退druid版本至1.2.23
- 将druid依赖版本从1.2.24降级至1.2.23
- 解决与当前系统其他组件的兼容性问题https://github.com/alibaba/druid/issues/6263
|
2025-06-23 16:15:20 +08:00 |
|
PIG AI
|
560129fc06
|
feat(security): 优化oauth2.0 的自省端点
- 在PigxRemoteRegisteredClientRepository中实现findById方法
- 优化PigxRedisOAuth2AuthorizationService的token处理逻辑
- 修复findByToken方法中tokenType为null时的默认值处理
- 添加根据username清理token的功能扩展
|
2025-06-23 16:15:17 +08:00 |
|
冷冷
|
f3738c4e11
|
docs(pom): 更新Hutool依赖版本至5.8.38
|
2025-06-23 16:14:28 +08:00 |
|
冷冷
|
19a223695f
|
refactor(core): 重构WebPriorityHeader相关配置类并优化结构
- 将PriorityHeaderConfiguration重命名为PriorityHeaderInitBinder以明确用途
- 合并RestTemplate配置至新创建的WebCommonConfiguration类
- 在WebCommonConfiguration中统一管理Web相关Bean配置
- 添加ConditionalOnWebApplication条件注解确保Servlet环境
|
2025-06-23 16:06:54 +08:00 |
|
冷冷
|
37035cbf27
|
refactor(core): 重构WebPriorityHeader相关配置类并优化结构
- 将PriorityHeaderConfiguration重命名为PriorityHeaderInitBinder以明确用途
- 合并RestTemplate配置至新创建的WebCommonConfiguration类
- 在WebCommonConfiguration中统一管理Web相关Bean配置
- 添加ConditionalOnWebApplication条件注解确保Servlet环境
|
2025-06-23 16:06:54 +08:00 |
|
冷冷
|
bf8b8805c8
|
feat(pigx-common-bom): 升级MyBatis-Plus相关依赖版本
feat(pigx-codegen): 修改GenTableColumnEntity字段更新策略
- 升级MyBatis-Plus版本至3.5.12
- 升级MyBatis-Plus-Join版本至1.5.3
- 修改fieldDict字段的更新策略为ALWAYS
|
2025-06-23 16:06:21 +08:00 |
|
冷冷
|
b3834e3215
|
feat(common-sensitive): 新增URL参数脱敏功能及枚举类型(ai-dev)
1. 在DesensitizedUtils工具类中新增url()方法,实现URL参数脱敏功能
2. 在SensitiveTypeEnum枚举中新增QUERY_PARAM类型,关联新增的脱敏方法
3. 方法会将URL参数值统一替换为***以保护敏感信息
|
2025-06-23 16:06:08 +08:00 |
|
冷冷
|
dc37974c72
|
chore(deps): 更新Spring Boot版本至3.4.5并移除废弃依赖项
- 升级Spring Boot版本从3.4.3到3.4.5
- 移除不再使用的spring-authorization.version属性
- 清理pigx-common-security模块中冗余的版本号配置
|
2025-06-23 16:06:08 +08:00 |
|
冷冷
|
f1231ec841
|
chore(deps): 更新 deepseek 依赖版本至 1.4.7
|
2025-06-23 16:05:35 +08:00 |
|
冷冷
|
7f9e6105f8
|
feat(core): 添加PriorityHeaderConfiguration解决请求头冲突问题
|
2025-06-23 16:05:22 +08:00 |
|
冷冷
|
a5abaa4d2c
|
chore(deps): 更新 deepseek 依赖版本至 1.4.6
|
2025-06-23 16:04:46 +08:00 |
|
冷冷
|
8edb1458a0
|
feat(mybatis): 支持Oracle和PostgreSQL数据库的SQL表名提取功能
|
2025-06-23 16:04:25 +08:00 |
|
冷冷
|
7db8f47e39
|
fix(persistence): update SQL Server version and simplify order by clause in SysUserMapper
|
2025-06-23 16:04:06 +08:00 |
|
冷冷
|
5b5aac37d0
|
feat(core): 在 WebUtils 中添加 isMicro 方法用于检测微服务环境
新增 `isMicro` 方法,通过 `SpringContextHolder` 获取应用上下文并检查 `security.micro` 属性,默认返回 `true`。
|
2025-03-10 23:40:00 +08:00 |
|
冷冷
|
186505deac
|
chore(deps): 更新 pigx-common-bom 中的 javers 版本至 7.8.0
此次提交将 `javers` 依赖版本从 `7.3.3` 升级至 `7.8.0`,以保持依赖的最新状态并可能修复已知问题或引入新功能。
|
2025-03-10 14:59:21 +08:00 |
|
冷冷
|
9f7f4c4564
|
feat(oss): 添加 skipMd5Check 配置项以支持跳过 MD5 检查
#6272 使用腾讯云存储COS ,图片不能正常下载的问题, Invalid base 16 character: '"'
|
2025-03-10 14:12:29 +08:00 |
|
冷冷
|
aef21008d9
|
chore(deps): 更新 pigx-common-bom/pom.xml 添加 swagger-annotations 依赖
此次提交在 `pigx-common-bom/pom.xml` 中添加了 `swagger-annotations` 依赖,版本号为 `${swagger.core.version}`。该变更属于项目配置维护的一部分,旨在确保项目的依赖完整性。
|
2025-03-10 10:46:31 +08:00 |
|
冷冷
|
675d068018
|
chore(deps): 更新 sms4j 依赖的 groupId 为 org.dromara.sms4j
将 `sms4j` 相关的依赖从 `io.github.pig-mesh.sms4j` 更新为 `org.dromara.sms4j`,确保依赖的准确性和一致性。
|
2025-03-09 20:53:49 +08:00 |
|
冷冷
|
3a8116b5ea
|
chore(pom): update version from 5.7.0 to 5.8.0 across multiple modules
|
2025-03-09 20:47:25 +08:00 |
|
冷冷
|
a328d1c90e
|
feat(sensitive): 新增 JSON 格式数据脱敏功能
在 `DesensitizedUtils` 类中新增 `json` 方法,支持对 JSON 数据进行脱敏处理。该方法允许根据指定的字段进行模糊或精确匹配,并对匹配的字段值进行脱敏处理。
|
2025-03-08 17:12:46 +08:00 |
|
冷冷
|
d474799fa7
|
feat(encrypt-api): 支持全局请求报文加密
BREAKING CHANGE: 文档和用法完全和之前不一样,不需要耦合代码
|
2025-03-07 18:18:02 +08:00 |
|
冷冷
|
3e016ecc4f
|
Revert "refactor(common-oss): S3文件上传简化去掉byteinputstream"
This reverts commit a7f85b5824de208f5b692cf62a8f7caa16fea4ea.
|
2025-03-07 18:12:36 +08:00 |
|
冷冷
|
7a97f94557
|
chore(deps): 添加 deepseek-spring-boot-starter 依赖并更新 pigx-common-bom/pom.xml
在 `pigx-common-bom/pom.xml` 中添加了 `deepseek-spring-boot-starter` 依赖,版本为 `1.4.5`,并新增了 `pigx-common-milvus` 依赖。这些变更为项目引入了新的功能模块,支持 AI 相关的功能扩展。
|
2025-03-07 18:12:32 +08:00 |
|
冷冷
|
518720d325
|
refactor(sse): 优化 SseEmitterEndpoint 确保在 onCompletion、onTimeout 和 onError 时清理 SseEmitter。
同时,将 `SecurityUtils.getUser().getId()` 提取为局部变量 `userId`,减少重复代码。
在 `SseEmitterHolder` 中,修改了 `removeSseEmitter` 方法的参数类型和实现,使其直接通过 `SseEmitter` 对象进行删除,提升代码可读性和维护性。
此外,移除了 `SseEmitterMessageSender` 中未使用的 `ReflectUtil` 导入,保持代码简洁。
|
2025-03-07 18:12:23 +08:00 |
|
冷冷
|
4ed963af5d
|
chore(bom): update springdoc and swagger.core versions
|
2025-03-07 18:11:29 +08:00 |
|
冷冷
|
ecad480ec7
|
chore(deps): 更新 sms4j 依赖的 groupId 和版本号
将 `sms4j` 依赖的 `groupId` 从 `org.dromara.sms4j` 更新为 `io.github.pig-mesh.sms4j`,并将版本号从 `3.3.3` 升级到 `3.3.4`。
|
2025-02-25 18:10:29 +08:00 |
|
冷冷
|
a285a86571
|
chore(deps): 更新 mybatis-plus 依赖版本至 3.5.10.1
|
2025-02-23 22:18:45 +08:00 |
|
冷冷
|
c485de19f2
|
chore(deps): 更新 hutool 和 spring-authorization 依赖版本
将 `hutool` 从 `5.8.34` 升级到 `5.8.36`,并将 `spring-authorization` 从 `1.4.1` 升级到 `1.4.2`,以获取最新的功能和修复。
|
2025-02-19 11:57:08 +08:00 |
|