Skip to content

Commit d910234

Browse files
author
root
committed
Update repository owner references
1 parent 7da677d commit d910234

76 files changed

Lines changed: 263 additions & 263 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
- 统一项目显示名为 `image2api`.
88
- 统一 Docker 镜像命名为 `image2api/backend`, `image2api/user-web`, `image2api/admin-web`.
9-
- 统一后端 Go module 为 `github.com/zuiyinggg/image2api/backend`.
9+
- 统一后端 Go module 为 `github.com/BFanSYe/image2api/backend`.
1010
- 统一前端 workspace 包名为 `@image2api/*`.
1111
- 支持后台 API key 类型上游账号用于原生图片生成.
1212
- 支持上游原生 `gpt-image-2` Responses/Image generation 路线.

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -71,17 +71,17 @@ image2api/admin-web:latest
7171
如发布到 GitHub Container Registry, 推荐使用:
7272

7373
```text
74-
ghcr.io/zuiyinggg/image2api-backend
75-
ghcr.io/zuiyinggg/image2api-user-web
76-
ghcr.io/zuiyinggg/image2api-admin-web
74+
ghcr.io/BFanSYe/image2api-backend
75+
ghcr.io/BFanSYe/image2api-user-web
76+
ghcr.io/BFanSYe/image2api-admin-web
7777
```
7878

7979
## 快速启动
8080

8181
### 1. 拉取代码
8282

8383
```bash
84-
git clone https://github.com/zuiyinggg/image2api.git
84+
git clone https://github.com/BFanSYe/image2api.git
8585
cd image2api
8686
```
8787

backend/Dockerfile

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,17 +16,17 @@ ARG VERSION=dev
1616
ARG BUILD_TIME=unknown
1717

1818
RUN go build -trimpath -ldflags="-s -w \
19-
-X github.com/zuiyinggg/image2api/backend/pkg/version.Build=${VERSION} \
20-
-X github.com/zuiyinggg/image2api/backend/pkg/version.Time=${BUILD_TIME}" \
19+
-X github.com/BFanSYe/image2api/backend/pkg/version.Build=${VERSION} \
20+
-X github.com/BFanSYe/image2api/backend/pkg/version.Time=${BUILD_TIME}" \
2121
-o /out/api ./cmd/api && \
2222
go build -trimpath -ldflags="-s -w \
23-
-X github.com/zuiyinggg/image2api/backend/pkg/version.Build=${VERSION}" \
23+
-X github.com/BFanSYe/image2api/backend/pkg/version.Build=${VERSION}" \
2424
-o /out/admin ./cmd/admin && \
2525
go build -trimpath -ldflags="-s -w \
26-
-X github.com/zuiyinggg/image2api/backend/pkg/version.Build=${VERSION}" \
26+
-X github.com/BFanSYe/image2api/backend/pkg/version.Build=${VERSION}" \
2727
-o /out/openai ./cmd/openai && \
2828
go build -trimpath -ldflags="-s -w \
29-
-X github.com/zuiyinggg/image2api/backend/pkg/version.Build=${VERSION}" \
29+
-X github.com/BFanSYe/image2api/backend/pkg/version.Build=${VERSION}" \
3030
-o /out/worker ./cmd/worker
3131

3232
# ----- 运行阶段:distroless · 非 root -----

backend/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# 端口约定:api=17180 admin=17188 openai=17200 pprof=17590
33

44
ENV ?= dev
5-
APP_PKG := github.com/zuiyinggg/image2api/backend
5+
APP_PKG := github.com/BFanSYe/image2api/backend
66
LDFLAGS := -s -w -X $(APP_PKG)/pkg/version.Build=$(shell git rev-parse --short HEAD 2>/dev/null || echo dev) \
77
-X $(APP_PKG)/pkg/version.Time=$(shell date -u +%Y-%m-%dT%H:%M:%SZ)
88

