- 注册 GET /hello,使用统一响应结构并添加路由回归测试 - 使用 lyra.toml 配置 Gin 模式与监听地址,处理启动错误 - 明确 handler/service 业务分包约定并同步文档
8 lines
208 B
TOML
8 lines
208 B
TOML
[app]
|
|
name = "lyra"
|
|
env = "debug" #gin支持 release | test | debug 3种mode,如果需要自定义,需要映射到这3种mode中去,gin的默认模式是debug模式
|
|
|
|
[http]
|
|
host = "0.0.0.0"
|
|
port = 7777
|