Files
PandaX/apps/job/jobs/examples.go
2023-08-22 15:17:14 +08:00

24 lines
354 B
Go

package jobs
import (
"log"
)
type CronDeviceHandle struct {
}
func (t CronDeviceHandle) Exec(arg any, content any) error {
log.Println("执行设备任务", arg, content)
return nil
}
type CronProductHandle struct {
}
func (t CronProductHandle) Exec(arg any, content any) error {
log.Println("执行产品任务", arg, content)
return nil
}