chore: reorganize submodule structure into apps/services hierarchy

- Move fastAPI from root to services/fastapi
- Update README with new structure and confirmed tech stack
- Update pad_scanner pointer to latest (.gitignore fix)
- Add services/fastapi submodule

Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent)

Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
This commit is contained in:
Misaka
2026-05-11 20:48:01 +08:00
parent dc2a9d9c45
commit 9cea5cfd4e
4 changed files with 15 additions and 7 deletions

5
.gitmodules vendored
View File

@@ -1,3 +1,6 @@
[submodule "apps/pad_scanner"] [submodule "apps/pad_scanner"]
path = apps/pad_scanner path = apps/pad_scanner
url = git@gitea.server10086.icu:admin/pad_scanner.git url = git@gitea.server10086.icu:CargoTrace/pad_scanner.git
[submodule "services/fastapi"]
path = services/fastapi
url = git@gitea.server10086.icu:CargoTrace/fastAPI.git

View File

@@ -12,9 +12,11 @@
- **技术栈**: Flutter - **技术栈**: Flutter
- **说明**: 基于 Flutter 框架的安卓应用,用于货物扫描和追踪 - **说明**: 基于 Flutter 框架的安卓应用,用于货物扫描和追踪
### 后端服务 ### 后端服务 (FastAPI)
- **状态**: 待定 - **路径**: `services/fastapi`
- **技术栈**: 待定(可能使用 FastAPI 等) - **仓库**: `git@gitea.server10086.icu:CargoTrace/fastAPI.git`
- **技术栈**: FastAPI (Python)
- **说明**: 后端 API 服务
## 项目结构 ## 项目结构
@@ -22,8 +24,10 @@
CargoTrace/ CargoTrace/
├── apps/ # 应用层子模块 ├── apps/ # 应用层子模块
│ └── pad_scanner/ # Flutter Android 应用 │ └── pad_scanner/ # Flutter Android 应用
├── services/ # 后端服务子模块(待添加) ├── services/ # 后端服务子模块
│ └── fastapi/ # FastAPI 后端服务
├── shared/ # 共享代码/库(待添加) ├── shared/ # 共享代码/库(待添加)
├── infra/ # 基础设施(待添加)
└── docs/ # 项目文档 └── docs/ # 项目文档
``` ```
@@ -62,7 +66,7 @@ git pull origin main
| 层级 | 技术栈 | 状态 | | 层级 | 技术栈 | 状态 |
|------|--------|------| |------|--------|------|
| Android 端 | Flutter | ✅ 确定 | | Android 端 | Flutter | ✅ 确定 |
| 后端服务 | 待定 | ⏳ 待定 | | 后端服务 | FastAPI (Python) | ✅ 确定 |
## 许可证 ## 许可证

1
services/fastapi Submodule

Submodule services/fastapi added at c370ca36bc