mirror of
https://github.com/go-gitea/gitea.git
synced 2026-10-05 03:58:28 +02:00
Upgrade golang to 1.25.1 and add descriptions for the swagger structs' fields (#35418)
This commit is contained in:
1 parent
b8f1c9f048
commit
c290682521
51 files changed
+1928
-656
No files matched your search
+10
-5
@@ -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