Skip to content

查询租户下频道列表

1 接口名称

查询租户下频道列表

2 接口描述

3 请求地址

plain
{apiAddress}/openapi/v2/channel/list?connectNo=e000b5743a866438&signature=60f911146835c7dd5019bed6dc8f0920&accountIds=5d316df767da3d51ace4c5b7,5d2562e267da3d1d8ed2a96e,5e96799867da3d65fbb7b604,5d48d84367da3d17694e14eb&articleId=24664&appkey=cblzs&noncestr=1682318562007&timestamp=1682318562007

4 请求方式

GET

5 请求参数

5.1 Query Params 参数

序号参数名称类型必传说明
1connectNostring约定的通信connectNo(区别用户)

6 返回参数

6.1参数描述

编号字段类型说明
1codeint返回编码
2messageString响应消息
3dataobject

data结构详情

编号字段类型说明
1channelListList频道树

ChannelVO详情

编号字段类型说明
1channelNameString频道名称
2channelIdString频道ID
3parentIdString父频道ID
4childrenList子频道列表

6.2参数示例

json
{
  "code": 0,
  "message": "success",
  "data": {
    "channelList": [
      {
        "parentId": "0",
        "channelName": "多签频道",
        "channelId": "64e6fc4537fa3d135b3d44cb",
        "children": [
          {
            "parentId": "64e6fc4537fa3d135b3d44cb",
            "channelName": "多签频道2",
            "channelId": "64e6fca037fa3d135b3d44cc"
          },
          {
            "parentId": "64e6fc4537fa3d135b3d44cb",
            "channelName": "多签频道4",
            "channelId": "64e6fced37fa3d135b3d44cd",
            "children": [
              {
                "parentId": "64e6fced37fa3d135b3d44cd",
                "channelName": "多签频道4-1",
                "channelId": "64e801b637fa3d746bdf0366"
              }
            ]
          }
        ]
      }
    ]
  }
}

7 备注

成功返回code是0,非0时均为失败。