first commit
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
/// 账单创建/更新请求体
|
||||
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<String, dynamic> toJson() => {
|
||||
'categoryId': categoryId,
|
||||
'amount': amount,
|
||||
'description': description,
|
||||
'billDate': billDate,
|
||||
'type': type,
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user