userFetch method
批量获取用户
Implementation
Future<EasyPacket<List<User>>> userFetch({required List<ObjectId> uids}) async {
final response = await _aliveClient.websocketRequest('userFetch', data: {'bsid': bsid, 'uids': uids});
if (response.ok) {
final userList = _cacheUserList(response.data!['userList']);
_aliveClient.triggerEvent(EasyPacket.pushdata(route: 'onUserFetchedEvent', data: response.data));
return response.cloneExtra(userList);
} else {
return response.cloneExtra(null);
}
}