mod: specify list type

Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2025-04-11 21:31:59 +08:00
parent da35cf471e
commit 9ce9940306
18 changed files with 61 additions and 47 deletions

View File

@@ -296,9 +296,7 @@ class UserHttp {
}
// 移除已观看
static Future toViewDel({
List? aids,
}) async {
static Future toViewDel({List<int?>? aids}) async {
final Map<String, dynamic> params = {
'jsonp': 'jsonp',
'csrf': await Request.getCsrf(),
@@ -352,7 +350,7 @@ class UserHttp {
}
// 删除历史记录
static Future delHistory(List kidList) async {
static Future delHistory(List<String> kidList) async {
var res = await Request().post(
Api.delHistory,
data: {