# 功能描述

获取素材所有子类型

# 请求

# 请求示例

GET /materialNew/back/categories HTTPS
Host: <host>
Content-Type: application/json 

# 请求参数_ _

名称 描述 类型 必填
type 素材类型
  1. 主题
  2. 滤镜
  3. 字幕
  4. 贴纸
  5. 转场
  6. 字体
  7. 音乐

9.粒子 15.复合字幕(组合字幕) | int | 是 |

# 请求头请求体

# 响应

# 响应头

此接口无特殊响应头。

# 响应体

请求成功的响应体为

{
    "code": 0,
    "message": "success",
    "data": {
        "materialCategories": [
            {
                "id": 1,
                "parentType": 9999,
                "level": 1,
                "displayName": "theme",
                "displayNamezhCN": "主题",
                "materialLastUpdateTime": "21-7-22 下午1:53",
                "orderScore": 1,
                "children": [
                    {
                        "id": 10,
                        "parentType": 1,
                        "level": 2,
                        "displayName": "Track",
                        "displayNamezhCN": "全轨",
                        "materialLastUpdateTime": "21-7-30 上午11:23",
                        "orderScore": 1
                    },
                    {
                        "id": 11,
                        "parentType": 1,
                        "level": 2,
                        "displayName": "Clip",
                        "displayNamezhCN": "段落",
                        "materialLastUpdateTime": "21-7-30 上午11:23",
                        "orderScore": 2
                    },
                    {
                        "id": 42,
                        "parentType": 1,
                        "level": 2,
                        "displayName": "test二级",
                        "displayNamezhCN": "test二级",
                        "materialLastUpdateTime": "21-8-3 下午2:16",
                        "orderScore": 3,
                        "children": [
                            {
                                "id": 44,
                                "parentType": 42,
                                "level": 3,
                                "displayName": "test三级1",
                                "displayNamezhCN": "test三级1",
                                "materialLastUpdateTime": "21-8-3 下午3:28",
                                "orderScore": 1
                            },
                            {
                                "id": 45,
                                "parentType": 42,
                                "level": 3,
                                "displayName": "test三级2",
                                "displayNamezhCN": "test三级2",
                                "materialLastUpdateTime": "21-8-3 下午3:28",
                                "orderScore": 2
                            },
                            {
                                "id": 46,
                                "parentType": 42,
                                "level": 3,
                                "displayName": "test三级3",
                                "displayNamezhCN": "test三级3",
                                "materialLastUpdateTime": "21-8-3 下午3:04",
                                "orderScore": 3
                            }
                        ]
                    }
                ]
            }
        ]
    }
}

请求失败的响应体为

{
    "code": <errorCode>,
    "message": <errorMessage>,          
    "data": null
}