mirror of
https://github.com/go-gitea/gitea.git
synced 2025-09-24 22:16:27 -04:00
Upgrade golang to 1.25.1 and add descriptions for the swagger structs' fields (#35418)
This commit is contained in:
@@ -7,9 +7,14 @@ import "time"
|
||||
|
||||
// Cron represents a Cron task
|
||||
type Cron struct {
|
||||
Name string `json:"name"`
|
||||
Schedule string `json:"schedule"`
|
||||
Next time.Time `json:"next"`
|
||||
Prev time.Time `json:"prev"`
|
||||
ExecTimes int64 `json:"exec_times"`
|
||||
// The name of the cron task
|
||||
Name string `json:"name"`
|
||||
// The cron schedule expression (e.g., "0 0 * * *")
|
||||
Schedule string `json:"schedule"`
|
||||
// The next scheduled execution time
|
||||
Next time.Time `json:"next"`
|
||||
// The previous execution time
|
||||
Prev time.Time `json:"prev"`
|
||||
// The total number of times this cron task has been executed
|
||||
ExecTimes int64 `json:"exec_times"`
|
||||
}
|
||||
|
Reference in New Issue
Block a user