mirror of
https://github.com/go-gitea/gitea.git
synced 2025-10-17 06:06:03 +00:00
Upgrade golang to 1.25.1 and add descriptions for the swagger structs' fields (#35418)
This commit is contained in:
@@ -10,13 +10,20 @@ import (
|
||||
// StopWatch represent a running stopwatch
|
||||
type StopWatch struct {
|
||||
// swagger:strfmt date-time
|
||||
Created time.Time `json:"created"`
|
||||
Seconds int64 `json:"seconds"`
|
||||
Duration string `json:"duration"`
|
||||
IssueIndex int64 `json:"issue_index"`
|
||||
IssueTitle string `json:"issue_title"`
|
||||
RepoOwnerName string `json:"repo_owner_name"`
|
||||
RepoName string `json:"repo_name"`
|
||||
// Created is the time when the stopwatch was started
|
||||
Created time.Time `json:"created"`
|
||||
// Seconds is the total elapsed time in seconds
|
||||
Seconds int64 `json:"seconds"`
|
||||
// Duration is a human-readable duration string
|
||||
Duration string `json:"duration"`
|
||||
// IssueIndex is the index number of the associated issue
|
||||
IssueIndex int64 `json:"issue_index"`
|
||||
// IssueTitle is the title of the associated issue
|
||||
IssueTitle string `json:"issue_title"`
|
||||
// RepoOwnerName is the name of the repository owner
|
||||
RepoOwnerName string `json:"repo_owner_name"`
|
||||
// RepoName is the name of the repository
|
||||
RepoName string `json:"repo_name"`
|
||||
}
|
||||
|
||||
// StopWatches represent a list of stopwatches
|
||||
|
Reference in New Issue
Block a user