 耗子andClaude Opus 4.8
|
443516a2cf
|
refactor!: 迁移至 samber/do 依赖注入与三层架构
依赖注入:
- 移除 google/wire(含 wire.go/wire_gen.go 与全部 ProviderSet),
改用 samber/do v2 单注入器 + 双入口惰性构建
- 贡献模型替代命令式注册:路由 routes:、命令 commands:、
任务 jobs: 前缀经 internal/registry 收集与校验
- 构造函数统一 func NewXxx(i do.Injector) (T, error)
三层架构:
- 补全用例层:每个 biz.XxxRepo 配 XxxUsecase,
service/command/job 表现层只依赖用例,不再直接引用仓储
路由与文档:
- route/http.go 按域拆为声明式 Endpoint 贡献,
Endpoint 承载登录白名单与端点限流语义
- 调试模式下提供 OpenAPI 3.1 文档:/openapi.json 与 /docs(Scalar),
从 validate 标签生成
目录与依赖:
- internal/http/{middleware,request,rule} 拍平至 internal/*
- CLI 命令拆至 internal/command
- 日志轮转 timberjack 换为 libtnb/logrotate
- 升级 validator/cron/sessions/gormstore/sqlite/securecookie
- 数据库迁移保持 gormigrate 不变
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
|
2026-07-09 21:54:22 +08:00 |
|
耗子
|
f5ad988576
|
feat: 替换验证器实现
|
2026-07-03 00:22:23 +08:00 |
|
耗子
|
f08136242e
|
feat: 已安装应用列表显示运行状态
|
2026-05-06 18:05:19 +08:00 |
|
半岛的蒟蒻bddjr
|
e947259b86
|
fix: go.mod module github.com/acepanel/panel/v3 (#1423)
|
2026-02-25 18:07:00 +08:00 |
|
耗子
|
e77863d469
|
fix: run go fix ./...
|
2026-02-19 22:08:16 +08:00 |
|
 
|
5ee2409b87
|
feat: add parameter tuning tabs for Nginx, MySQL, PostgreSQL, Redis, Memcached, Pure-FTPd (#1343)
* Initial plan
* feat: add config_tune backend endpoints for nginx, mysql, postgresql, redis, memcached, pureftpd
Co-authored-by: devhaozi <115467771+devhaozi@users.noreply.github.com>
* feat: add config tune frontend for nginx, mysql, postgresql, redis, memcached, pureftpd
Co-authored-by: devhaozi <115467771+devhaozi@users.noreply.github.com>
* fix: address code review feedback for postgresql and pureftpd config parsers
Co-authored-by: devhaozi <115467771+devhaozi@users.noreply.github.com>
* fix: lint
* feat: 自动刷新各配置状态
---------
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: devhaozi <115467771+devhaozi@users.noreply.github.com>
Co-authored-by: 耗子 <haozi@loli.email>
|
2026-02-08 05:50:27 +08:00 |
|
耗子
|
5ee35cbd30
|
refactor: rename module
|
2025-09-18 23:24:03 +08:00 |
|
耗子
|
5584cc18cb
|
refactor: 重命名项目
|
2025-07-23 04:50:25 +08:00 |
|
耗子
|
3b7bf35bf3
|
fix: lint
|
2025-04-12 05:55:18 +08:00 |
|
耗子
|
771a9d1f28
|
feat: 完成应用翻译
|
2025-04-12 05:25:25 +08:00 |
|
耗子
|
e6b3858937
|
fix: lint
|
2025-04-05 20:10:53 +08:00 |
|
耗子
|
8b0e7bcaa9
|
refactor: 新年快乐
|
2025-01-01 15:33:47 +08:00 |
|
耗子
|
a64660d0cb
|
refactor: 应用支持依赖注入
|
2024-12-16 02:01:31 +08:00 |
|
耗子
|
567f3ab693
|
fix: lint
|
2024-11-02 18:18:29 +08:00 |
|
耗子
|
aa162e12db
|
feat: 支持memcached
|
2024-11-02 17:48:52 +08:00 |
|