新增从 admin-web 后台管理开屏图(2张)和引导图(5张+标题/副标题)的完整功能链路。 移动端优先使用后台配置的远程图片,无配置或加载失败时自动回退到本地 asset。 ### Backend (admin-service) - Prisma schema 新增 AppAssetType 枚举 + AppAsset 模型 (type/sortOrder 唯一约束) - 新增 AdminAppAssetController: 图片上传(multipart)、列表查询、元数据更新、删除 - 新增 PublicAppAssetController: 公开查询接口供移动端消费 (仅返回 isEnabled=true) - 新增数据库 migration: 20260204100000_add_app_assets ### Admin-web - endpoints.ts 新增 APP_ASSETS 端点组 - 新增 appAssetService.ts: list/upload/update/delete 方法 - Settings 页新增"应用图片管理"区块: 开屏图 2 卡槽 + 引导图 5 卡槽 - 每个卡槽支持: 图片上传预览、启用/禁用开关、删除、引导图额外支持标题和副标题编辑 ### Mobile-app (Flutter) - 新增 AppAssetService: 3 级缓存策略 (内存 5min TTL → SharedPreferences → 后台静默刷新) - splash_page.dart: 支持远程开屏图 (CachedNetworkImage),fallback 到本地 asset - guide_page.dart: 支持远程引导图+标题/副标题覆盖,fallback 到本地 asset - 替换 2 张开屏图为新版 (1280x1826/1834, ~245KB) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| .claude | ||
| android | ||
| assets | ||
| docs | ||
| ios | ||
| lib | ||
| linux | ||
| macos | ||
| scripts | ||
| test | ||
| web | ||
| windows | ||
| .gitignore | ||
| .metadata | ||
| CLAUDE.md | ||
| README.MD | ||
| analysis_options.yaml | ||
| flutter_android_update_guide.md | ||
| flutter_telemetry_solution.md | ||
| pubspec.lock | ||
| pubspec.yaml | ||
| quickly.lottie | ||
| stickman.lottie | ||
README.MD
Create Flutter Framework
C:\Users\ph\Desktop\app>flutter create --org com.rwadurian rwa_android_app
Creating project rwa_android_app...
Resolving dependencies in `rwa_android_app`... (3.7s)
Downloading packages...
Got dependencies in `rwa_android_app`.
Wrote 130 files.
All done!
You can find general documentation for Flutter at: https://docs.flutter.dev/
Detailed API documentation is available at: https://api.flutter.dev/
If you prefer video documentation, consider: https://www.youtube.com/c/flutterdev
In order to run your application, type:
$ cd rwa_android_app
$ flutter run
Your application code is in rwa_android_app\lib\main.dart.
rwa_android_app
A new Flutter project.
Getting Started
This project is a starting point for a Flutter application.
A few resources to get you started if this is your first Flutter project:
For help getting started with Flutter development, view the online documentation, which offers tutorials, samples, guidance on mobile development, and a full API reference.