adminReportList method
管理员获取反馈列表
Implementation
Future<EasyPacket<ComPage<LogReport>>> adminReportList({required int page, required int type, required int state, int? customXNo}) async {
final response = await _aliveClient.websocketRequest('adminReportList', data: {'bsid': bsid, 'page': page, 'type': type, 'state': state, 'customXNo': customXNo});
if (response.ok) {
final reportList = response.data!['reportList'] as List;
final reportCount = response.data!['reportCount'] as int;
final result = ComPage<LogReport>(page: page, total: reportCount);
for (var element in reportList) {
result.pgcache.add(LogReport.fromJson(element));
}
return response.cloneExtra(result);
} else {
return response.cloneExtra(null);
}
}