This commit is contained in:
2026-03-07 17:24:59 +08:00
parent 4418ebecac
commit b0ec8ab4bd
417 changed files with 42546 additions and 2 deletions

View File

@@ -0,0 +1,58 @@
import 'package:get/get.dart';
/// 动漫之家评论接口太TM混乱了
/// 使用此类统一Model
class CommentItem {
CommentItem({
required this.id,
required this.objId,
required this.content,
required this.photo,
required this.createTime,
required this.images,
required this.likeAmount,
required this.nickname,
required this.replyAmount,
required this.userId,
required this.gender,
required this.type,
required this.originId,
this.isEmpty = false,
});
factory CommentItem.createEmpty() {
return CommentItem(
id: 0,
objId: 0,
content: "该评论不存在,可能已被删除",
photo: "",
createTime: 0,
images: [],
likeAmount: 0.obs,
nickname: "-",
replyAmount: 0,
userId: 0,
gender: 0,
type: 0,
originId: 0,
isEmpty: true,
);
}
int id;
int objId;
String content;
int createTime;
Rx<int> likeAmount;
int replyAmount;
String nickname;
String photo;
List<String> images;
int userId;
List<CommentItem> parents = [];
bool isEmpty;
int gender;
int type;
int originId;
}