This commit is contained in:
zhutao
2025-09-09 14:07:38 +08:00
parent 71aa4a6790
commit 900dc025d7
24 changed files with 383 additions and 91 deletions

View File

@@ -0,0 +1,21 @@
class DailyTipDto {
int? id;
String? title;
String? content;
DailyTipDto({this.id, this.title, this.content});
Map<String, dynamic> toJson() {
final map = <String, dynamic>{};
map["id"] = id;
map["title"] = title;
map["content"] = content;
return map;
}
DailyTipDto.fromJson(dynamic json) {
id = json["id"] ?? 0;
title = json["title"] ?? "";
content = json["content"] ?? "";
}
}