github.com/gogf/gf/v2@v2.7.4/net/goai/goai_info.go (about) 1 // Copyright GoFrame Author(https://goframe.org). All Rights Reserved. 2 // 3 // This Source Code Form is subject to the terms of the MIT License. 4 // If a copy of the MIT was not distributed with this file, 5 // You can obtain one at https://github.com/gogf/gf. 6 7 package goai 8 9 // Info is specified by OpenAPI/Swagger standard version 3.0. 10 type Info struct { 11 Title string `json:"title"` 12 Description string `json:"description,omitempty"` 13 TermsOfService string `json:"termsOfService,omitempty"` 14 Contact *Contact `json:"contact,omitempty"` 15 License *License `json:"license,omitempty"` 16 Version string `json:"version"` 17 } 18 19 // Contact is specified by OpenAPI/Swagger standard version 3.0. 20 type Contact struct { 21 Name string `json:"name,omitempty"` 22 URL string `json:"url,omitempty"` 23 Email string `json:"email,omitempty"` 24 } 25 26 // License is specified by OpenAPI/Swagger standard version 3.0. 27 type License struct { 28 Name string `json:"name"` 29 URL string `json:"url,omitempty"` 30 }