|
package log_middle
|
|
|
|
import (
|
|
"fmt"
|
|
|
|
"gitee.com/timedb/wheatCache/middleware"
|
|
)
|
|
|
|
type A struct {
|
|
}
|
|
|
|
func (i *A) Init() {
|
|
}
|
|
|
|
func (i *A) Exat(interface{}) (interface{}, error) {
|
|
fmt.Println(1)
|
|
return nil, nil
|
|
}
|
|
|
|
func NewMiddleware() middleware.MiddlewareInterface {
|
|
return &A{}
|
|
}
|