[feat] 定时任务支持
This commit is contained in:
parent
901767a1dc
commit
41bfdea63b
18
base/cron.go
Normal file
18
base/cron.go
Normal file
@ -0,0 +1,18 @@
|
||||
package base
|
||||
|
||||
type Cron struct {
|
||||
Uuid string `db:"uuid"`
|
||||
Code string `db:"code"`
|
||||
Name string `db:"name"`
|
||||
ResourceUuid string `db:"resource_uuid"`
|
||||
Second string `db:"sec"`
|
||||
Minute string `db:"min"`
|
||||
Hour string `db:"hr"`
|
||||
Day string `db:"day"`
|
||||
Month string `db:"mo"`
|
||||
Week string `db:"wk"`
|
||||
UpdatedAt string `db:"updated_at"`
|
||||
CreatedAt string `db:"created_at"`
|
||||
}
|
||||
|
||||
type GetCron func(code string) (Cron, bool)
|
Loading…
Reference in New Issue
Block a user