初始
This commit is contained in:
16
internal/app/system/model/task.go
Normal file
16
internal/app/system/model/task.go
Normal file
@ -0,0 +1,16 @@
|
||||
/*
|
||||
* @desc:定时任务
|
||||
* @company:云南奇讯科技有限公司
|
||||
* @Author: yixiaohu<yxh669@qq.com>
|
||||
* @Date: 2023/1/13 17:47
|
||||
*/
|
||||
|
||||
package model
|
||||
|
||||
import "github.com/gogf/gf/v2/os/gctx"
|
||||
|
||||
type TimeTask struct {
|
||||
FuncName string
|
||||
Param []string
|
||||
Run func(ctx gctx.Ctx)
|
||||
}
|
Reference in New Issue
Block a user