/// OpenHarmony 交易记录模型
class Transaction {
final String id;
final String title;
final double amount;
final DateTime date;
final TransactionType type;
final String category;
final String? note;
final List tags; // 新增:交易标签列表

Transaction({
required this.id,
required this.title,
required this.amount,
required this.date,
required this.type,
required this.category,
this.note,
this.tags = const [], // 默认为空列表
});
}

欢迎加入开源鸿蒙跨平台社区:https://openharmonycrossplatform.csdn.net

Logo

Agent 垂直技术社区,欢迎活跃、内容共建。

更多推荐