Skip to content

视频分类列表(新) ​

历史版本 ​

请求路径 ​

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

请求参数 ​

无需传递参数

请求示例 ​

json
{}

响应参数 ​

参数必选类型描述
code是integer状态码:200-成功,400-失败
msg是string提示信息
data是object消息内容

data 参数结构 ​

参数必选类型描述
total是integer视频总数量
cate_list是array分组列表
cate_list_recently是array最近选择分组列表

cate_list 参数结构 ​

参数必选类型描述
id是integer分组ID
name是string分组名称
sort是integer排序
type是integer类型:1-图片,2-视频,3-附件
is_recently_choice是integer是否最近选择:1-是,2-否
pid是integer父ID
is_default是integer是否系统默认分组:1-是,2-不是
total是integer对应分组视频数量
children是array子分组列表

cate_list_recently 参数结构 ​

参数必选类型描述
id是integer分组ID
name是string分组名称
sort是integer排序
type是integer类型:1-图片,2-视频,3-附件
is_recently_choice是integer是否最近选择:1-是,2-否
pid是integer父ID
is_default是integer是否系统默认分组:1-是,2-不是
total是integer对应分组视频数量

响应示例 ​

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失败