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.

issue.go 2.4KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127
  1. // Copyright 2017 The Gitea Authors. All rights reserved.
  2. // SPDX-License-Identifier: MIT
  3. package swagger
  4. import (
  5. api "code.gitea.io/gitea/modules/structs"
  6. )
  7. // Issue
  8. // swagger:response Issue
  9. type swaggerResponseIssue struct {
  10. // in:body
  11. Body api.Issue `json:"body"`
  12. }
  13. // IssueList
  14. // swagger:response IssueList
  15. type swaggerResponseIssueList struct {
  16. // in:body
  17. Body []api.Issue `json:"body"`
  18. }
  19. // Comment
  20. // swagger:response Comment
  21. type swaggerResponseComment struct {
  22. // in:body
  23. Body api.Comment `json:"body"`
  24. }
  25. // CommentList
  26. // swagger:response CommentList
  27. type swaggerResponseCommentList struct {
  28. // in:body
  29. Body []api.Comment `json:"body"`
  30. }
  31. // TimelineList
  32. // swagger:response TimelineList
  33. type swaggerResponseTimelineList struct {
  34. // in:body
  35. Body []api.TimelineComment `json:"body"`
  36. }
  37. // Label
  38. // swagger:response Label
  39. type swaggerResponseLabel struct {
  40. // in:body
  41. Body api.Label `json:"body"`
  42. }
  43. // LabelList
  44. // swagger:response LabelList
  45. type swaggerResponseLabelList struct {
  46. // in:body
  47. Body []api.Label `json:"body"`
  48. }
  49. // Milestone
  50. // swagger:response Milestone
  51. type swaggerResponseMilestone struct {
  52. // in:body
  53. Body api.Milestone `json:"body"`
  54. }
  55. // MilestoneList
  56. // swagger:response MilestoneList
  57. type swaggerResponseMilestoneList struct {
  58. // in:body
  59. Body []api.Milestone `json:"body"`
  60. }
  61. // TrackedTime
  62. // swagger:response TrackedTime
  63. type swaggerResponseTrackedTime struct {
  64. // in:body
  65. Body api.TrackedTime `json:"body"`
  66. }
  67. // TrackedTimeList
  68. // swagger:response TrackedTimeList
  69. type swaggerResponseTrackedTimeList struct {
  70. // in:body
  71. Body []api.TrackedTime `json:"body"`
  72. }
  73. // IssueDeadline
  74. // swagger:response IssueDeadline
  75. type swaggerIssueDeadline struct {
  76. // in:body
  77. Body api.IssueDeadline `json:"body"`
  78. }
  79. // IssueTemplates
  80. // swagger:response IssueTemplates
  81. type swaggerIssueTemplates struct {
  82. // in:body
  83. Body []api.IssueTemplate `json:"body"`
  84. }
  85. // StopWatch
  86. // swagger:response StopWatch
  87. type swaggerResponseStopWatch struct {
  88. // in:body
  89. Body api.StopWatch `json:"body"`
  90. }
  91. // StopWatchList
  92. // swagger:response StopWatchList
  93. type swaggerResponseStopWatchList struct {
  94. // in:body
  95. Body []api.StopWatch `json:"body"`
  96. }
  97. // Reaction
  98. // swagger:response Reaction
  99. type swaggerReaction struct {
  100. // in:body
  101. Body api.Reaction `json:"body"`
  102. }
  103. // ReactionList
  104. // swagger:response ReactionList
  105. type swaggerReactionList struct {
  106. // in:body
  107. Body []api.Reaction `json:"body"`
  108. }