fix: 修复 OpenAPI 文档生成器启动 panic,路由缺少 path parameter 定义
All checks were successful
构建并部署到测试环境(无 SSH) / build-and-deploy (push) Successful in 7m2s
All checks were successful
构建并部署到测试环境(无 SSH) / build-and-deploy (push) Successful in 7m2s
- 新增 UpdateWechatConfigParams/AgentOfflinePayParams 聚合结构体,嵌入 IDReq 提供 path:id 标签 - 修复 PUT /:id 和 POST /:id/offline-pay 路由的 Input 引用 - 修复 Makefile 构建路径从单文件改为包路径,解决多文件编译问题 - 标记 tasks.md 中 1.2.4 迁移任务为已完成
This commit is contained in:
@@ -48,7 +48,7 @@ func registerAgentRechargeRoutes(router fiber.Router, handler *admin.AgentRechar
|
||||
Register(group, doc, groupPath, "POST", "/:id/offline-pay", handler.OfflinePay, RouteSpec{
|
||||
Summary: "确认线下充值",
|
||||
Tags: []string{"代理预充值"},
|
||||
Input: new(dto.AgentOfflinePayRequest),
|
||||
Input: new(dto.AgentOfflinePayParams),
|
||||
Output: new(dto.AgentRechargeResponse),
|
||||
Auth: true,
|
||||
})
|
||||
|
||||
@@ -58,7 +58,7 @@ func registerWechatConfigRoutes(router fiber.Router, handler *admin.WechatConfig
|
||||
Register(group, doc, groupPath, "PUT", "/:id", handler.Update, RouteSpec{
|
||||
Summary: "更新支付配置",
|
||||
Tags: []string{"微信支付配置管理"},
|
||||
Input: new(dto.UpdateWechatConfigRequest),
|
||||
Input: new(dto.UpdateWechatConfigParams),
|
||||
Output: new(dto.WechatConfigResponse),
|
||||
Auth: true,
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user