2017-11-13 00:02:25 -07:00
|
|
|
// Copyright 2017 The Gitea Authors. All rights reserved.
|
|
|
|
// Use of this source code is governed by a MIT-style
|
|
|
|
// license that can be found in the LICENSE file.
|
|
|
|
|
|
|
|
package swagger
|
|
|
|
|
|
|
|
import (
|
2019-05-11 04:21:34 -06:00
|
|
|
api "code.gitea.io/gitea/modules/structs"
|
2017-11-13 00:02:25 -07:00
|
|
|
)
|
|
|
|
|
2018-05-31 05:13:55 -06:00
|
|
|
// Issue
|
2017-11-13 00:02:25 -07:00
|
|
|
// swagger:response Issue
|
|
|
|
type swaggerResponseIssue struct {
|
|
|
|
// in:body
|
|
|
|
Body api.Issue `json:"body"`
|
|
|
|
}
|
|
|
|
|
2018-05-31 05:13:55 -06:00
|
|
|
// IssueList
|
2017-11-13 00:02:25 -07:00
|
|
|
// swagger:response IssueList
|
|
|
|
type swaggerResponseIssueList struct {
|
|
|
|
// in:body
|
|
|
|
Body []api.Issue `json:"body"`
|
|
|
|
}
|
|
|
|
|
2018-05-31 05:13:55 -06:00
|
|
|
// Comment
|
2017-11-13 00:02:25 -07:00
|
|
|
// swagger:response Comment
|
|
|
|
type swaggerResponseComment struct {
|
|
|
|
// in:body
|
|
|
|
Body api.Comment `json:"body"`
|
|
|
|
}
|
|
|
|
|
2018-05-31 05:13:55 -06:00
|
|
|
// CommentList
|
2017-11-13 00:02:25 -07:00
|
|
|
// swagger:response CommentList
|
|
|
|
type swaggerResponseCommentList struct {
|
|
|
|
// in:body
|
|
|
|
Body []api.Comment `json:"body"`
|
|
|
|
}
|
|
|
|
|
2018-05-31 05:13:55 -06:00
|
|
|
// Label
|
2017-11-13 00:02:25 -07:00
|
|
|
// swagger:response Label
|
|
|
|
type swaggerResponseLabel struct {
|
|
|
|
// in:body
|
|
|
|
Body api.Label `json:"body"`
|
|
|
|
}
|
|
|
|
|
2018-05-31 05:13:55 -06:00
|
|
|
// LabelList
|
2017-11-13 00:02:25 -07:00
|
|
|
// swagger:response LabelList
|
|
|
|
type swaggerResponseLabelList struct {
|
|
|
|
// in:body
|
|
|
|
Body []api.Label `json:"body"`
|
|
|
|
}
|
|
|
|
|
2018-05-31 05:13:55 -06:00
|
|
|
// Milestone
|
2017-11-13 00:02:25 -07:00
|
|
|
// swagger:response Milestone
|
|
|
|
type swaggerResponseMilestone struct {
|
|
|
|
// in:body
|
|
|
|
Body api.Milestone `json:"body"`
|
|
|
|
}
|
|
|
|
|
2018-05-31 05:13:55 -06:00
|
|
|
// MilestoneList
|
2017-11-13 00:02:25 -07:00
|
|
|
// swagger:response MilestoneList
|
|
|
|
type swaggerResponseMilestoneList struct {
|
|
|
|
// in:body
|
|
|
|
Body []api.Milestone `json:"body"`
|
|
|
|
}
|
|
|
|
|
2018-05-31 05:13:55 -06:00
|
|
|
// TrackedTime
|
2017-11-13 00:02:25 -07:00
|
|
|
// swagger:response TrackedTime
|
|
|
|
type swaggerResponseTrackedTime struct {
|
|
|
|
// in:body
|
|
|
|
Body api.TrackedTime `json:"body"`
|
|
|
|
}
|
|
|
|
|
2018-05-31 05:13:55 -06:00
|
|
|
// TrackedTimeList
|
2017-11-13 00:02:25 -07:00
|
|
|
// swagger:response TrackedTimeList
|
|
|
|
type swaggerResponseTrackedTimeList struct {
|
|
|
|
// in:body
|
|
|
|
Body []api.TrackedTime `json:"body"`
|
|
|
|
}
|
2018-07-16 06:43:00 -06:00
|
|
|
|
|
|
|
// IssueDeadline
|
|
|
|
// swagger:response IssueDeadline
|
|
|
|
type swaggerIssueDeadline struct {
|
|
|
|
// in:body
|
|
|
|
Body api.IssueDeadline `json:"body"`
|
|
|
|
}
|
2019-12-07 15:04:19 -07:00
|
|
|
|
2019-12-11 21:23:05 -07: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-07 15:04:19 -07:00
|
|
|
// EditReactionOption
|
|
|
|
// swagger:response EditReactionOption
|
|
|
|
type swaggerEditReactionOption struct {
|
|
|
|
// in:body
|
|
|
|
Body api.EditReactionOption `json:"body"`
|
|
|
|
}
|
|
|
|
|
|
|
|
// ReactionResponse
|
|
|
|
// swagger:response ReactionResponse
|
|
|
|
type swaggerReactionResponse struct {
|
|
|
|
// in:body
|
|
|
|
Body api.ReactionResponse `json:"body"`
|
|
|
|
}
|
|
|
|
|
|
|
|
// ReactionResponseList
|
|
|
|
// swagger:response ReactionResponseList
|
|
|
|
type swaggerReactionResponseList struct {
|
|
|
|
// in:body
|
|
|
|
Body []api.ReactionResponse `json:"body"`
|
|
|
|
}
|