mirror of
https://github.com/go-gitea/gitea
synced 2025-09-28 03:28:13 +00:00
Upgrade golang to 1.25.1 and add descriptions for the swagger structs' fields (#35418)
This commit is contained in:
@@ -9,12 +9,18 @@ import (
|
||||
|
||||
// Milestone milestone is a collection of issues on one repository
|
||||
type Milestone struct {
|
||||
ID int64 `json:"id"`
|
||||
Title string `json:"title"`
|
||||
Description string `json:"description"`
|
||||
State StateType `json:"state"`
|
||||
OpenIssues int `json:"open_issues"`
|
||||
ClosedIssues int `json:"closed_issues"`
|
||||
// ID is the unique identifier for the milestone
|
||||
ID int64 `json:"id"`
|
||||
// Title is the title of the milestone
|
||||
Title string `json:"title"`
|
||||
// Description provides details about the milestone
|
||||
Description string `json:"description"`
|
||||
// State indicates if the milestone is open or closed
|
||||
State StateType `json:"state"`
|
||||
// OpenIssues is the number of open issues in this milestone
|
||||
OpenIssues int `json:"open_issues"`
|
||||
// ClosedIssues is the number of closed issues in this milestone
|
||||
ClosedIssues int `json:"closed_issues"`
|
||||
// swagger:strfmt date-time
|
||||
Created time.Time `json:"created_at"`
|
||||
// swagger:strfmt date-time
|
||||
@@ -27,18 +33,26 @@ type Milestone struct {
|
||||
|
||||
// CreateMilestoneOption options for creating a milestone
|
||||
type CreateMilestoneOption struct {
|
||||
Title string `json:"title"`
|
||||
// Title is the title of the new milestone
|
||||
Title string `json:"title"`
|
||||
// Description provides details about the milestone
|
||||
Description string `json:"description"`
|
||||
// swagger:strfmt date-time
|
||||
// Deadline is the due date for the milestone
|
||||
Deadline *time.Time `json:"due_on"`
|
||||
// enum: open,closed
|
||||
// State indicates the initial state of the milestone
|
||||
State string `json:"state"`
|
||||
}
|
||||
|
||||
// EditMilestoneOption options for editing a milestone
|
||||
type EditMilestoneOption struct {
|
||||
Title string `json:"title"`
|
||||
Description *string `json:"description"`
|
||||
State *string `json:"state"`
|
||||
Deadline *time.Time `json:"due_on"`
|
||||
// Title is the updated title of the milestone
|
||||
Title string `json:"title"`
|
||||
// Description provides updated details about the milestone
|
||||
Description *string `json:"description"`
|
||||
// State indicates the updated state of the milestone
|
||||
State *string `json:"state"`
|
||||
// Deadline is the updated due date for the milestone
|
||||
Deadline *time.Time `json:"due_on"`
|
||||
}
|
||||
|
Reference in New Issue
Block a user