feat: add local caches and unified settings

This commit is contained in:
ngfchl
2026-07-18 11:32:00 +08:00
parent fa810793d0
commit 901c980462
6 changed files with 334 additions and 56 deletions
+13
View File
@@ -162,6 +162,19 @@ class CloudFile {
);
}
Map<String, dynamic> toJson() => {
'id': id,
'name': name,
'isDir': isDirectory,
'size': size,
'gcid': gcid,
'subDirCount': subDirectoryCount,
'subFileCount': subFileCount,
'updateTime': modifiedAt,
'path': cloudPath,
'fileType': fileType,
};
static String _extractId(Map<String, dynamic> json) {
for (final key in ['fileId', 'file_id', 'resId', 'res_id', 'fid', 'id']) {
final v = json[key];