Query the item
| parameter | description | required |
|---|---|---|
| action | queryPlants | true |
| status | Project status, If you do not pass this parameter, igonre it | false |
| orderBy | collation rules, Possible values: ascPlantName, In order of project name descPlantName, In reverse order by project name ascInstall, In chronological order of project installation descInstall, Reverse order by project installation time ascStatus, In order of project status descStatus, Reverse order by project status ,If you do not pass this parameter, defaults to ascPlantName |
false |
| plantName | Project name, fuzzy search | false |
| page | Pagination processing, page number, Start at 0, If you do not pass this parameter, defaults to 0 | false |
| pagesize | Pagination processing, The number of records per page, 1 ~ 50, If you do not pass this parameter, defaults to 1 | false |
response:
| parameter | description | required |
|---|---|---|
| total | Total number of records | true |
| page | Pagination processing, page number | true |
| pagesize | Pagination processing, The number of records per page | true |
| plant[x]seeQuery project information | true |
{
"err":0,
"desc":"ERR_NONE",
"dat":{
"total":8,
"page":0,
"pagesize":1,
"plant":[
{
"pid":1,
"uid":1,
"name":"PLANT",
"status":1,
"picBig":"http://img.shinemonitor.com/picBig.png",
"picSmall":"http://img.shinemonitor.com/picSmall.png",
"install":"2017-06-29 02:16:21",
"gts":"2017-06-29 02:16:21"
}
]
}
}
possible error:
| Returns an error code | description | detailed description |
|---|---|---|
| 0x0006 | ERR_FORMAT_ERROR | parameter error |
| 0x0104 | ERR_NOT_FOUND_PLANT | Project not foound |
| 0x0008 | ERR_FORBIDDEN | reject(invoked the projectowner/distributor/equipment manufacturer, rejected other roles) |