升级代码组织

This commit is contained in:
2025-05-07 14:25:44 +08:00
parent 94fdab4e36
commit 088670c7d4
6 changed files with 99 additions and 80 deletions

View File

@ -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 重试规则