feat: 整合swagger-ui文档主题, 并优化文档页面渲染

This commit is contained in:
2026-01-08 12:18:07 +08:00
parent e673ee2479
commit c18887d5a7
22 changed files with 22239 additions and 10 deletions

View File

@@ -11,6 +11,7 @@ import (
"testing"
"time"
"git.zhangdeman.cn/zhangdeman/consts"
"git.zhangdeman.cn/zhangdeman/rate_limit"
"github.com/gin-gonic/gin"
)
@@ -19,7 +20,7 @@ func TestNewServer(t *testing.T) {
s := NewServer(9087, WithRateLimitInstance(rate_limit.MemoryClient), WithDocConfig(&DocConfig{
Enable: true,
UiTheme: "elements",
UiTheme: consts.SwaggerUIThemeSwaggerUI.String(),
BaseUri: "",
Flag: "test-server",
ServerList: nil,