Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
陈曦
sub2api
Commits
876e85e7
"frontend/src/i18n/git@web.lueluesay.top:chenxi/sub2api.git" did not exist on "942c3e1529a025ff585acd35055b9d021c8a9ccc"
Commit
876e85e7
authored
Dec 24, 2025
by
shaw
Browse files
Merge branch 'feat/rename-go-module'
parents
2e7818d6
836c4dda
Changes
103
Hide whitespace changes
Inline
Side-by-side
backend/internal/service/ports/api_key.go
View file @
876e85e7
...
@@ -3,8 +3,8 @@ package ports
...
@@ -3,8 +3,8 @@ package ports
import
(
import
(
"context"
"context"
"sub2api/internal/model"
"
github.com/Wei-Shaw/
sub2api/internal/model"
"sub2api/internal/pkg/pagination"
"
github.com/Wei-Shaw/
sub2api/internal/pkg/pagination"
)
)
type
ApiKeyRepository
interface
{
type
ApiKeyRepository
interface
{
...
...
backend/internal/service/ports/group.go
View file @
876e85e7
...
@@ -3,8 +3,8 @@ package ports
...
@@ -3,8 +3,8 @@ package ports
import
(
import
(
"context"
"context"
"sub2api/internal/model"
"
github.com/Wei-Shaw/
sub2api/internal/model"
"sub2api/internal/pkg/pagination"
"
github.com/Wei-Shaw/
sub2api/internal/pkg/pagination"
"gorm.io/gorm"
"gorm.io/gorm"
)
)
...
...
backend/internal/service/ports/openai_oauth.go
View file @
876e85e7
...
@@ -3,7 +3,7 @@ package ports
...
@@ -3,7 +3,7 @@ package ports
import
(
import
(
"context"
"context"
"sub2api/internal/pkg/openai"
"
github.com/Wei-Shaw/
sub2api/internal/pkg/openai"
)
)
// OpenAIOAuthClient interface for OpenAI OAuth operations
// OpenAIOAuthClient interface for OpenAI OAuth operations
...
...
backend/internal/service/ports/proxy.go
View file @
876e85e7
...
@@ -3,8 +3,8 @@ package ports
...
@@ -3,8 +3,8 @@ package ports
import
(
import
(
"context"
"context"
"sub2api/internal/model"
"
github.com/Wei-Shaw/
sub2api/internal/model"
"sub2api/internal/pkg/pagination"
"
github.com/Wei-Shaw/
sub2api/internal/pkg/pagination"
)
)
type
ProxyRepository
interface
{
type
ProxyRepository
interface
{
...
...
backend/internal/service/ports/redeem_code.go
View file @
876e85e7
...
@@ -3,8 +3,8 @@ package ports
...
@@ -3,8 +3,8 @@ package ports
import
(
import
(
"context"
"context"
"sub2api/internal/model"
"
github.com/Wei-Shaw/
sub2api/internal/model"
"sub2api/internal/pkg/pagination"
"
github.com/Wei-Shaw/
sub2api/internal/pkg/pagination"
)
)
type
RedeemCodeRepository
interface
{
type
RedeemCodeRepository
interface
{
...
...
backend/internal/service/ports/setting.go
View file @
876e85e7
...
@@ -3,7 +3,7 @@ package ports
...
@@ -3,7 +3,7 @@ package ports
import
(
import
(
"context"
"context"
"sub2api/internal/model"
"
github.com/Wei-Shaw/
sub2api/internal/model"
)
)
type
SettingRepository
interface
{
type
SettingRepository
interface
{
...
...
backend/internal/service/ports/usage_log.go
View file @
876e85e7
...
@@ -4,9 +4,9 @@ import (
...
@@ -4,9 +4,9 @@ import (
"context"
"context"
"time"
"time"
"sub2api/internal/model"
"
github.com/Wei-Shaw/
sub2api/internal/model"
"sub2api/internal/pkg/pagination"
"
github.com/Wei-Shaw/
sub2api/internal/pkg/pagination"
"sub2api/internal/pkg/usagestats"
"
github.com/Wei-Shaw/
sub2api/internal/pkg/usagestats"
)
)
type
UsageLogRepository
interface
{
type
UsageLogRepository
interface
{
...
...
backend/internal/service/ports/user.go
View file @
876e85e7
...
@@ -3,8 +3,8 @@ package ports
...
@@ -3,8 +3,8 @@ package ports
import
(
import
(
"context"
"context"
"sub2api/internal/model"
"
github.com/Wei-Shaw/
sub2api/internal/model"
"sub2api/internal/pkg/pagination"
"
github.com/Wei-Shaw/
sub2api/internal/pkg/pagination"
)
)
type
UserRepository
interface
{
type
UserRepository
interface
{
...
...
backend/internal/service/ports/user_subscription.go
View file @
876e85e7
...
@@ -4,8 +4,8 @@ import (
...
@@ -4,8 +4,8 @@ import (
"context"
"context"
"time"
"time"
"sub2api/internal/model"
"
github.com/Wei-Shaw/
sub2api/internal/model"
"sub2api/internal/pkg/pagination"
"
github.com/Wei-Shaw/
sub2api/internal/pkg/pagination"
)
)
type
UserSubscriptionRepository
interface
{
type
UserSubscriptionRepository
interface
{
...
...
backend/internal/service/pricing_service.go
View file @
876e85e7
...
@@ -14,8 +14,8 @@ import (
...
@@ -14,8 +14,8 @@ import (
"sync"
"sync"
"time"
"time"
"sub2api/internal/config"
"
github.com/Wei-Shaw/
sub2api/internal/config"
"sub2api/internal/pkg/openai"
"
github.com/Wei-Shaw/
sub2api/internal/pkg/openai"
)
)
// LiteLLMModelPricing LiteLLM价格数据结构
// LiteLLMModelPricing LiteLLM价格数据结构
...
...
backend/internal/service/proxy_service.go
View file @
876e85e7
...
@@ -4,9 +4,9 @@ import (
...
@@ -4,9 +4,9 @@ import (
"context"
"context"
"errors"
"errors"
"fmt"
"fmt"
"sub2api/internal/model"
"
github.com/Wei-Shaw/
sub2api/internal/model"
"sub2api/internal/pkg/pagination"
"
github.com/Wei-Shaw/
sub2api/internal/pkg/pagination"
"sub2api/internal/service/ports"
"
github.com/Wei-Shaw/
sub2api/internal/service/ports"
"gorm.io/gorm"
"gorm.io/gorm"
)
)
...
...
backend/internal/service/ratelimit_service.go
View file @
876e85e7
...
@@ -7,9 +7,9 @@ import (
...
@@ -7,9 +7,9 @@ import (
"strconv"
"strconv"
"time"
"time"
"sub2api/internal/config"
"
github.com/Wei-Shaw/
sub2api/internal/config"
"sub2api/internal/model"
"
github.com/Wei-Shaw/
sub2api/internal/model"
"sub2api/internal/service/ports"
"
github.com/Wei-Shaw/
sub2api/internal/service/ports"
)
)
// RateLimitService 处理限流和过载状态管理
// RateLimitService 处理限流和过载状态管理
...
...
backend/internal/service/redeem_service.go
View file @
876e85e7
...
@@ -6,10 +6,10 @@ import (
...
@@ -6,10 +6,10 @@ import (
"encoding/hex"
"encoding/hex"
"errors"
"errors"
"fmt"
"fmt"
"github.com/Wei-Shaw/sub2api/internal/model"
"github.com/Wei-Shaw/sub2api/internal/pkg/pagination"
"github.com/Wei-Shaw/sub2api/internal/service/ports"
"strings"
"strings"
"sub2api/internal/model"
"sub2api/internal/pkg/pagination"
"sub2api/internal/service/ports"
"time"
"time"
"github.com/redis/go-redis/v9"
"github.com/redis/go-redis/v9"
...
...
backend/internal/service/setting_service.go
View file @
876e85e7
...
@@ -6,10 +6,10 @@ import (
...
@@ -6,10 +6,10 @@ import (
"encoding/hex"
"encoding/hex"
"errors"
"errors"
"fmt"
"fmt"
"github.com/Wei-Shaw/sub2api/internal/config"
"github.com/Wei-Shaw/sub2api/internal/model"
"github.com/Wei-Shaw/sub2api/internal/service/ports"
"strconv"
"strconv"
"sub2api/internal/config"
"sub2api/internal/model"
"sub2api/internal/service/ports"
"gorm.io/gorm"
"gorm.io/gorm"
)
)
...
...
backend/internal/service/subscription_service.go
View file @
876e85e7
...
@@ -7,9 +7,9 @@ import (
...
@@ -7,9 +7,9 @@ import (
"log"
"log"
"time"
"time"
"sub2api/internal/model"
"
github.com/Wei-Shaw/
sub2api/internal/model"
"sub2api/internal/pkg/pagination"
"
github.com/Wei-Shaw/
sub2api/internal/pkg/pagination"
"sub2api/internal/service/ports"
"
github.com/Wei-Shaw/
sub2api/internal/service/ports"
)
)
var
(
var
(
...
...
backend/internal/service/token_refresh_service.go
View file @
876e85e7
...
@@ -7,9 +7,9 @@ import (
...
@@ -7,9 +7,9 @@ import (
"sync"
"sync"
"time"
"time"
"sub2api/internal/config"
"
github.com/Wei-Shaw/
sub2api/internal/config"
"sub2api/internal/model"
"
github.com/Wei-Shaw/
sub2api/internal/model"
"sub2api/internal/service/ports"
"
github.com/Wei-Shaw/
sub2api/internal/service/ports"
)
)
// TokenRefreshService OAuth token自动刷新服务
// TokenRefreshService OAuth token自动刷新服务
...
...
backend/internal/service/token_refresher.go
View file @
876e85e7
...
@@ -5,7 +5,7 @@ import (
...
@@ -5,7 +5,7 @@ import (
"strconv"
"strconv"
"time"
"time"
"sub2api/internal/model"
"
github.com/Wei-Shaw/
sub2api/internal/model"
)
)
// TokenRefresher 定义平台特定的token刷新策略接口
// TokenRefresher 定义平台特定的token刷新策略接口
...
...
backend/internal/service/update_service.go
View file @
876e85e7
...
@@ -18,7 +18,7 @@ import (
...
@@ -18,7 +18,7 @@ import (
"strings"
"strings"
"time"
"time"
"sub2api/internal/service/ports"
"
github.com/Wei-Shaw/
sub2api/internal/service/ports"
)
)
const
(
const
(
...
...
backend/internal/service/usage_service.go
View file @
876e85e7
...
@@ -4,10 +4,10 @@ import (
...
@@ -4,10 +4,10 @@ import (
"context"
"context"
"errors"
"errors"
"fmt"
"fmt"
"sub2api/internal/model"
"
github.com/Wei-Shaw/
sub2api/internal/model"
"sub2api/internal/pkg/pagination"
"
github.com/Wei-Shaw/
sub2api/internal/pkg/pagination"
"sub2api/internal/pkg/usagestats"
"
github.com/Wei-Shaw/
sub2api/internal/pkg/usagestats"
"sub2api/internal/service/ports"
"
github.com/Wei-Shaw/
sub2api/internal/service/ports"
"time"
"time"
"gorm.io/gorm"
"gorm.io/gorm"
...
...
backend/internal/service/user_service.go
View file @
876e85e7
...
@@ -4,9 +4,9 @@ import (
...
@@ -4,9 +4,9 @@ import (
"context"
"context"
"errors"
"errors"
"fmt"
"fmt"
"sub2api/internal/model"
"
github.com/Wei-Shaw/
sub2api/internal/model"
"sub2api/internal/pkg/pagination"
"
github.com/Wei-Shaw/
sub2api/internal/pkg/pagination"
"sub2api/internal/service/ports"
"
github.com/Wei-Shaw/
sub2api/internal/service/ports"
"golang.org/x/crypto/bcrypt"
"golang.org/x/crypto/bcrypt"
"gorm.io/gorm"
"gorm.io/gorm"
...
...
Prev
1
2
3
4
5
6
Next
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment