Commit Graph

10 Commits

Author SHA1 Message Date
lafay
c5d7e317a4 refactor: Streamline user information retrieval and validation
- Refactored the user information retrieval process to improve efficiency.
- Enhanced validation logic for input parameters in the user handler.
- Updated UserService interface to support new retrieval methods.
- Improved error handling for user status checks before responding.
2026-01-10 03:58:22 +08:00
lan
f7589ebbb8 feat: 引入依赖注入模式
- 创建Repository接口定义(UserRepository、ProfileRepository、TextureRepository等)
- 创建Repository接口实现
- 创建依赖注入容器(container.Container)
- 改造Handler层使用依赖注入(AuthHandler、UserHandler、TextureHandler)
- 创建新的路由注册方式(RegisterRoutesWithDI)
- 提供main.go示例文件展示如何使用依赖注入

同时包含之前的安全修复:
- CORS配置安全加固
- 头像URL验证安全修复
- JWT algorithm confusion漏洞修复
- Recovery中间件增强
- 敏感错误信息泄露修复
- 类型断言安全修复
2025-12-02 17:40:39 +08:00
lan
373c61f625 add docker workflow
Some checks failed
Build and Push Docker Image / build-and-push (push) Failing after 1m28s
2025-12-02 11:53:08 +08:00
lan
653acebe47 refactor: 更新Docker工作流,切换到Node基础镜像并优化依赖安装和构建输出
Some checks failed
Build and Push Docker Image / build-and-push (push) Failing after 1m15s
2025-12-02 11:49:39 +08:00
lan
d45ca9afe2 refactor: 更新Docker工作流,切换到Alpine基础镜像并添加依赖安装步骤
Some checks failed
Build and Push Docker Image / build-and-push (push) Failing after 10s
2025-12-02 11:47:51 +08:00
lan
71c8e1b9d2 refactor: 移除旧的Docker工作流,整合Kaniko构建流程并优化标签生成
Some checks failed
Build and Push Docker Image / build-and-push (push) Failing after 9s
2025-12-02 11:46:32 +08:00
lan
79afaddeb3 feat: 添加Docker服务支持和等待机制,优化镜像构建流程 2025-12-02 11:42:01 +08:00
lan
394ae7c953 refactor: 优化Docker工作流,简化标签生成和镜像构建步骤 2025-12-02 11:38:38 +08:00
lan
23be1c563d refactor: 移除不必要的配置依赖,简化上传URL生成逻辑并添加公开访问URL支持 2025-12-02 11:22:14 +08:00
lan
4b4980820f chore: 初始化仓库,排除二进制文件和覆盖率文件
Some checks failed
SonarQube Analysis / sonarqube (push) Has been cancelled
Test / test (push) Has been cancelled
Test / lint (push) Has been cancelled
Test / build (push) Has been cancelled
2025-11-28 23:30:49 +08:00