gf/protocol/goai/goai_info.go

31 lines
1012 B
Go
Raw Normal View History

2021-10-02 18:54:06 +08:00
// Copyright GoFrame Author(https://goframe.org). All Rights Reserved.
//
// This Source Code Form is subject to the terms of the MIT License.
// If a copy of the MIT was not distributed with this file,
// You can obtain one at https://github.com/gogf/gf.
2021-10-02 14:52:28 +08:00
package goai
// Info is specified by OpenAPI/Swagger standard version 3.0.
type Info struct {
2022-03-24 21:56:37 +08:00
Title string `json:"title"`
Description string `json:"description,omitempty"`
TermsOfService string `json:"termsOfService,omitempty"`
Contact *Contact `json:"contact,omitempty"`
License *License `json:"license,omitempty"`
Version string `json:"version"`
2021-10-02 14:52:28 +08:00
}
// Contact is specified by OpenAPI/Swagger standard version 3.0.
type Contact struct {
2022-03-24 21:56:37 +08:00
Name string `json:"name,omitempty"`
URL string `json:"url,omitempty"`
Email string `json:"email,omitempty"`
2021-10-02 14:52:28 +08:00
}
// License is specified by OpenAPI/Swagger standard version 3.0.
type License struct {
2022-03-24 21:56:37 +08:00
Name string `json:"name"`
URL string `json:"url,omitempty"`
2021-10-02 14:52:28 +08:00
}