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

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104
  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. // swagger:response Repository
  9. type swaggerResponseRepository struct {
  10. // in:body
  11. Body api.Repository `json:"body"`
  12. }
  13. // swagger:response RepositoryList
  14. type swaggerResponseRepositoryList struct {
  15. // in:body
  16. Body []api.Repository `json:"body"`
  17. }
  18. // swagger:response Branch
  19. type swaggerResponseBranch struct {
  20. // in:body
  21. Body api.Branch `json:"body"`
  22. }
  23. // swagger:response BranchList
  24. type swaggerResponseBranchList struct {
  25. // in:body
  26. Body []api.Branch `json:"body"`
  27. }
  28. // swagger:response Hook
  29. type swaggerResponseHook struct {
  30. // in:body
  31. Body []api.Branch `json:"body"`
  32. }
  33. // swagger:response HookList
  34. type swaggerResponseHookList struct {
  35. // in:body
  36. Body []api.Branch `json:"body"`
  37. }
  38. // swagger:response Release
  39. type swaggerResponseRelease struct {
  40. // in:body
  41. Body api.Release `json:"body"`
  42. }
  43. // swagger:response ReleaseList
  44. type swaggerResponseReleaseList struct {
  45. // in:body
  46. Body []api.Release `json:"body"`
  47. }
  48. // swagger:response PullRequest
  49. type swaggerResponsePullRequest struct {
  50. // in:body
  51. Body api.PullRequest `json:"body"`
  52. }
  53. // swagger:response PullRequestList
  54. type swaggerResponsePullRequestList struct {
  55. // in:body
  56. Body []api.PullRequest `json:"body"`
  57. }
  58. // swagger:response Status
  59. type swaggerResponseStatus struct {
  60. // in:body
  61. Body api.Status `json:"body"`
  62. }
  63. // swagger:response StatusList
  64. type swaggerResponseStatusList struct {
  65. // in:body
  66. Body []api.Status `json:"body"`
  67. }
  68. // swagger:response WatchInfo
  69. type swaggerResponseWatchInfo struct {
  70. // in:body
  71. Body api.WatchInfo `json:"body"`
  72. }
  73. // swagger:response SearchResults
  74. type swaggerResponseSearchResults struct {
  75. Body api.SearchResults `json:"body"`
  76. }
  77. // swagger:response AttachmentList
  78. type swaggerResponseAttachmentList struct {
  79. //in: body
  80. Body []api.Attachment `json:"body"`
  81. }
  82. // swagger:response Attachment
  83. type swaggerResponseAttachment struct {
  84. //in: body
  85. Body api.Attachment `json:"body"`
  86. }