升级代码组织
This commit is contained in:
@ -9,7 +9,6 @@ package define
|
||||
|
||||
import (
|
||||
"context"
|
||||
"git.zhangdeman.cn/zhangdeman/network/httpclient/cache"
|
||||
"github.com/go-resty/resty/v2"
|
||||
"go.uber.org/zap"
|
||||
)
|
||||
@ -41,7 +40,6 @@ type Request struct {
|
||||
RetryRule *RequestRetryRule `json:"retry_rule"` // 重试规则
|
||||
Logger *zap.Logger `json:"-"` // 日志记录器
|
||||
RateLimiter resty.RateLimiter `json:"-"` // 流控实例
|
||||
CacheInstance cache.ICache `json:"-"` // 数据结果缓存实例
|
||||
}
|
||||
|
||||
// RequestRetryRule 重试规则
|
||||
|
Reference in New Issue
Block a user