getFriendGroups method

Future getFriendGroups(
  1. Map<String, dynamic> params
)

Implementation

Future<dynamic> getFriendGroups(Map<String, dynamic> params) async {
  try {
    if (params["groupNameList"] != null) {
      print(" web getFriendGroupList 不支特定分组传入");
    }
    final res = await wrappedPromiseToFuture(timeWeb!.getFriendGroupList());
    final formateResult = FriendGroup.formateGroupResult(res.data);
    return CommonUtils.returnSuccess<List<V2TimFriendGroup>>(formateResult);
  } catch (error) {
    return CommonUtils.returnErrorForValueCb<List<V2TimFriendGroup>>(error);
  }
}