/// 账单创建/更新请求体 class BillRequest { final int categoryId; final double amount; final String description; final String billDate; // yyyy-MM-dd final int type; // 1=支出,2=收入 const BillRequest({ required this.categoryId, required this.amount, this.description = '', required this.billDate, required this.type, }); Map toJson() => { 'categoryId': categoryId, 'amount': amount, 'description': description, 'billDate': billDate, 'type': type, }; }