mirror of
https://github.com/eolinker/apinto
synced 2025-09-26 21:01:19 +08:00
21 lines
417 B
Go
21 lines
417 B
Go
package template
|
|
|
|
import (
|
|
"github.com/eolinker/apinto/plugin"
|
|
"github.com/eolinker/eosc"
|
|
eoscContext "github.com/eolinker/eosc/eocontext"
|
|
)
|
|
|
|
const (
|
|
TemplateSkill = "github.com/eolinker/apinto/template.template.ITemplate"
|
|
)
|
|
|
|
type ITemplate interface {
|
|
eosc.IWorker
|
|
Create(id string, conf map[string]*plugin.Config) eoscContext.IChainPro
|
|
}
|
|
|
|
func CheckSkill(skill string) bool {
|
|
return skill == TemplateSkill
|
|
}
|