backend/cmd/admin/main.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@ import (
99
"net/http"
1010
"strconv"
1111

12-
"github.com/zuiyinggg/image2api/backend/internal/bootstrap"
13-
"github.com/zuiyinggg/image2api/backend/internal/router"
14-
"github.com/zuiyinggg/image2api/backend/pkg/logger"
12+
"github.com/BFanSYe/image2api/backend/internal/bootstrap"
13+
"github.com/BFanSYe/image2api/backend/internal/router"
14+
"github.com/BFanSYe/image2api/backend/pkg/logger"
1515
)
1616

1717
const serviceName = "admin"

backend/cmd/api/main.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@ import (
1414
"strings"
1515
"time"
1616

17-
"github.com/zuiyinggg/image2api/backend/internal/bootstrap"
18-
"github.com/zuiyinggg/image2api/backend/internal/router"
19-
"github.com/zuiyinggg/image2api/backend/pkg/logger"
17+
"github.com/BFanSYe/image2api/backend/internal/bootstrap"
18+
"github.com/BFanSYe/image2api/backend/internal/router"
19+
"github.com/BFanSYe/image2api/backend/pkg/logger"
2020
)
2121

2222
const serviceName = "api"

backend/cmd/openai/main.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@ import (
99
"net/http"
1010
"strconv"
1111

12-
"github.com/zuiyinggg/image2api/backend/internal/bootstrap"
13-
"github.com/zuiyinggg/image2api/backend/internal/router"
14-
"github.com/zuiyinggg/image2api/backend/pkg/logger"
12+
"github.com/BFanSYe/image2api/backend/internal/bootstrap"
13+
"github.com/BFanSYe/image2api/backend/internal/router"
14+
"github.com/BFanSYe/image2api/backend/pkg/logger"
1515
)
1616

1717
const serviceName = "openai"

backend/cmd/worker/main.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,10 @@ import (
1212
"github.com/hibiken/asynq"
1313
"go.uber.org/zap"
1414

15-
"github.com/zuiyinggg/image2api/backend/internal/bootstrap"
16-
"github.com/zuiyinggg/image2api/backend/internal/repo"
17-
"github.com/zuiyinggg/image2api/backend/internal/service"
18-
"github.com/zuiyinggg/image2api/backend/pkg/logger"
15+
"github.com/BFanSYe/image2api/backend/internal/bootstrap"
16+
"github.com/BFanSYe/image2api/backend/internal/repo"
17+
"github.com/BFanSYe/image2api/backend/internal/service"
18+
"github.com/BFanSYe/image2api/backend/pkg/logger"
1919
)
2020

2121
const serviceName = "worker"

backend/go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
module github.com/zuiyinggg/image2api/backend
1+
module github.com/BFanSYe/image2api/backend
22

33
go 1.24
44

backend/internal/bootstrap/bootstrap.go

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,14 @@ import (
1616
"go.uber.org/zap"
1717
"gorm.io/gorm"
1818

19-
"github.com/zuiyinggg/image2api/backend/pkg/config"
20-
"github.com/zuiyinggg/image2api/backend/pkg/crypto"
21-
"github.com/zuiyinggg/image2api/backend/pkg/database"
22-
"github.com/zuiyinggg/image2api/backend/pkg/jwtx"
23-
"github.com/zuiyinggg/image2api/backend/pkg/logger"
24-
"github.com/zuiyinggg/image2api/backend/pkg/ratelimit"
25-
"github.com/zuiyinggg/image2api/backend/pkg/snowflake"
26-
"github.com/zuiyinggg/image2api/backend/pkg/version"
19+
"github.com/BFanSYe/image2api/backend/pkg/config"
20+
"github.com/BFanSYe/image2api/backend/pkg/crypto"
21+
"github.com/BFanSYe/image2api/backend/pkg/database"
22+
"github.com/BFanSYe/image2api/backend/pkg/jwtx"
23+
"github.com/BFanSYe/image2api/backend/pkg/logger"
24+
"github.com/BFanSYe/image2api/backend/pkg/ratelimit"
25+
"github.com/BFanSYe/image2api/backend/pkg/snowflake"
26+
"github.com/BFanSYe/image2api/backend/pkg/version"
2727
)
2828

2929
// Deps 启动后向业务层注入的依赖集合。

0 commit comments

Comments
 (0)