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

@@ -17,11 +17,11 @@ class SysMsgController
}
@override
void handleListResponse(List dataList) {
void handleListResponse(List<SystemNotifyList> dataList) {
if (cursor == -1) {
msgSysUpdateCursor(dataList.first?.cursor);
msgSysUpdateCursor(dataList.first.cursor);
}
cursor = dataList.last?.cursor ?? -1;
cursor = dataList.last.cursor ?? -1;
if (isEnd.not && dataList.length + 1 < pageSize) {
isEnd = true;
}