From 2e273cbded02737a19abc20f0e3682e79587c987 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BC=A0=E6=96=8C?= <259278618@qq.com> Date: Fri, 28 Nov 2025 09:28:17 +0800 Subject: [PATCH] =?UTF-8?q?swagger=E8=81=9A=E5=90=88=E5=B0=81=E8=A3=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- http/http.go | 28 +--------------------------- swagger/swagger.go | 28 +++++++++++++++++++++++++++- 2 files changed, 28 insertions(+), 28 deletions(-) diff --git a/http/http.go b/http/http.go index 6a18287..30c041d 100644 --- a/http/http.go +++ b/http/http.go @@ -36,33 +36,7 @@ var Httpclient = g.Client() func init() { //s.Use(common.Cors) //中间件验证 //s.EnablePProf() //启用性能分析 - Httpserver.SetOpenApiPath("/api.json") - Httpserver.SetSwaggerPath("/docs") //api文档访问路径 - Httpserver.SetDumpRouterMap(true) //关闭打印路由注册信息 - Httpserver.SetSwaggerUITemplate(` - - -
- - - -