local history

This commit is contained in:
wgh19
2024-06-12 15:43:06 +08:00
parent 759d6959b5
commit d247455c19
7 changed files with 383 additions and 28 deletions

View File

@@ -573,4 +573,14 @@ class Network {
return Res.error(res.errorMessage);
}
}
Future<Res<bool>> sendHistory(List<int> ids) async{
var res = await apiPost("/v2/user/browsing-history/illust/add",
data: {"illust_ids": ids});
if (res.success) {
return const Res(true);
} else {
return Res.fromErrorRes(res);
}
}
}