机卡分离复机接口
All checks were successful
构建并部署到测试环境(无 SSH) / build-and-deploy (push) Successful in 8m1s

This commit is contained in:
2026-05-14 09:50:48 +08:00
parent 81aa3c2b11
commit d597a25c69
10 changed files with 190 additions and 14 deletions

View File

@@ -100,6 +100,15 @@ function buildAgentSign({ method, path, query, body, timestamp, nonce, account,
Auth: true,
SecurityScheme: openapi.SecuritySchemeAgentOpenAPI,
})
Register(router, doc, basePath, "POST", "/cards/resume", handler.ResumeCard, RouteSpec{
Summary: "机卡分离卡复机",
Description: authDescription + "\n\n按 card_no 调用上游复机接口。调用前检查本地落库的 Gateway 卡状态扩展字段,仅当 gateway_extend 等于“机卡分离停机”时允许复机,否则返回“仅允许机卡分离状态下的卡复机”。",
Input: new(dto.AgentOpenAPICardResumeRequest),
Output: new(dto.AgentOpenAPICardResumeResponse),
Tags: []string{tag},
Auth: true,
SecurityScheme: openapi.SecuritySchemeAgentOpenAPI,
})
Register(router, doc, basePath, "GET", "/packages", handler.ListPackages, RouteSpec{
Summary: "查询套餐列表",
Description: authDescription + "\n\n分页查询当前账号可购买的套餐返回套餐基础信息和价格。",