searchGroupByID method
Implementation
Future<dynamic> searchGroupByID(Map<String, dynamic> params) async {
try {
final res = await wrappedPromiseToFuture(
timeweb!.searchGroupByID(params['groupID']));
if (res.code == 0) {
final groupInFo = V2TimGroupCreate.convertGroupResultFromWebToDart(
jsToMap(res.data)['group']);
return CommonUtils.returnSuccess(groupInFo);
}
return CommonUtils.returnError('search group error');
} catch (error) {
return CommonUtils.returnError(error.toString());
}
}