主要变更: 1. 移除摇一摇相关功能代码与依赖 2. 新增自定义频道导入与管理功能 3. 优化iOS/macOS平台配置与适配 4. 重构路由转场逻辑为原生Cupertino风格 5. 修复设备发现与文件传输相关bug 6. 调整深色模式默认值为纯黑AMOLED 7. 新增运行模式标签与Spotlight搜索优化 8. 清理废弃的本地化字符串与设置项
33 lines
1.0 KiB
Dart
33 lines
1.0 KiB
Dart
// ============================================================
|
||
// 闲言APP — 导入句子数据模型
|
||
// 创建时间: 2026-06-10
|
||
// 更新时间: 2026-06-10
|
||
// 作用: 导入的句子数据,映射到闲言元数据v1格式
|
||
// 上次更新: 初始创建
|
||
// ============================================================
|
||
|
||
import 'package:freezed_annotation/freezed_annotation.dart';
|
||
|
||
part 'imported_sentence.freezed.dart';
|
||
part 'imported_sentence.g.dart';
|
||
|
||
/// 导入句子模型 — 对应闲言元数据v1格式
|
||
@freezed
|
||
sealed class ImportedSentence with _$ImportedSentence {
|
||
const factory ImportedSentence({
|
||
required String channelId,
|
||
required String sourceId,
|
||
required String title,
|
||
@Default('') String category,
|
||
required String content,
|
||
@Default('') String detail,
|
||
@Default('') String author,
|
||
@Default('') String sourceTime,
|
||
required String hash,
|
||
DateTime? createdAt,
|
||
}) = _ImportedSentence;
|
||
|
||
factory ImportedSentence.fromJson(Map<String, dynamic> json) =>
|
||
_$ImportedSentenceFromJson(json);
|
||
}
|