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.

114 lines
2.2 KiB

  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/gitea/modules/structs"
  7. )
  8. // Issue
  9. // swagger:response Issue
  10. type swaggerResponseIssue struct {
  11. // in:body
  12. Body api.Issue `json:"body"`
  13. }
  14. // IssueList
  15. // swagger:response IssueList
  16. type swaggerResponseIssueList struct {
  17. // in:body
  18. Body []api.Issue `json:"body"`
  19. }
  20. // Comment
  21. // swagger:response Comment
  22. type swaggerResponseComment struct {
  23. // in:body
  24. Body api.Comment `json:"body"`
  25. }
  26. // CommentList
  27. // swagger:response CommentList
  28. type swaggerResponseCommentList struct {
  29. // in:body
  30. Body []api.Comment `json:"body"`
  31. }
  32. // Label
  33. // swagger:response Label
  34. type swaggerResponseLabel struct {
  35. // in:body
  36. Body api.Label `json:"body"`
  37. }
  38. // LabelList
  39. // swagger:response LabelList
  40. type swaggerResponseLabelList struct {
  41. // in:body
  42. Body []api.Label `json:"body"`
  43. }
  44. // Milestone
  45. // swagger:response Milestone
  46. type swaggerResponseMilestone struct {
  47. // in:body
  48. Body api.Milestone `json:"body"`
  49. }
  50. // MilestoneList
  51. // swagger:response MilestoneList
  52. type swaggerResponseMilestoneList struct {
  53. // in:body
  54. Body []api.Milestone `json:"body"`
  55. }
  56. // TrackedTime
  57. // swagger:response TrackedTime
  58. type swaggerResponseTrackedTime struct {
  59. // in:body
  60. Body api.TrackedTime `json:"body"`
  61. }
  62. // TrackedTimeList
  63. // swagger:response TrackedTimeList
  64. type swaggerResponseTrackedTimeList struct {
  65. // in:body
  66. Body []api.TrackedTime `json:"body"`
  67. }
  68. // IssueDeadline
  69. // swagger:response IssueDeadline
  70. type swaggerIssueDeadline struct {
  71. // in:body
  72. Body api.IssueDeadline `json:"body"`
  73. }
  74. // StopWatch
  75. // swagger:response StopWatch
  76. type swaggerResponseStopWatch struct {
  77. // in:body
  78. Body api.StopWatch `json:"body"`
  79. }
  80. // StopWatchList
  81. // swagger:response StopWatchList
  82. type swaggerResponseStopWatchList struct {
  83. // in:body
  84. Body []api.StopWatch `json:"body"`
  85. }
  86. // Reaction
  87. // swagger:response Reaction
  88. type swaggerReaction struct {
  89. // in:body
  90. Body api.Reaction `json:"body"`
  91. }
  92. // ReactionList
  93. // swagger:response ReactionList
  94. type swaggerReactionList struct {
  95. // in:body
  96. Body []api.Reaction `json:"body"`
  97. }