feat(plugins): updata plugins

This commit is contained in:
Sodesnei 2021-10-09 21:55:39 +08:00
parent 99c3c56a5b
commit b182d7602d
2 changed files with 10 additions and 5 deletions

View File

@ -1,8 +1,6 @@
package log_middle
import (
"fmt"
"gitee.com/timedb/wheatCache/plugins"
)
@ -13,14 +11,17 @@ func (i *logMiddle) Init() {
}
func (i *logMiddle) Exec(interface{}) (interface{}, error) {
fmt.Println(1)
return nil, nil
return "", nil
}
func (i *logMiddle) Name() string {
return "logMiddle"
}
func (i *logMiddle) Describe() string {
return ""
}
func NewMiddleware() plugins.MiddleToolsInterface {
return &logMiddle{}
}

View File

@ -12,13 +12,17 @@ func (i *mapKey) Init() {
func (i *mapKey) Exec(interface{}) (interface{}, error) {
return nil, nil
return "", nil
}
func (i *mapKey) Name() string {
return "mapKey"
}
func (i *mapKey) Describe() string {
return ""
}
func NewMiddleware() plugins.MiddleToolsInterface {
return &mapKey{}
}