ops-console v1.0.2 (versionCode 8) 源码入库

This commit is contained in:
txh
2026-09-03 18:01:05 +08:00
commit 685fff27c8
170 changed files with 53049 additions and 0 deletions

30
lib/utils/constants.dart Normal file
View File

@@ -0,0 +1,30 @@
/// 全局常量定义。
class AppConstants {
AppConstants._();
/// 应用名称。
static const String appName = '云定制主页运营助手';
/// 是否使用 mock 数据。
///
/// - `false`(默认):对接真实「云定制后台」(PHP/CodeIgniter);
/// - `true`:由 [MockInterceptor] 本地返回示例数据,供无后端时演示。
static const bool useMock = false;
/// 接口统一前缀。
///
/// 后端 origin 与环境相关配置已迁移至 `lib/config/*`
/// ([AppEnvironment] / [AppConfig] / [TestConfig] / [StagingConfig]),
/// 默认锁定测试环境,禁止任何生产切换。
static const String apiPrefix = '/api';
/// mock 登录账号(仅 useMock=true 时演示用)。
static const String mockAccount = 'admin';
static const String mockPassword = '123456';
/// 请求超时时间。
static const Duration apiTimeout = Duration(seconds: 10);
/// 设备列表分页默认每页条数。
static const int deviceListPageSize = 100;
}