resty_v2 -> resty_v3

This commit is contained in:
2025-05-07 21:42:48 +08:00
parent 6dcd072570
commit ba47891d3c
11 changed files with 46 additions and 79 deletions

View File

@ -9,7 +9,6 @@ package define
import (
"context"
"github.com/go-resty/resty/v2"
"go.uber.org/zap"
)
@ -39,7 +38,6 @@ type Request struct {
ReadTimeout int64 `json:"read_timeout"` // 读取超时时间
RetryRule *RequestRetryRule `json:"retry_rule"` // 重试规则
Logger *zap.Logger `json:"-"` // 日志记录器
RateLimiter resty.RateLimiter `json:"-"` // 流控实例
}
// RequestRetryRule 重试规则

View File

@ -8,7 +8,7 @@
package define
import (
"github.com/go-resty/resty/v2"
"resty.dev/v3"
)
// Response 响应的数据结构定义