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.9KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156
  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. // TagList
  33. // swagger:response TagList
  34. type swaggerReponseTagList struct {
  35. // in:body
  36. Body []api.Tag `json:"body"`
  37. }
  38. // Reference
  39. // swagger:response Reference
  40. type swaggerResponseReference struct {
  41. // in:body
  42. Body api.Reference `json:"body"`
  43. }
  44. // ReferenceList
  45. // swagger:response ReferenceList
  46. type swaggerResponseReferenceList struct {
  47. // in:body
  48. Body []api.Reference `json:"body"`
  49. }
  50. // Hook
  51. // swagger:response Hook
  52. type swaggerResponseHook struct {
  53. // in:body
  54. Body []api.Branch `json:"body"`
  55. }
  56. // HookList
  57. // swagger:response HookList
  58. type swaggerResponseHookList struct {
  59. // in:body
  60. Body []api.Branch `json:"body"`
  61. }
  62. // Release
  63. // swagger:response Release
  64. type swaggerResponseRelease struct {
  65. // in:body
  66. Body api.Release `json:"body"`
  67. }
  68. // ReleaseList
  69. // swagger:response ReleaseList
  70. type swaggerResponseReleaseList struct {
  71. // in:body
  72. Body []api.Release `json:"body"`
  73. }
  74. // PullRequest
  75. // swagger:response PullRequest
  76. type swaggerResponsePullRequest struct {
  77. // in:body
  78. Body api.PullRequest `json:"body"`
  79. }
  80. // PullRequestList
  81. // swagger:response PullRequestList
  82. type swaggerResponsePullRequestList struct {
  83. // in:body
  84. Body []api.PullRequest `json:"body"`
  85. }
  86. // Status
  87. // swagger:response Status
  88. type swaggerResponseStatus struct {
  89. // in:body
  90. Body api.Status `json:"body"`
  91. }
  92. // StatusList
  93. // swagger:response StatusList
  94. type swaggerResponseStatusList struct {
  95. // in:body
  96. Body []api.Status `json:"body"`
  97. }
  98. // WatchInfo
  99. // swagger:response WatchInfo
  100. type swaggerResponseWatchInfo struct {
  101. // in:body
  102. Body api.WatchInfo `json:"body"`
  103. }
  104. // SearchResults
  105. // swagger:response SearchResults
  106. type swaggerResponseSearchResults struct {
  107. // in:body
  108. Body api.SearchResults `json:"body"`
  109. }
  110. // AttachmentList
  111. // swagger:response AttachmentList
  112. type swaggerResponseAttachmentList struct {
  113. //in: body
  114. Body []api.Attachment `json:"body"`
  115. }
  116. // Attachment
  117. // swagger:response Attachment
  118. type swaggerResponseAttachment struct {
  119. //in: body
  120. Body api.Attachment `json:"body"`
  121. }
  122. // GitTreeResponse
  123. // swagger:response GitTreeResponse
  124. type swaggerGitTreeResponse struct {
  125. //in: body
  126. Body api.GitTreeResponse `json:"body"`
  127. }
  128. // Commit
  129. // swagger:response Commit
  130. type swaggerCommit struct {
  131. //in: body
  132. Body api.Commit `json:"body"`
  133. }