feat(goctl): support custom Swagger response status (#5691)

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
Kevin Wan
2026-07-19 23:57:26 +08:00
committed by GitHub
parent 6a6b81ef20
commit 565bcb3f21
7 changed files with 183 additions and 45 deletions

View File

@@ -84,6 +84,7 @@ type (
service Swagger {
@doc (
description: "form 接口"
respCode: "201" // 对应 Swagger 的 HTTP 状态码
)
@handler form
post /form (FormReq) returns (FormResp)
@@ -244,4 +245,3 @@ service Swagger {
@handler jsonComplex
post /json/complex (ComplexJsonReq) returns (ComplexJsonResp)
}