{
"page": {
"page": 0,
"size": 0,
"orders": [
{
"field": "string",
"sort": 0
}
]
},
"name": "string",
"parentID": 0,
"ids": [
0
],
"projectID": "string"
}
curl --location --request POST '/api/v1/things/product/category/index' \
--header 'Ithings-Project-Id: {{Ithings-Project-Id}}' \
--header 'Ithings-Token: {{iThings-token}}' \
--header 'app-code: {{appCode}}' \
--header 'device-id;' \
--header 'Content-Type: application/json' \
--data-raw '{
"page": {
"page": 0,
"size": 0,
"orders": [
{
"field": "string",
"sort": 0
}
]
},
"name": "string",
"parentID": 0,
"ids": [
0
],
"projectID": "string"
}'
{
"code": "200",
"msg": "string",
"data": {
"list": [
{
"id": 0,
"parentID": 0,
"idPath": [
0
],
"name": "string",
"desc": "string",
"headImg": "string",
"isUpdateHeadImg": true,
"isLeaf": 0,
"deviceCount": 0,
"children": [
{}
]
}
],
"total": 0,
"num": 0
}
}