revokeMessage method

Future revokeMessage(
  1. dynamic params
)

Implementation

Future<dynamic> revokeMessage(params) async {
  try {
    final res = await wrappedPromiseToFuture(timeweb!.revokeMessage(parse(params['webMessageInstatnce'])));
    final code = res.code;
    if (code == 0) {
      return CommonUtils.returnSuccessForCb(jsToMap(res.data));
    } else {
      return CommonUtils.returnError("撤回消息失败");
    }
  } catch (error) {
    return CommonUtils.returnError(error);
  }
}