feat(lyra): 搭建基础骨架与配置响应组件
- 使用 Viper 加载 TOML 配置 - 定义统一响应、业务错误码及响应辅助函数 - 添加分层职责约束并同步架构文档
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
# handler 包
|
||||
|
||||
- 负责参数绑定、API DTO 与内部模型的相互转换、响应输出。
|
||||
- 引用 internal/api 的 DTO,使用 Gin 完成绑定与响应。
|
||||
- 调用 service 时传递标准 context.Context,不下传 gin.Context。
|
||||
Reference in New Issue
Block a user