2017-11-13 15:02:25 +08:00
|
|
|
// Copyright 2017 The Gitea Authors. All rights reserved.
|
2022-11-28 02:20:29 +08:00
|
|
|
// SPDX-License-Identifier: MIT
|
2017-11-13 15:02:25 +08:00
|
|
|
|
|
|
|
package swagger
|
|
|
|
|
|
|
|
import (
|
2019-05-11 18:21:34 +08:00
|
|
|
api "code.gitea.io/gitea/modules/structs"
|
2017-11-13 15:02:25 +08:00
|
|
|
)
|
|
|
|
|
2018-05-31 19:13:55 +08:00
|
|
|
// Issue
|
2017-11-13 15:02:25 +08:00
|
|
|
// swagger:response Issue
|
|
|
|
type swaggerResponseIssue struct {
|
|
|
|
// in:body
|
|
|
|
Body api.Issue `json:"body"`
|
|
|
|
}
|
|
|
|
|
2018-05-31 19:13:55 +08:00
|
|
|
// IssueList
|
2017-11-13 15:02:25 +08:00
|
|
|
// swagger:response IssueList
|
|
|
|
type swaggerResponseIssueList struct {
|
|
|
|
// in:body
|
|
|
|
Body []api.Issue `json:"body"`
|
|
|
|
}
|
|
|
|
|
2018-05-31 19:13:55 +08:00
|
|
|
// Comment
|
2017-11-13 15:02:25 +08:00
|
|
|
// swagger:response Comment
|
|
|
|
type swaggerResponseComment struct {
|
|
|
|
// in:body
|
|
|
|
Body api.Comment `json:"body"`
|
|
|
|
}
|
|
|
|
|
2018-05-31 19:13:55 +08:00
|
|
|
// CommentList
|
2017-11-13 15:02:25 +08:00
|
|
|
// swagger:response CommentList
|
|
|
|
type swaggerResponseCommentList struct {
|
|
|
|
// in:body
|
|
|
|
Body []api.Comment `json:"body"`
|
|
|
|
}
|
|
|
|
|
2022-01-01 22:12:25 +08:00
|
|
|
// TimelineList
|
|
|
|
// swagger:response TimelineList
|
|
|
|
type swaggerResponseTimelineList struct {
|
|
|
|
// in:body
|
|
|
|
Body []api.TimelineComment `json:"body"`
|
|
|
|
}
|
|
|
|
|
2018-05-31 19:13:55 +08:00
|
|
|
// Label
|
2017-11-13 15:02:25 +08:00
|
|
|
// swagger:response Label
|
|
|
|
type swaggerResponseLabel struct {
|
|
|
|
// in:body
|
|
|
|
Body api.Label `json:"body"`
|
|
|
|
}
|
|
|
|
|
2018-05-31 19:13:55 +08:00
|
|
|
// LabelList
|
2017-11-13 15:02:25 +08:00
|
|
|
// swagger:response LabelList
|
|
|
|
type swaggerResponseLabelList struct {
|
|
|
|
// in:body
|
|
|
|
Body []api.Label `json:"body"`
|
|
|
|
}
|
|
|
|
|
2018-05-31 19:13:55 +08:00
|
|
|
// Milestone
|
2017-11-13 15:02:25 +08:00
|
|
|
// swagger:response Milestone
|
|
|
|
type swaggerResponseMilestone struct {
|
|
|
|
// in:body
|
|
|
|
Body api.Milestone `json:"body"`
|
|
|
|
}
|
|
|
|
|
2018-05-31 19:13:55 +08:00
|
|
|
// MilestoneList
|
2017-11-13 15:02:25 +08:00
|
|
|
// swagger:response MilestoneList
|
|
|
|
type swaggerResponseMilestoneList struct {
|
|
|
|
// in:body
|
|
|
|
Body []api.Milestone `json:"body"`
|
|
|
|
}
|
|
|
|
|
2018-05-31 19:13:55 +08:00
|
|
|
// TrackedTime
|
2017-11-13 15:02:25 +08:00
|
|
|
// swagger:response TrackedTime
|
|
|
|
type swaggerResponseTrackedTime struct {
|
|
|
|
// in:body
|
|
|
|
Body api.TrackedTime `json:"body"`
|
|
|
|
}
|
|
|
|
|
2018-05-31 19:13:55 +08:00
|
|
|
// TrackedTimeList
|
2017-11-13 15:02:25 +08:00
|
|
|
// swagger:response TrackedTimeList
|
|
|
|
type swaggerResponseTrackedTimeList struct {
|
|
|
|
// in:body
|
|
|
|
Body []api.TrackedTime `json:"body"`
|
|
|
|
}
|
2018-07-16 20:43:00 +08:00
|
|
|
|
|
|
|
// IssueDeadline
|
|
|
|
// swagger:response IssueDeadline
|
|
|
|
type swaggerIssueDeadline struct {
|
|
|
|
// in:body
|
|
|
|
Body api.IssueDeadline `json:"body"`
|
|
|
|
}
|
2019-12-08 06:04:19 +08:00
|
|
|
|
2020-09-11 22:48:39 +08:00
|
|
|
// IssueTemplates
|
|
|
|
// swagger:response IssueTemplates
|
|
|
|
type swaggerIssueTemplates struct {
|
|
|
|
// in:body
|
|
|
|
Body []api.IssueTemplate `json:"body"`
|
|
|
|
}
|
|
|
|
|
2019-12-12 12:23:05 +08:00
|
|
|
// StopWatch
|
|
|
|
// swagger:response StopWatch
|
|
|
|
type swaggerResponseStopWatch struct {
|
|
|
|
// in:body
|
|
|
|
Body api.StopWatch `json:"body"`
|
|
|
|
}
|
|
|
|
|
|
|
|
// StopWatchList
|
|
|
|
// swagger:response StopWatchList
|
|
|
|
type swaggerResponseStopWatchList struct {
|
|
|
|
// in:body
|
|
|
|
Body []api.StopWatch `json:"body"`
|
|
|
|
}
|
|
|
|
|
2019-12-31 16:21:21 +08:00
|
|
|
// Reaction
|
|
|
|
// swagger:response Reaction
|
|
|
|
type swaggerReaction struct {
|
2019-12-08 06:04:19 +08:00
|
|
|
// in:body
|
2019-12-31 16:21:21 +08:00
|
|
|
Body api.Reaction `json:"body"`
|
2019-12-08 06:04:19 +08:00
|
|
|
}
|
|
|
|
|
2019-12-31 16:21:21 +08:00
|
|
|
// ReactionList
|
|
|
|
// swagger:response ReactionList
|
|
|
|
type swaggerReactionList struct {
|
2019-12-08 06:04:19 +08:00
|
|
|
// in:body
|
2019-12-31 16:21:21 +08:00
|
|
|
Body []api.Reaction `json:"body"`
|
2019-12-08 06:04:19 +08:00
|
|
|
}
|