feat: 整合swagger-ui文档主题, 并优化文档页面渲染
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user