feat(player): 切集刷新互动计数统计

This commit is contained in:
Zhou Weidong committed 2026-10-26 21:40:39 +08:00
1 parent 37353dac15
commit 188811fde6
11 files changed
+694 -20

No files matched your search

+14
View File
@@ -60,6 +60,20 @@ class Episode {
posterUrl: posterUrl ?? this.posterUrl,
);
Episode withStats({int? likeCount, int? commentCount}) => Episode(
id: id,
number: number,
title: title,
isFree: isFree,
videoUrl: videoUrl,
durationSec: durationSec,
locked: locked,
likeCount: likeCount ?? this.likeCount,
commentCount: commentCount ?? this.commentCount,
thumbnailsUrl: thumbnailsUrl,
posterUrl: posterUrl,
);
factory Episode.fromJson(Map<String, dynamic> json) {
return Episode(
id: (json['id'] ?? '').toString(),