TIMFriendshipModifyFriendGroup
功能介绍
修改好友分组
参数详解
返回模板
Promise<commonResult<Array<FriendResult>>>
{
code: TIMResult | TIMErrCode;
desc?: string | undefined;
json_param?: Array<FriendResult> | undefined;
json_params?: Array<FriendResult> | undefined;
user_data?: string | undefined;
}
返回值详解
名称 |
数值类型 |
描述 |
code |
TIMResult | TIMErrCode |
返回状态码 |
desc |
string | undefined |
返回描述 |
json_param |
Array< FriendResult > | undefined |
根据具具体接口返回 |
json_params |
Array< FriendResult > | undefined |
兼容的字段,某些情况下会返回这个,根据具体接口返回 |
user_data |
string | undefined |
ImSDK负责透传的用户自定义数据,未做任何处理 |
代码示例
import TimRender from "im_electron_sdk/dist/renderer";
const timRenderInstance = new TimRender();
import { ModifyFriendGroupParams } from "im_electron_sdk/dist/interfaces";
let param :ModifyFriendGroupParams={
params: {
friendship_modify_friend_group_param_name: "",
friendship_modify_friend_group_param_new_name: "",
friendship_modify_friend_group_param_delete_identifier_array: [""],
friendship_modify_friend_group_param_add_identifier_array: [""]
},
user_data: ""
}
const {code} = await timRenderInstance.TIMFriendshipModifyFriendGroup(param);
if(code == 0){
}