feat:更新美食记录表单

This commit is contained in:
2025-11-23 00:02:41 +08:00
parent 1ac504f3d7
commit 6308169013
41 changed files with 465 additions and 1618 deletions

View File

@@ -4,13 +4,13 @@ part 'moment.g.dart';
@JsonSerializable()
class Comment {
final int id;
final String username;
final String avatar;
final String content;
final String date;
int id;
String username;
String avatar;
String content;
String date;
const Comment({
Comment({
required this.id,
required this.username,
required this.avatar,
@@ -25,15 +25,15 @@ class Comment {
@JsonSerializable()
class Moment {
final int? id;
final int? userId;
final String? username;
final String? avatar;
final String content;
final List<String> imageList;
final String? date;
final List<int>? likeList;
final List<Comment>? commentList;
int? id;
int? userId;
String? username;
String? avatar;
String content;
List<String> imageList;
String? date;
List<int>? likeList;
List<Comment>? commentList;
Moment({
this.id,