docs: expand repo structure with subdirectories; drop stray adobe.zip

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
2026-06-26 00:02:14 +08:00
co-authored by Claude Opus 4.8
parent 0ee0c85786
commit 8633addf64
4 changed files with 78 additions and 10 deletions
+2
View File
@@ -25,6 +25,8 @@ api_test_video.py # hardcoded API key
# ====================================================================== # ======================================================================
# browser HAR captures contain real cookies/tokens # browser HAR captures contain real cookies/tokens
*.har *.har
# stray source/backup archives
*.zip
# prebuilt binaries (backend is built from source now) # prebuilt binaries (backend is built from source now)
/dist/ /dist/
# stray debug screenshots pasted into the repo root # stray debug screenshots pasted into the repo root
+38 -5
View File
@@ -218,11 +218,44 @@ server {
## 📦 Repository Layout ## 📦 Repository Layout
``` ```
frontend/ Frontend source (Vue 3) backend/ Backend source (Go)
backend/ Backend source (Go, entry point at cmd/api) ├── cmd/
docker-compose.yml Docker orchestration (Postgres/Redis/RustFS/backend/frontend/acme) │ ├── api/ Service entry point (main)
install.sh One-command deploy script │ └── marklabel/ Ops helper (mark accounts on demand)
.env.docker.example Environment variable template ├── internal/
│ ├── bootstrap/ App wiring, scheduled maintenance startup
│ ├── config/ Env-var configuration loading
│ ├── http/
│ │ ├── handler/ HTTP handlers (v1-compatible API, admin, auth…)
│ │ ├── middleware/ Auth / request-id middleware
│ │ └── router/ Route registration
│ ├── model/ GORM data models
│ ├── provider/ Upstream provider clients
│ │ ├── adobe/ Adobe Firefly (tls-client fingerprint)
│ │ ├── chatgpt/ OpenAI (incl. PoW / turnstile)
│ │ ├── runway/ Runway video
│ │ ├── leonardo/ Leonardo
│ │ ├── krea/ Krea
│ │ └── imagine/ Imagine.art
│ ├── repo/ Data-access layer (users / models / accounts / logs / CDK…)
│ ├── service/ Business logic (scheduling, billing, account pools, keep-alive, maintenance)
│ └── storage/ RustFS / S3 media storage
├── Dockerfile Multi-stage build (compile source → slim runtime image)
└── .env.example Backend env-var template
frontend/ Frontend source (Vue 3 + Vite)
├── src/
│ ├── views/ Pages (playground / accounts / models / logs / overview / users…)
│ ├── components/ Reusable components (modals / selectors / lightbox…)
│ ├── layouts/ Public / admin layouts
│ ├── utils/ Utility functions
│ └── api.js · auth.js … API client, auth, theme, credits, etc.
├── Dockerfile Nginx static hosting + cert watcher
└── default.conf.template Nginx site template (reverse proxy + caching)
docker-compose.yml Docker orchestration (Postgres / Redis / RustFS / backend / frontend / acme)
install.sh One-command deploy script (= docker compose up -d --build)
.env.docker.example Deployment env-var template
``` ```
## 🗺️ Roadmap ## 🗺️ Roadmap
+38 -5
View File
@@ -218,11 +218,44 @@ server {
## 📦 仓库结构 ## 📦 仓库结构
``` ```
frontend/ 前端源码(Vue 3) backend/ 后端源码(Go)
backend/ 后端源码(Go,cmd/api 为入口) ├── cmd/
docker-compose.yml Docker 编排(Postgres/Redis/RustFS/后端/前端/acme) │ ├── api/ 服务入口(main)
install.sh 一键部署脚本 │ └── marklabel/ 运维小工具(按需标记账号)
.env.docker.example 环境变量模板 ├── internal/
│ ├── bootstrap/ 应用装配、定时维护任务启动
│ ├── config/ 环境变量配置加载
│ ├── http/
│ │ ├── handler/ HTTP 处理器(v1 兼容接口、后台、鉴权…)
│ │ ├── middleware/ 鉴权 / 请求 ID 等中间件
│ │ └── router/ 路由注册
│ ├── model/ GORM 数据模型
│ ├── provider/ 各上游供应商客户端
│ │ ├── adobe/ Adobe Firefly(tls-client 指纹)
│ │ ├── chatgpt/ OpenAI(含 PoW / turnstile)
│ │ ├── runway/ Runway 视频
│ │ ├── leonardo/ Leonardo
│ │ ├── krea/ Krea
│ │ └── imagine/ Imagine.art
│ ├── repo/ 数据访问层(用户 / 模型 / 账号 / 日志 / CDK…)
│ ├── service/ 业务逻辑(生成调度、计费、账号池、保活、维护)
│ └── storage/ RustFS / S3 媒体存储
├── Dockerfile 多阶段构建(源码编译 → 精简运行镜像)
└── .env.example 后端环境变量模板
frontend/ 前端源码(Vue 3 + Vite)
├── src/
│ ├── views/ 页面(画图台 / 账号 / 模型 / 日志 / 概览 / 用户…)
│ ├── components/ 复用组件(弹窗 / 选择器 / 灯箱…)
│ ├── layouts/ 公共 / 后台布局
│ ├── utils/ 工具函数
│ └── api.js · auth.js … 接口封装、鉴权、主题、积分等
├── Dockerfile Nginx 静态托管 + 证书监听
└── default.conf.template Nginx 站点模板(反代 + 缓存策略)
docker-compose.yml Docker 编排(Postgres / Redis / RustFS / 后端 / 前端 / acme)
install.sh 一键部署脚本(= docker compose up -d --build)
.env.docker.example 部署环境变量模板
``` ```
## 🗺️ Roadmap ## 🗺️ Roadmap
Binary file not shown.