|
@@ -24,10 +24,6 @@ import (
|
|
|
"golang.org/x/time/rate"
|
|
|
)
|
|
|
|
|
|
-const (
|
|
|
- SuccessCode = 0
|
|
|
-)
|
|
|
-
|
|
|
type Option func(*option)
|
|
|
|
|
|
type option struct {
|
|
@@ -41,6 +37,8 @@ type option struct {
|
|
|
rateLimiter limiter.RateLimiter
|
|
|
}
|
|
|
|
|
|
+const SuccessCode = 0
|
|
|
+
|
|
|
type Failure struct {
|
|
|
ResultCode int `json:"result_code"` // 业务码
|
|
|
ResultInfo string `json:"result_info"` // 描述信息
|