配置文件

配置文件

概述

config 目录包含了系统所需的配置文件以及其他公共资源文件

配置文件

应用列表

applications.json

{
    "<name>": {
        "title": String,
        "titles": {},
        "description": String,
        "descriptions": {},
        "icon": String,
        "href": String
    }
}
  • {name} 应用名称,只包含小写字母,数字,- 符号等
    • title 应用标题
    • description 应用简要描述
    • icon 图标名称
    • href 访问路径

微服务配置参数

权限列表

permissions.json

权限分查询权限和修改权限两级,如 device 表示拥有读取设备管理系统数据的权限,device.product 表示添加/修改/删除产品的权限

[{
    "name": String,
    "title": String,
    "titles": { "zh-CN": String },
    "permissions": [{
        "name": String,
        "title": String,
        "titles": { "zh-CN": String }
    }]
}]
  • name 查询权限名称
  • title 权限显示标题
  • titles 权限多语言标题
  • permissions 修改权限等子权限列表
    • name 权限名称
    • title 权限显示标题
    • titles 权限多语言标题

多语言 - locale

  • locale/en-US.json 英文
  • locale/zh-CN.json 中文

位置数据 - location

  • location/city.json

地级市,自治州

{
  "rows":[{
    "adcode": "370783",
    "people_count_2010": 1100000,
    "lat": 36.874411,
    "lng": 118.736451,
    "name": "寿光市",
    "level": "district",
    "parent": "潍坊市"}
  }],
  "total": Number
}
  • location/district.json

县,县级市,区

{
  "rows":[{
    "adcode": "370400",
    "people_count_2010": 3189966,
    "lat": 34.856424,
    "lng": 117.557964,
    "name": "枣庄市",
    "level": "city",
    "parent": "山东省"
  }],
  "total": Number
}
  • location/province.json

省,自治区,直辖市

{
  "rows":[{
    "adcode": "810000",
    "people_count_2010": null,
    "lat": 22.320048,
    "lng": 114.173355,
    "name": "香港特別行政區",
    "level": "province",
    "parent": "中华人民共和国"
  }],
  "total": Number
}

设备模型 - schema

  • schema/actions.json

常用标准操作

  • schema/events.json

常用标准事件

  • schema/properties.json

常用标准属性

  • schema/schemas.json

标准设备

控制台公共文件

admin-header.html

平台监控前端页面头部栏

nav-header.html

控制台前端页面头部栏

image-modal