Commit Graph

21 Commits

Author SHA1 Message Date
Grand-cocoa
0374346f6a refactor(util): 重构 MFAUtil 并优化相关服务
All checks were successful
Sakura-Miki-build / Automatic-Packaging (push) Successful in 4m48s
- 移除了 DownloadUtil 中的注释代码
- 修改了 MFAGenerateService 中的 MFA 验证码生成逻辑
- 重构了 MFAUtil 类,增加了默认步长的 generate 方法
- 更新了 JsonUtil,添加了对象与 JSON 字符串互转的扩展函数
- 在 pom.xml 中添加了 hutool-http 依赖
2025-08-20 17:16:02 +08:00
Grand-cocoa
d3931b215c refactor(jm): 重构 JMComic 下载功能
All checks were successful
Sakura-Miki-build / Automatic-Packaging (push) Successful in 2m16s
- 优化了 OkHttpClient 实例的创建和配置
- 改进了错误处理和日志记录
- 调整了下载流程,增加了重定向处理
- 优化了变量声明和类型定义
2025-03-25 18:49:48 +08:00
Grand-cocoa
308c688f8c fix(mfa): 修复 /mfa 命令识别错误- 在 MFAGenerateService 类中,对 /mfa 命令的识别进行了改进
All checks were successful
Sakura-Miki-build / Automatic-Packaging (push) Successful in 1m11s
- 通过在 startsWith 方法前添加 trim(),去除了字符串前后的空白字符
- 这样可以避免因为空白字符导致的命令识别失败,提高命令识别的准确性
2025-03-24 17:33:28 +08:00
Grand-cocoa
4f37aace85 feat(service): 添加 JM 下载功能
All checks were successful
Sakura-Miki-build / Automatic-Packaging (push) Successful in 2m27s
- 新增 DownloadUtil 工具类,用于处理 JMComic 下载任务
- 添加 JmDownloadService 服务类,实现 /JmDownload 命令的处理
- 更新 .gitea/workflows/build-test.yaml,重命名为 package.yaml 并调整工作流名称- 修改 MFAGenerateService、RandomPhotoService 和 ExampleService,优化命令前缀和参数处理
- 新增 JsonUtil 工具类,用于解析 JSON 数据
- 更新 AlistUtil 依赖版本至 1.0.1-spring
2025-03-24 17:23:13 +08:00
Grand-cocoa
4bc526d48c refactor: 重构日志记录方式并优化部分功能
All checks were successful
Sakura-Miki-build / Explore-Gitea-Actions (push) Successful in 1m30s
- 移除各文件中的 Logger静态实例
- 在 util包下新增 LogUtil.kt 文件,提供统一的日志记录扩展属性
- 优化部分服务类中的逻辑结构
- 调整数据库查询方式,使用 KtQueryWrapper 替代 LambdaQueryWrapper
2025-03-20 18:12:07 +08:00
Grand-cocoa
ceaebd100f ci: 更新 Docker 镜像构建命令
All checks were successful
Sakura-Miki-build / Explore-Gitea-Actions (push) Successful in 1m24s
- 添加了 ./ 指定 Dockerfile 所在目录
2025-03-18 18:48:48 +08:00
Grand-cocoa
a0961f59bf ci: 更新构建测试工作流
Some checks failed
Sakura-Miki-build / Explore-Gitea-Actions (push) Failing after 1m50s
- 添加了安装 AlistUtil 依赖的步骤
2025-03-18 18:45:45 +08:00
Grand-cocoa
f16ed3e6fd ci: 更新 Maven 构建配置
Some checks failed
Sakura-Miki-build / Explore-Gitea-Actions (push) Failing after 1m14s
- 移除 Set up Maven 步骤
- 使用 ./mvnw 替代 mvn命令
2025-03-18 18:39:51 +08:00
Grand-cocoa
ae63e0f199 ci(gitea): 更新 Maven 设置
Some checks failed
Sakura-Miki-build / Explore-Gitea-Actions (push) Has been cancelled
- 添加 Set up Maven 步骤,配置 Maven 版本为 3.8.2
2025-03-18 18:32:26 +08:00
Grand-cocoa
bee67be58e ci(gitea): 更新构建测试工作流
Some checks failed
Sakura-Miki-build / Explore-Gitea-Actions (push) Failing after 3m18s
- 将 checkout动作升级到 v4 版本
- 添加设置 JDK 17 环境步骤
- 修改 Maven 构建命令,去掉 ./mvnw
- 移除 Docker 构建步骤
2025-03-18 18:19:19 +08:00
Grand-cocoa
913d129a34 ci: 更新 checkout 动作版本
Some checks failed
Sakura-Miki-build / Explore-Gitea-Actions (push) Failing after 11s
- 将 checkout 动作的引用从 'actions/checkout@4' 更新为 'actions/checkout@40a16ebeed7da831425b665e600750cb36b38d06'
2025-03-18 18:11:33 +08:00
Grand-cocoa
4143badef1 ci: 更新 GitHub Actions 依赖- 将 actions/checkout@v4 替换为 https://git.alina-dace.info/actions/checkout@4
Some checks failed
Sakura-Miki-build / Explore-Gitea-Actions (push) Failing after 9s
- 删除了多余的步骤,简化了工作流配置
2025-03-18 18:06:39 +08:00
Grand-cocoa
9f286f3dc9 feat(mfa): 实现 MFA 绑定和生成服务
Some checks failed
Sakura-Miki-build / Explore-Gitea-Actions (push) Failing after 33s
- 新增 MFA 相关的实体类、Mapper 和服务类
- 实现 MFA 绑定和生成的逻辑
- 添加 MFA 工具类,用于生成验证码
- 更新 RandomPhotoService 的 entrance 方法
- 修改日志级别为 info
- 添加 Dockerfile 和 Gitea Actions 配置
2025-03-18 17:51:41 +08:00
Grand-cocoa
c9209d1b25 refactor(randomphoto): 重构随机图片服务
- 添加日志记录功能
- 优化图片下载和压缩逻辑
- 更新发送图片的方法
- 增加调试和生产环境的日志配置
2025-01-13 11:39:32 +08:00
Grand-cocoa
c76c906881 refactor(randomphoto): 重构随机图片服务发送逻辑
- 移除 ImageUtil 相关代码,改用 bot API 发送图片- 添加 JSON 和 Channel 引用,用于构造发送消息的参数- 更新发送逻辑,使用 sendFile 和 send 方法发送图片
2024-12-14 14:14:34 +08:00
Grand-cocoa
4f8e447bdd feat(randomphoto): 优化图片下载和压缩功能
- 新增 ImageUtil 类,提供图片下载和压缩工具方法
- 重构 RandomPhotoService 类,使用新的 ImageUtil工具类处理图片
- 添加 thumbnailator 依赖,用于图片压缩处理
2024-12-11 15:52:03 +08:00
Grand-cocoa
fbfb1c1a7f feat(service): 添加随机照片服务- 新增 RandomPhotoService 类实现随机照片功能
- 添加 FileList 和 SingleFile 数据模型用于解析 JSON 响应
- 集成 AlistService 获取文件列表和文件信息
- 使用 OkHttpClient 下载图片
- 更新 application.yml 配置,添加 AList 相关设置
- 修改 ExampleService 中的 entrance 方法返回值
2024-11-11 20:48:56 +08:00
Grand-cocoa
9755545639 文档更新与代码优化
- 移除了过时的MapperScan注解,调整了相关服务的注解位置,以适应新的映射器配置。
- 对服务类中的日志对象创建方式进行了微调,采用companion object模式进行优化。
- 删除了与喝水提醒服务相关的多个文件,可能由于这些功能不再需要或被重构到其他文件中。
2024-09-23 18:41:54 +08:00
Grand-cocoa
c141438048 重构机器人登录配置与服务开启流程
- 移除未使用的登录类型枚举 `LoginType`。- 简化 `BotConfiguration` 中的 `starter` 方法,并移除注释代码。
- 在 `Initialization.kt` 中更新日志信息,并移除全局事件监听器的死代码。
-调整 `SakuramikiApplication.kt`,引入 `MapperScan` 注解以自动扫描Mapper。
- 修正 `application.yml` 中的配置格式问题。
- 在 `application-dev.yml` 和 `application-prod.yml` 中分别设置沙盒模式的配置。

此外,废弃饮用水提醒服务。

注意:部分代码调整涉及异步函数修改为同步,可能需要关注并测试相关功能的完整性。
2024-09-23 18:36:34 +08:00
Grand-cocoa
136ccc1712 initialization 2024-09-19 11:18:02 +08:00
3e7967cbaa Initial commit 2024-09-19 02:25:53 +00:00