From ada2f0b6b2ea110309c6cb83afe756f6d40fd615 Mon Sep 17 00:00:00 2001 From: Zodial Date: Tue, 10 Oct 2023 09:26:53 +0800 Subject: [PATCH] =?UTF-8?q?update:=20swagger=E6=96=87=E6=A1=A3=E7=9A=84?= =?UTF-8?q?=E6=8F=8F=E8=BF=B0=E6=81=A2=E5=A4=8Dtag=E4=BF=A1=E6=81=AF?= =?UTF-8?q?=E6=98=BE=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- console/commands/swagger.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/console/commands/swagger.go b/console/commands/swagger.go index 6fc4bfc..3cfba71 100644 --- a/console/commands/swagger.go +++ b/console/commands/swagger.go @@ -187,9 +187,8 @@ func rpcToPath(pge string, service parser.ServiceRpc, swagger *openapi.Spec, now endpoint := &openapi.Endpoint{} switch option.Key { case "http.Get", "http.Put", "http.Post", "http.Patch", "http.Delete": - service.Doc = filterTag(service.Doc) endpoint.Description = service.Doc + option.Doc - endpoint.Summary = service.Doc + option.Doc + endpoint.Summary = filterTag(service.Doc) + option.Doc endpoint.Tags = strings.Split(pge, ".") endpoint.Parameters = messageToParameters(option.Key, service.Param, nowDirProtoc, allProtoc) endpoint.Responses = map[string]*openapi.Response{