You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

repo.go 2.8KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149
  1. // Copyright 2017 The Gitea Authors. All rights reserved.
  2. // Use of this source code is governed by a MIT-style
  3. // license that can be found in the LICENSE file.
  4. package swagger
  5. import (
  6. api "code.gitea.io/sdk/gitea"
  7. )
  8. // Repository
  9. // swagger:response Repository
  10. type swaggerResponseRepository struct {
  11. // in:body
  12. Body api.Repository `json:"body"`
  13. }
  14. // RepositoryList
  15. // swagger:response RepositoryList
  16. type swaggerResponseRepositoryList struct {
  17. // in:body
  18. Body []api.Repository `json:"body"`
  19. }
  20. // Branch
  21. // swagger:response Branch
  22. type swaggerResponseBranch struct {
  23. // in:body
  24. Body api.Branch `json:"body"`
  25. }
  26. // BranchList
  27. // swagger:response BranchList
  28. type swaggerResponseBranchList struct {
  29. // in:body
  30. Body []api.Branch `json:"body"`
  31. }
  32. // Reference
  33. // swagger:response Reference
  34. type swaggerResponseReference struct {
  35. // in:body
  36. Body api.Reference `json:"body"`
  37. }
  38. // ReferenceList
  39. // swagger:response ReferenceList
  40. type swaggerResponseReferenceList struct {
  41. // in:body
  42. Body []api.Reference `json:"body"`
  43. }
  44. // Hook
  45. // swagger:response Hook
  46. type swaggerResponseHook struct {
  47. // in:body
  48. Body []api.Branch `json:"body"`
  49. }
  50. // HookList
  51. // swagger:response HookList
  52. type swaggerResponseHookList struct {
  53. // in:body
  54. Body []api.Branch `json:"body"`
  55. }
  56. // Release
  57. // swagger:response Release
  58. type swaggerResponseRelease struct {
  59. // in:body
  60. Body api.Release `json:"body"`
  61. }
  62. // ReleaseList
  63. // swagger:response ReleaseList
  64. type swaggerResponseReleaseList struct {
  65. // in:body
  66. Body []api.Release `json:"body"`
  67. }
  68. // PullRequest
  69. // swagger:response PullRequest
  70. type swaggerResponsePullRequest struct {
  71. // in:body
  72. Body api.PullRequest `json:"body"`
  73. }
  74. // PullRequestList
  75. // swagger:response PullRequestList
  76. type swaggerResponsePullRequestList struct {
  77. // in:body
  78. Body []api.PullRequest `json:"body"`
  79. }
  80. // Status
  81. // swagger:response Status
  82. type swaggerResponseStatus struct {
  83. // in:body
  84. Body api.Status `json:"body"`
  85. }
  86. // StatusList
  87. // swagger:response StatusList
  88. type swaggerResponseStatusList struct {
  89. // in:body
  90. Body []api.Status `json:"body"`
  91. }
  92. // WatchInfo
  93. // swagger:response WatchInfo
  94. type swaggerResponseWatchInfo struct {
  95. // in:body
  96. Body api.WatchInfo `json:"body"`
  97. }
  98. // SearchResults
  99. // swagger:response SearchResults
  100. type swaggerResponseSearchResults struct {
  101. // in:body
  102. Body api.SearchResults `json:"body"`
  103. }
  104. // AttachmentList
  105. // swagger:response AttachmentList
  106. type swaggerResponseAttachmentList struct {
  107. //in: body
  108. Body []api.Attachment `json:"body"`
  109. }
  110. // Attachment
  111. // swagger:response Attachment
  112. type swaggerResponseAttachment struct {
  113. //in: body
  114. Body api.Attachment `json:"body"`
  115. }
  116. // GitTreeResponse
  117. // swagger:response GitTreeResponse
  118. type swaggerGitTreeResponse struct {
  119. //in: body
  120. Body api.GitTreeResponse `json:"body"`
  121. }
  122. // Commit
  123. // swagger:response Commit
  124. type swaggerCommit struct {
  125. //in: body
  126. Body api.Commit `json:"body"`
  127. }