本次提交新增了以下核心内容: 1. 后端管理模块:包含字体同步、插件元数据、插件用户设置、稍后读消息/共享列表的控制器、模型、验证器与多语言配置 2. Flutter数据同步模块:统一的事件总线与兼容层,替代分散的StreamController 3. 鸿蒙端路由适配:完整的路由定义、构建器与占位组件 4. 后端API接口:字体同步与插件更新的服务端API,支持自动建表与跨域请求 5. 鸿蒙权限校验脚本:用于校验module.json5与string.json的权限声明一致性
16 lines
742 B
Dart
16 lines
742 B
Dart
// ============================================================
|
|
// 闲言APP — 用户/认证/个人中心路由
|
|
// 创建时间: 2026-05-22
|
|
// 更新时间: 2026-06-18
|
|
// 作用: 登录、签到、设备、收藏、历史、会员、个人中心等 GoRoute 定义
|
|
// 上次更新: 重构为从 route_registry 统一生成,消除手动同步
|
|
// ============================================================
|
|
|
|
import 'package:flutter/widgets.dart';
|
|
import 'package:go_router/go_router.dart';
|
|
import 'package:xianyan/core/router/route_def.dart';
|
|
import 'package:xianyan/core/router/route_builders.dart';
|
|
|
|
List<GoRoute> buildUserRoutes(GlobalKey<NavigatorState> rootNavigatorKey) =>
|
|
buildModuleGoRoutes(RouteModule.user, rootNavigatorKey);
|