Skip to content

视频分类列表(新)

历史版本

请求路径

  • 请求方式:POST
  • 请求头:Content-Type:application/json
  • 接口地址:https://gateway.nuoyunapi.com/Api/Library/getVideoCateList/2.0.0
  • 频率限制:10秒30次

请求参数

无需传递参数

请求示例

json
{}

响应参数

参数必选类型描述
codeinteger状态码:200-成功,400-失败
msgstring提示信息
dataobject消息内容

data 参数结构

参数必选类型描述
totalinteger视频总数量
cate_listarray分组列表
cate_list_recentlyarray最近选择分组列表

cate_list 参数结构

参数必选类型描述
idinteger分组ID
namestring分组名称
sortinteger排序
typeinteger类型:1-图片,2-视频,3-附件
is_recently_choiceinteger是否最近选择:1-是,2-否
pidinteger父ID
is_defaultinteger是否系统默认分组:1-是,2-不是
totalinteger对应分组视频数量
childrenarray子分组列表

cate_list_recently 参数结构

参数必选类型描述
idinteger分组ID
namestring分组名称
sortinteger排序
typeinteger类型:1-图片,2-视频,3-附件
is_recently_choiceinteger是否最近选择:1-是,2-否
pidinteger父ID
is_defaultinteger是否系统默认分组:1-是,2-不是
totalinteger对应分组视频数量

响应示例

json
{
  "code": 200,
  "data": {
    "total": 180,
    "cate_list": [
      {
        "id": 10001,
        "name": "直播回放分类",
        "sort": 2,
        "type": 2,
        "is_recently_choice": 1,
        "pid": 0,
        "is_default": 2,
        "total": 35,
        "children": [
          {
            "id": 20001,
            "name": "产品介绍",
            "sort": 1,
            "type": 2,
            "is_recently_choice": 1,
            "pid": 10001,
            "is_default": 2,
            "total": 12,
            "children": []
          },
          {
            "id": 20002,
            "name": "活动回放",
            "sort": 2,
            "type": 2,
            "is_recently_choice": 1,
            "pid": 10001,
            "is_default": 2,
            "total": 8,
            "children": []
          },
          {
            "id": 20003,
            "name": "培训视频",
            "sort": 3,
            "type": 2,
            "is_recently_choice": 1,
            "pid": 10001,
            "is_default": 2,
            "total": 15,
            "children": []
          }
        ]
      },
      {
        "id": 10002,
        "name": "系统默认分组",
        "sort": 1,
        "type": 2,
        "is_recently_choice": 1,
        "pid": 0,
        "is_default": 1,
        "total": 68,
        "children": []
      }
    ],
    "cate_list_recently": [
      {
        "id": 10002,
        "name": "系统默认分组",
        "sort": 1,
        "type": 2,
        "is_recently_choice": 1,
        "pid": 0,
        "is_default": 1,
        "total": 68
      },
      {
        "id": 10003,
        "name": "营销活动",
        "sort": 3,
        "type": 2,
        "is_recently_choice": 1,
        "pid": 0,
        "is_default": 2,
        "total": 25
      }
    ]
  },
  "msg": "Success"
}

状态码说明

状态码描述
200成功
400失败