初始
This commit is contained in:
33
internal/app/system/service/time_task.go
Normal file
33
internal/app/system/service/time_task.go
Normal file
@ -0,0 +1,33 @@
|
||||
// ================================================================================
|
||||
// Code generated by GoFrame CLI tool. DO NOT EDIT.
|
||||
// You can delete these comments if you wish manually maintain this interface file.
|
||||
// ================================================================================
|
||||
|
||||
package service
|
||||
|
||||
import (
|
||||
"github.com/tiger1103/gfast/v3/internal/app/system/model"
|
||||
)
|
||||
|
||||
type (
|
||||
ITaskList interface {
|
||||
AddTask(task *model.TimeTask)
|
||||
GetByName(funcName string) *model.TimeTask
|
||||
EditParams(funcName string, params []string)
|
||||
}
|
||||
)
|
||||
|
||||
var (
|
||||
localTaskList ITaskList
|
||||
)
|
||||
|
||||
func TaskList() ITaskList {
|
||||
if localTaskList == nil {
|
||||
panic("implement not found for interface ITaskList, forgot register?")
|
||||
}
|
||||
return localTaskList
|
||||
}
|
||||
|
||||
func RegisterTaskList(i ITaskList) {
|
||||
localTaskList = i
|
||||
}
|
Reference in New Issue
Block a user