新增物流接口
This commit is contained in:
11
express_tool/express_cache.go
Normal file
11
express_tool/express_cache.go
Normal file
@@ -0,0 +1,11 @@
|
||||
package express_tool
|
||||
|
||||
import (
|
||||
"context"
|
||||
"time"
|
||||
)
|
||||
|
||||
type ICacheAdapter interface {
|
||||
Set(ctx context.Context, number string, res string, ttl time.Duration) error
|
||||
Get(ctx context.Context, number string) (*ExpressRes, error)
|
||||
}
|
Reference in New Issue
Block a user