Energy storage account query
such as, request: http://api.dessmonitor.com/public/?sign=34f9987403e7189d6119458413b9081f3e24bbc6&salt=1543542071983&token=652fac76250af68d95e33b1817ad6577b62c09bd7602833adbc160081a48e3bd&action=webQueryUsrEs&source=1&_app_client_=android&_app_id_=com.demo.test&_app_version_=3.6.2.1
| parameter |
description |
required |
| action |
webQueryUsrEs |
true |
| role |
account type, If you do not pass this parameter,igonre it |
fasle |
| usr |
User name, If you do not pass this parameter,ignore it |
fasle |
| enable |
Whether the account is enabled ? true : false |
fasle |
| groupid |
Group id, If the incoming null input indicates,means that query the not grouped accounts, If you do not pass this parameter,ignore it |
false |
| active |
Whether the user is active? true : false, If you do not pass this parameter,ignore it |
false |
| source |
if the user source is not transmitted,default to energy storage:1 |
false |
| orderBy |
sort,Username sorting,descUsr is passed in reverse order,Pass ascUsr as order |
false |
| page |
page processing, page number, start at 0, If you do not pass this parameter, is defaulted to 0 |
false |
| pagesize |
page processing, The number of records per page, 1 ~ 50, If you do not pass this parameter, is defaulted to 1 |
false |
response:
| parameter |
description |
required |
| total |
Total number of records |
true |
| page |
page processing, page number |
true |
| pagesize |
page processing, The number of records per page |
true |
| account[x].uid |
User id |
true |
| account[x].usr |
User name |
true |
| account[x].qname |
Nickname |
true |
| account[x].role |
User type |
true |
| account[x].rid |
User role |
false |
| account[x].desc |
account note |
false |
| account[x].enable |
account status, true ? normal : freeze |
true |
| account[x].mobile |
mobile phone |
false |
| account[x].email |
email |
false |
| account[x].gts |
Account registration time, format: yyyy-mm-dd hh:mi:ss, Zero time zone |
|
| account[x].groupId |
grouping ID |
false |
| account[x].group |
grouping name |
false |
| account[x].collectors |
Number of collectors |
false |
| account[x].devices |
device number |
false |
| account[x].lastLoginTs |
Last logon time |
false |
| account[x].active |
Whether the account is active |
false |
{
"err":0,
"desc":"ERR_NONE",
"dat":{
"total":1438,
"page":0,
"pagesize":1,
"account":[
{
"uid":1350,
"usr":"Tongbai County Industrial Cluster",
"qname":"Tongbai County industrial agglomeration area energy storage power station",
"role":0,
"rid":-1,
"mobile":"18738791601",
"email":"zhangminli66@sina.com",
"enable":true,
"gts":"2017-02-27 09:52:08",
"groupId":"5a9768917044a46bcf41ee2f",
"group":"Ruyang County",
"collectors":3,
"devices":3,
"lastLoginTs":"2018-11-28 07:47:28",
"active":true
}
]
}
}
possible error:
| Returns an error code |
description |
detailed description |
| 0x0006 |
ERR_FORMAT_ERROR |
format error,parameter error |
| 0x000B |
ERR_NO_PERMISSION |
no permission |
| 0x0105 |
ERR_NOT_FOUND_USR |
User not found |
| 0x0171 |
ERR_NOT_FOUND_USR_GROUP |
User group not found |