goai_info.go 1012 B

123456789101112131415161718192021222324252627282930
  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. package goai
  7. // Info is specified by OpenAPI/Swagger standard version 3.0.
  8. type Info struct {
  9. Title string `json:"title"`
  10. Description string `json:"description,omitempty"`
  11. TermsOfService string `json:"termsOfService,omitempty"`
  12. Contact *Contact `json:"contact,omitempty"`
  13. License *License `json:"license,omitempty"`
  14. Version string `json:"version"`
  15. }
  16. // Contact is specified by OpenAPI/Swagger standard version 3.0.
  17. type Contact struct {
  18. Name string `json:"name,omitempty"`
  19. URL string `json:"url,omitempty"`
  20. Email string `json:"email,omitempty"`
  21. }
  22. // License is specified by OpenAPI/Swagger standard version 3.0.
  23. type License struct {
  24. Name string `json:"name"`
  25. URL string `json:"url,omitempty"`
  26. }