获取设备分组列表
**简要描述:** - 获取设备分组列表 **请求URL:** - ` https://cloudapi.usr.cn/usrCloud/dev/getDevGroups ` **请求方式:** - POST **参数:** |参数名|必选|类型|说明| |:---- |:---|:----- |----- | |token |是 |string |用户登录成功返回的凭证 | |id |是 |int | 设备分组id 字段为0时获取用户下的所有分组 | |sortByWeight |否 |int | up:升序 down:降序 | **请求示例** ``` { "id":'123', "sortByWeight":"up", "token":"eyJhbGciOiJ.eyJzdWIiOiaWF0IjoxNTEyNDM0OTgxfQ.ZMdyzOMB7rsJAnMJh-sbcrIGqYZ5TIc" } ``` **返回示例** ``` { "status": 1, "data": { "total":500, "groupList": [ { "id": "10", "parentId":'1' "title": "设备分组10", "weights": 1, "description": "描述10", "children":[ { "id": "11", "parentId":'10' "title": "设备分组11", "weights": 1, "description": "描述11", "children":[] }, { "id": "12", "parentId":'10' "title": "设备分组12", "weights": 2, "description": "描述12", "children":[] } ] }, { "id": "20", "parentId":'2' "title": "设备分组20", "weights": 2, "description": "描述20", "children":[] } ] }, "info":"ok" } ```