setGroupMemberRole method
Implementation
Future<dynamic> setGroupMemberRole(Map<String, dynamic> params) async {
try {
final setGroupMemberRoleParams = SetGroupMemberRole.formatParams(params);
final res = await wrappedPromiseToFuture(
timeweb!.setGroupMemberRole(setGroupMemberRoleParams));
if (res.code == 0) {
return CommonUtils.returnSuccessWithDesc('ok');
}
return CommonUtils.returnError('set group member role failed');
} catch (error) {
return CommonUtils.returnError(error);
}
}