TIMGroupSetTopicInfo

功能介绍

修改话题信息

参数详解

参数名称 参数类型 是否必填 描述
SetTopicInfoParam SetTopicInfoParam 获取当前用户已经加入的支持话题的社群列表的参数

返回模板

Promise<commonResult<string >>

{
    code: TIMResult | TIMErrCode;
    desc?: string | undefined;
    json_param?: string | undefined;
    json_params?: string | undefined; // 兼容
    user_data?: string | undefined;
}

返回值详解

名称 数值类型 描述
code TIMResultTIMErrCode 返回状态码
desc string | undefined 返回描述
json_param string | undefined 根据具具体接口返回
json_params string | undefined 兼容的字段,某些情况下会返回这个,根据具体接口返回
user_data string | undefined ImSDK负责透传的用户自定义数据,未做任何处理

代码示例

import TimRender from "im_electron_sdk/dist/renderer";
const timRenderInstance = new TimRender();
import { GroupTopicInfo,SetTopicInfoParam } from "im_electron_sdk/dist/interfaces";
let info:GroupTopicInfo = {
    group_topic_info_topic_id: "",
    group_topic_info_topic_name: "",
    group_modify_info_param_modify_flag:0x01
  }
  let param:SetTopicInfoParam = {
    json_topic_info:info
  }
const {code} = await timRenderInstance.TIMGroupSetTopicInfo(param)
if(code == 0){
    //成功
}

results matching ""

    No results matching ""