feat:增加朋友圈表单功能
This commit is contained in:
@@ -50,6 +50,14 @@ class Moment {
|
||||
factory Moment.fromJson(Map<String, dynamic> json) => _$MomentFromJson(json);
|
||||
|
||||
Map<String, dynamic> toJson() => _$MomentToJson(this);
|
||||
|
||||
static Moment getEmpty() {
|
||||
return Moment(
|
||||
id: 0,
|
||||
content: '',
|
||||
imageList: []
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
@JsonSerializable()
|
||||
|
||||
Reference in New Issue
Block a user