refactor: 重构types

This commit is contained in:
tbphp committed 2025-06-29 20:14:13 +08:00
1 parent 2ba378f7ac
commit ab95af0bbe
7 files changed
+7 -7

No files matched your search

+1 -1
View File
@@ -17,7 +17,7 @@ import (
"gpt-load/internal/keymanager" "gpt-load/internal/keymanager"
"gpt-load/internal/middleware" "gpt-load/internal/middleware"
"gpt-load/internal/proxy" "gpt-load/internal/proxy"
"gpt-load/pkg/types" "gpt-load/internal/types"
"github.com/gin-gonic/gin" "github.com/gin-gonic/gin"
"github.com/sirupsen/logrus" "github.com/sirupsen/logrus"
+1 -1
View File
@@ -10,7 +10,7 @@ import (
"sync/atomic" "sync/atomic"
"gpt-load/internal/errors" "gpt-load/internal/errors"
"gpt-load/pkg/types" "gpt-load/internal/types"
"github.com/joho/godotenv" "github.com/joho/godotenv"
"github.com/sirupsen/logrus" "github.com/sirupsen/logrus"
+1 -1
View File
@@ -6,7 +6,7 @@ import (
"runtime" "runtime"
"time" "time"
"gpt-load/pkg/types" "gpt-load/internal/types"
"github.com/gin-gonic/gin" "github.com/gin-gonic/gin"
"github.com/sirupsen/logrus" "github.com/sirupsen/logrus"
+1 -1
View File
@@ -12,7 +12,7 @@ import (
"time" "time"
"gpt-load/internal/errors" "gpt-load/internal/errors"
"gpt-load/pkg/types" "gpt-load/internal/types"
"github.com/sirupsen/logrus" "github.com/sirupsen/logrus"
) )
+1 -1
View File
@@ -7,7 +7,7 @@ import (
"time" "time"
"gpt-load/internal/errors" "gpt-load/internal/errors"
"gpt-load/pkg/types" "gpt-load/internal/types"
"github.com/gin-gonic/gin" "github.com/gin-gonic/gin"
"github.com/sirupsen/logrus" "github.com/sirupsen/logrus"
+1 -1
View File
@@ -16,7 +16,7 @@ import (
"time" "time"
"gpt-load/internal/errors" "gpt-load/internal/errors"
"gpt-load/pkg/types" "gpt-load/internal/types"
"github.com/gin-gonic/gin" "github.com/gin-gonic/gin"
"github.com/sirupsen/logrus" "github.com/sirupsen/logrus"
@@ -138,4 +138,4 @@ type RetryError struct {
ErrorMessage string `json:"errorMessage"` ErrorMessage string `json:"errorMessage"`
KeyIndex int `json:"keyIndex"` KeyIndex int `json:"keyIndex"`
Attempt int `json:"attempt"` Attempt int `json:"attempt"`
} }