# Function description

Get all subtypes of material

# Request

# Request example

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

# Request Parameters

Name Description Type Mandatory
type Material type
1. theme
2. filter
3. caption
4. sticker
5. transition
6. font
7. music
8. particle
15.compound caption
int Yes

# Request Headers

none

# Request Body

none

# Response

# Response Header

No special response header

# Response Body

Successful Response Body :

{
  "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": 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
              }
            ]
          }
        ]
      }
    ]
  }
}

The response body of the failed request is

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