简要描述:
获取正式的首页信息
请求URL:
http://localhost:8081/service/api/cms/appHome/official/info
请求方式:
- POST
参数
- curl -POST
http://localhost:8081/service/api/cms/appHome/preview/info?accessKey=mini_profile__app6546d23ef636e_a449006c-a570-4ec5-9082-179660a795c3&userFlag=5d55e70ee071a533b06770291f388eb0_357
表头:
Content-Type:application/json
URL参数:
| 参数名 | 类型 | 说明 | | —- | —- | —- | | accessKey | String | 用户token | | userFlag | String | 用户唯一标识 |
- curl -POST
以上参数用作用户Token校验。
请求参数:
参数名 | 是否必须 | 类型 | 说明 |
---|---|---|---|
输入实例:
{
}
返回参数:
参数名 | 是否必须 | 类型 | 说明 |
---|---|---|---|
status_msg | true | String | 错误信息 |
status_code | true | String | 错误代码 -0正确 -1001记录不在数据库中或者解析错误 -1002不存在或者记录格式错误 |
content | false | String | 返回 方案内容, JSON格式字符串 |
返回示例:
{
"projectName": "CCTV",
"satus_msg": "ok",
"sceneImg": "/admin/resources/skin/default/images/weixin/schlib/首页_监控场景.png",
"schemeId": 0,
"version": 6,
"devices": [
{
"num": 1,
"model": "RG-NBS2028G-E",
"index": 1,
"unit": "pc",
"selected": true,
"type": "Core Switch"
},
{
"type": "Layer-2 Switch",
"unit": "pcs",
"index": 5,
"num": 5,
"selected": true,
"model": "RG-NBS1826GC-P"
}
],
"schlibPage": {
"specialProduct": {
"list": [
{
"name": "RG-NBS2028G-E",
"unit": "",
"num": "Mean time between failures is over 200 thousand hours\nLarge buffer and no delay\nLightning protection"
},
{
"unit": "",
"num": "Standard SFP uplink which avoids SPoF and reduce costs by 20%\nLarge buffer for CCTV\nAuto power selection and short circuit protection",
"name": "RG-NBS1826GC-P"
}
],
"name": "Product"
},
"specialFunction": {
"name": "Advantage",
"list": [
{
"num": "Most 24-port 100M unmanaged switches can only connect with 16 2MP cameras, but with 2M buffer, Real-Easy switches keep high speed with all ports connected.",
"unit": "",
"name": "Large buffer and no delay"
}
],
"version": 2
},
"networkRule": {
"ruleTable1": {
"column": 3,
"list": [
{
"list": [
{
"num": "",
"index": 1,
"unit": "",
"name": "Cameras"
},
{
"name": "Core Switch",
"num": "",
"index": 2,
"unit": ""
},
{
"unit": "",
"name": "Switch",
"index": 3,
"num": ""
}
],
"index": 1,
"name": "第1列"
},
{
"list": [
{
"unit": "",
"num": "",
"name": "100 2MP Cameras",
"index": 1
},
{
"num": "",
"unit": "",
"name": "RG-NBS2028G-E",
"index": 2
},
{
"unit": "",
"index": 3,
"num": "",
"name": "RG-NBS1826GC-P"
}
],
"name": "第2列",
"index": 2
},
{
"index": 3,
"name": "第3列",
"list": [
{
"num": "",
"unit": "",
"name": "200 2MP Cameras",
"index": 1
},
{
"name": "RG-NBS5628XG",
"unit": "",
"index": 2,
"num": ""
},
{
"index": 3,
"num": "",
"unit": "",
"name": "RG-NBS1826GC-P"
}
]
}
],
"type": "column",
"name": "列优先3*3表格,行*列",
"row": 5
},
"name": "Scheme Option "
},
"imgs": {
"topologicalImgs": {
"name": "Topology",
"list": [
{
"path": "/admin/resources/skin/default/images/weixin/schlib/监控场景_拓扑图.png",
"title": "Topology 1"
}
]
},
"layoutImgs": {
"name": "Floorplan",
"list": [
{
"title": "Floorplan 1",
"path": "/admin/resources/skin/default/images/weixin/schlib/监控场景_户型图1.png"
}
]
}
},
"ability": {
"list": [
{
"name": "Cameras",
"num": "100",
"unit": ""
}
],
"name": "Feature"
},
"selectButtons": {
"name": "可选按钮",
"list": [
{
"version": 6,
"schemeId": 42,
"name": "Device List for 100 2MP Cameras"
},
{
"schemeId": 43,
"version": 66,
"name": "Device List for 200 2MP Cameras"
}
]
}
},
"status_code": 0,
"sceneType": "CCTV",
"status_msg": "ok",
"htmlTemplate": "/admin/config/caseBaseGf"
}