Skip to content

Commit

Permalink
api
Browse files Browse the repository at this point in the history
  • Loading branch information
dgiot-fe committed Mar 11, 2022
1 parent 58ebff8 commit 351a6ab
Show file tree
Hide file tree
Showing 6 changed files with 665 additions and 58 deletions.
115 changes: 115 additions & 0 deletions apps/dgiot_dlink/priv/Dashboard.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,115 @@
{
"dashboard": [
{
"dataType": "map",
"vuekey": "baiduMap",
"table": "baidu",
"query": {
"keys": [
"count(*)"
]
}
},
{
"dataType": "card",
"vuekey": "app_count",
"table": "App",
"query": {
"limit": 1,
"keys": [
"count(*)"
],
"where": {}
}
},
{
"dataType": "card",
"vuekey": "product_count",
"table": "Product",
"query": {
"keys": [
"count(*)"
],
"where": {}
}
},
{
"dataType": "card",
"vuekey": "dev_online_count",
"table": "Device",
"query": {
"order": "-updatedAt",
"limit": 15,
"keys": [
"count(*)"
],
"where": {
"status": "ONLINE"
}
}
},
{
"dataType": "card",
"vuekey": "dev_off_count",
"table": "Device",
"query": {
"limit": 15,
"order": "-updatedAt",
"keys": [
"count(*)"
],
"where": {
"status": "OFFLINE"
}
}
},
{
"dataType": "card",
"vuekey": "project_count",
"table": "Project",
"query": {
"limit": 1,
"keys": [
"count(*)"
],
"where": {}
}
},
{
"dataType": "card",
"vuekey": "ChartStatus",
"table": "ChartStatus",
"query": {
"limit": 1,
"keys": [
"count(*)"
],
"where": {}
}
},
{
"dataType": "card",
"vuekey": "device_count",
"table": "Device",
"query": {
"limit": 1,
"keys": [
"count(*)"
],
"where": {}
}
},
{
"dataType": "card",
"vuekey": "warn_count",
"table": "Notification",
"query": {
"limit": 1,
"keys": [
"count(*)"
],
"where": {}
}
}
]
}
34 changes: 34 additions & 0 deletions apps/dgiot_dlink/priv/Topic.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
{
"basic": [
{
"category": "OTA 升级",
"desc": "设备属性上报",
"isdef": true,
"topic": "$dg/user/${deviceid}/post",
"type": "sub"
},
{
"category": "OTA 升级",
"desc": "消息下发",
"isdef": true,
"topic": "$dg/thing/${deviceid}/",
"type": "pub"
}
],
"thing": [
{
"category": "属性上报",
"desc": "设备属性上报",
"isdef": true,
"topic": "$dg/user/${deviceid}/post",
"type": "sub'"
},
{
"category": "属性上报",
"desc": "消息下发",
"isdef": true,
"topic": "$dg/thing/${deviceid}/",
"type": "pub"
}
]
}
Loading

0 comments on commit 351a6ab

Please sign in to comment.