Commit Graph

706 Commits

Author SHA1 Message Date
Ray.Hao
c17077aba8 refactor: 调整注解路径至common包下 2024-12-08 16:35:29 +08:00
谢东
bb32fc1fe7 feat(security): 增加匿名访问控制
- 新增 AnonymousAccess 注解用于标记支持匿名访问的方法
- 添加 AnonymousGetMapping、AnonymousPostMapping 等注解用于具体 HTTP 方法
- 实现 AnonymousUtils 工具类以获取所有匿名访问 URL
- 修改 SecurityConfig 配置类,支持细粒度的匿名访问控制- 更新 LogAspect 切面,增加对匿名访问的处理
2024-12-06 23:19:47 +08:00
Ray.Hao
9c77b7c1ac fix(CodegenServiceImpl.java): 代码生成的 mapper.xml 路径问题修复(system/mapper → mapper/system) 2024-12-06 17:35:19 +08:00
Ray.Hao
c56d417dbe refactor: 移除用户认证信息的 perms 字段(接口鉴权根据全局角色权限规则的缓存和用户角色校验) 2024-12-06 17:31:21 +08:00
stackcn
2397921eee docs(core): 修正注释中关于日志记录默认行为的描述
- 将"请求参数默认不记录"修改为"响应结果默认不记录"
2024-12-06 13:57:22 +08:00
stackcn
06fcaf59fd feat(core): 增加系统日志功能
- 在 ConfigController 和 UserController 中添加日志注解
- 新增 LogModuleEnum.EXCEPTION 枚举值
- 在 Log 注解中添加 params 和 result 属性
- 实现日志切面,记录请求参数和响应结果
- 优化日志保存逻辑,支持异常日志记录
2024-12-06 13:54:12 +08:00
谢东
7aa206b120 feat(core): 完善日志切面并优化日志实体
- 在 LogAspect 中添加了请求参数和响应内容的记录
- 增加 Log 实体类的字段
2024-12-06 00:25:26 +08:00
谢东
e9e2276841 Merge branch 'master' of https://gitee.com/stackcn/youlai-boot 2024-12-05 23:10:27 +08:00
Theo
bb5b1918ec fix(system): 修复修改菜单时父级菜单选择为当前菜单的问题
- 在修改菜单时增加了一个判断,如果父级菜单 ID与当前菜单 ID 相同,则抛出异常
- 异常信息为 "父级菜单不能为当前菜单",避免了逻辑上的错误
2024-12-05 22:07:33 +08:00
stackcn
17c395dbc7 feat(system): 添加系统配置操作日志记录功能
- 在 ConfigController 中新增日志注解,记录系统配置相关操作
- 更新 LogModuleEnum 枚举,添加 SETTING 系统配置模块
2024-12-05 17:55:35 +08:00
stackcn
bc79cc8b46 refactor: 使用Convert工具进行类型转换,避免潜在的 NumberFormatException
- 在 RateLimiterFilter 中使用 Convert.toLong 替代 Long.parseLong
- 在 UserImportListener 中使用 Convert.toInt 替代 Integer.parseInt
- 这些修改提高了代码的健壮性和容错性,避免了潜在的 NumberFormatException
2024-12-05 17:05:17 +08:00
胡少翔
8055e86f32 perf(core): 优化数据权限处理逻辑
- 合并判断条件,简化代码结构
- 提高超级管理员和未登录用户的处理效率
2024-12-05 11:37:21 +08:00
胡少翔
13cd408a97 fix(sql): 修复未登录MyBatis拦截器报错导致启动失败的bug 2024-12-05 11:34:26 +08:00
stackcn
afd923e3fd refactor(system): 优化菜单选项接口和相关服务
- 更新 MenuController 中 listMenuOptions 方法的返回类型为 Result<List<Option<Long>>>- 更新 MenuService 接口中 listMenuOptions 方法的返回类型为 List<Option<Long>>
- 更新 MenuServiceImpl 中 listMenuOptions 和 buildMenuOptions 方法的返回类型为 List<Option<Long>>
- 优化相关方法的参数类型和泛型使用,提高代码可读性
2024-12-05 10:12:29 +08:00
Theo
e0fd189196 refactor: 优化权限部分的代码
优化权限部分的代码,完善注释
2024-12-04 23:46:40 +08:00
Ray.Hao
2a31d2943e chore: 删除白名单重复配置 2024-12-04 00:39:50 +08:00
Ray.Hao
3cdca76300 chore: 修改会话方式类型的配置键值 2024-12-04 00:20:46 +08:00
haoxr
56312dcc70 style: 代码格式优化,移除无用的引用 2024-12-03 17:31:10 +08:00
haoxr
f3a32821ea refactor: 扩展 spring security 实现微信一键登录认证 2024-12-03 17:15:58 +08:00
haoxr
07796fd62a Merge branch 'master' of https://gitee.com/youlaiorg/youlai-boot 2024-12-01 21:31:09 +08:00
haoxr
631025e540 refactor: 代码优化 2024-12-01 21:30:09 +08:00
wangtaocs
f04e21e0e5 refactor: 微信登录功能代码修改 2024-11-29 15:39:43 +08:00
wangtaocs
d24dafc1fb feat: 微信登录功能开发 2024-11-29 11:09:56 +08:00
Theo
d2f240776e refactor(system): 优化系统模块接口定义
- 将 ConfigController 中的 refreshCache 方法和 NoticeController 中的 publishNotice 和 revokeNotice 方法的注解从 @RequestMapping 修改为 @PutMapping
- 这样做可以更明确地指定 HTTP 请求方法,提高代码可读性和维护性
2024-11-24 01:32:45 +08:00
Theo
3a9350c14a refactor(system): 扩展配置刷新接口支持 PATCH 方法
- 在 ConfigController 中更新 refreshCache 方法的映射
- 增加对 PUT 和 PATCH 方法的支持
2024-11-23 00:29:31 +08:00
Theo
60cba101ed feat(system): 添加配置项软删除标识并优化通知公告接口
- 在创建配置项时添加软删除标识,避免直接物理删除
- 合并通知公告发布和撤回接口的映射方式,简化接口设计
2024-11-21 23:21:15 +08:00
haoxr
4870150554 Merge branch 'master' of https://gitee.com/youlaiorg/youlai-boot 2024-11-19 08:21:15 +08:00
haoxr
943ae581b8 refactor: 注解从common移至core包下 2024-11-19 00:02:02 +08:00
haoxr
6b65644d9e feat: 添加字段校验器 2024-11-19 00:01:28 +08:00
ray
272fc6b98a refactor: 用户列表日期格式精确到分钟 2024-11-17 17:37:47 +08:00
Ky10
760ff8f9c1 Merge branch 'master' of https://gitee.com/youlaiorg/youlai-boot 2024-11-16 20:20:24 +08:00
Ky10
1d3313838b refactor(system): 调整系统配置接口权限控制和路由- 为 page 方法添加 @PreAuthorize 注解,控制查询权限- 将 refreshCache 方法的 HTTP 方法从 @PatchMapping 改为 @PutMapping
- 为 update 和 delete 方法添加缺失的 @PreAuthorize 注解
- 调整 delete 方法的注解顺序,使其与其它方法保持一致
2024-11-16 20:18:35 +08:00
haoxr
2c42e47ae0 refactor: 登录认证令牌生成重构 2024-11-15 18:21:48 +08:00
haoxr
12465dcd10 Merge branch 'master' of https://gitee.com/youlaiorg/youlai-boot 2024-11-14 18:36:37 +08:00
haoxr
88ccaff448 feat: 新增JWT刷新模式和JWT工具类解耦优化 2024-11-14 18:32:08 +08:00
胡少翔
7a001ef506 refactor: 冗余判断删除
冗余判断删除
2024-11-14 09:42:01 +08:00
胡少翔
be91043dcb refactor: 角色列表排序更改
角色列表排序更改
2024-11-14 09:41:00 +08:00
胡少翔
16bd1399db refactor: 发布撤销支持put请求
发布撤销支持put请求
2024-11-14 09:31:41 +08:00
haoxr
c7621f90cb feat: 新增JWT刷新token接口 2024-11-12 22:48:30 +08:00
haoxr
b4397b13b0 wip: jwt 刷新token临时提交 2024-11-12 10:40:28 +08:00
ray
1f719a6d9d Merge branch 'master' of https://gitee.com/youlaiorg/youlai-boot 2024-11-09 00:31:21 +08:00
ray
8aa6b2e208 refactor: 代码优化重构 2024-11-09 00:30:42 +08:00
Ray.Hao
e4343b0f49 chore: vue 代码生成模板同步前端页面调整 2024-11-08 07:10:47 +08:00
Kang_Yang
5639c8b800 revert: 回滚校验字典code代码修改 2024-11-07 14:19:31 +08:00
Kang_Yang
021954617e feat: 修复校验字典code不准确问题 2024-11-07 13:39:59 +08:00
Kang_Yang
b7420ff43d Merge branch 'master' of https://gitee.com/youlaiorg/youlai-boot 2024-11-05 13:24:14 +08:00
Time Lord
138b7005d2 fix: 修复限流方法doFilterInternal注释 2024-11-03 20:54:59 +08:00
Ray.Hao
308ae7d147 refactor: 重构用户相关代码
- 新增字典编码枚举 DictCodeEnum
-移除 GenderEnum 枚举- 更新 NoticePublishStatusEnum 枚举
- 修改 UserConverter 接口
- 重构 UserImportListener 类
- 更新 UserPageVO 数据结构
2024-10-31 01:23:39 +08:00
Ray.Hao
e1f61e2d22 refactor: banner.txt 项目的版本号动态读取 pom.xml 的 project.version 2024-10-30 15:16:25 +08:00
Ky10
a682ca725c refactor: 将 dictionary 组件重命名为 dict
- 在查询表单和数据表单中,将 <dictionary> 标签替换为 <dict>
- 该改动统一了字典组件的使用,提高了代码的一致性和可维护性
2024-10-28 19:59:39 +08:00