迁移播放记录到新数据结构,新增自动清理播放记录
This commit is contained in:
@@ -39,6 +39,8 @@ export interface IStorage {
|
||||
): Promise<void>;
|
||||
getAllPlayRecords(userName: string): Promise<{ [key: string]: PlayRecord }>;
|
||||
deletePlayRecord(userName: string, key: string): Promise<void>;
|
||||
// 清理超出限制的旧播放记录
|
||||
cleanupOldPlayRecords(userName: string): Promise<void>;
|
||||
|
||||
// 收藏相关
|
||||
getFavorite(userName: string, key: string): Promise<Favorite | null>;
|
||||
|
||||
Reference in New Issue
Block a user