feat: swagger server
This commit is contained in:
@@ -94,8 +94,16 @@ func NewGenerate() *Generate {
|
||||
},
|
||||
},
|
||||
Security: []openapi3.SecurityRequirement{},
|
||||
Servers: []*openapi3.Server{},
|
||||
Tags: []*openapi3.Tag{},
|
||||
Servers: []*openapi3.Server{
|
||||
{
|
||||
Extensions: nil,
|
||||
Origin: nil,
|
||||
URL: "http://127.0.0.1:8080/v1",
|
||||
Description: "开发环境",
|
||||
Variables: nil,
|
||||
},
|
||||
},
|
||||
Tags: []*openapi3.Tag{},
|
||||
/*ExternalDocs: &openapi3.ExternalDocs{
|
||||
Extensions: map[string]any{},
|
||||
Origin: nil,
|
||||
|
||||
Reference in New Issue
Block a user