IoT服务平台四个重要概念
修改:
exp = '{\
"createdDate": "",\
"createdBy": "",\
"username": "",\
"hashedPassword": "",\
"lastLogin": "",\
"status": "",\
"ext":{},\ #用户、租户、站点、设备、事件都添加该字段,用户扩展
"metadata": {}\}'
站点
exp = '{\
"createdDate": "",\
"createdBy": "",\
"token":"",\
"name":"",\
"description":"",\
"metadata": {}\
}'
设备
exp = '{\
"createdDate": "",\
"createdBy": "",\
"hardwareId": "",\
"siteToken":"",\
"comments":"",\
"metadata": {}\
}'
租户
exp = '{\
"createdDate":"",\
"createdBy":"",\
"id":"",\
"name":"",\
"authenticationToken":"",\
"authorizedUserIds":[],\
"metadata":{}\
}'
用户
exp = '{\
"createdDate": "",\
"createdBy": "",\
"username": "",\
"hashedPassword": "",\
"lastLogin": "",\
"status": "",\
"metadata": {}\
}'