This commit is contained in:
hrxiang
2021-09-15 17:14:10 +08:00
parent 0a7613005e
commit 78278ec8fe
10 changed files with 1402 additions and 770 deletions

View File

@@ -55,8 +55,14 @@ class FriendshipManager {
/// modify friend information, only [comment] can be modified
///
Future<dynamic> setFriendInfo({required UserInfo info}) {
return _channel.invokeMethod('setFriendInfo', _buildParam(info.toJson()));
Future<dynamic> setFriendInfo(
{required String uid, required String comment}) {
return _channel.invokeMethod(
'setFriendInfo',
_buildParam({
'uid': uid,
'comment': comment,
}));
}
/// add to blacklist