This commit is contained in:
2025-06-20 17:13:51 +08:00
parent 1b55403cd6
commit fd0345a034
472 changed files with 52560 additions and 77 deletions

View File

@@ -0,0 +1,24 @@
package funcs
import (
"github.com/cool-team-official/cool-admin-go/cool"
"github.com/gogf/gf/v2/frame/g"
)
type TaskTest struct {
}
func (t *TaskTest) Func(ctx g.Ctx, param string) error {
g.Log().Info(ctx, "TaskTest Run ~~~~~~~~~~~~~~~~", param)
return nil
}
func (t *TaskTest) IsSingleton() bool {
return false
}
func (t *TaskTest) IsAllWorker() bool {
return true
}
func init() {
cool.RegisterFunc("TaskTest", &TaskTest{})
}