markMsgReaded method
Implementation
Future<dynamic> markMsgReaded(markMsgReadedParams) async {
try {
final res = await wrappedPromiseToFuture(timeweb!.setMessageRead(markMsgReadedParams));
if (res.code == 0) {
return CommonUtils.returnSuccessForCb(jsToMap(res.data));
} else {
return CommonUtils.returnError('设置已读失败');
}
} catch (error) {
return CommonUtils.returnError(error);
}
}