Commit 9e0a5868 by lixinming

no message

parent c74f979d
......@@ -211,4 +211,78 @@ export async function getCSFX(req, res) {
ret["api5"] = getListOutData("企业脱离自动驾驶比率", 企业测试自动驾驶比率Info);
res.send(ret);
}
export async function mapData(req, res) {
//地图数据结构
let ret:any = {};
let 基础数据data = {"摄像头":"57", "OBU":"68", "激光雷达":"48", "RSU":"76", "SIBOX":"89" };
ret["base"] = getKeyValueNumberOutData("计算云资源", 基础数据data );
ret["map"] = {
rlList:[
{
latitude:123.1,
longitude:123.1,
state:0,
},
{
latitude:123.1,
longitude:123.1,
state:1,
}
],
LIDARList:[
{
latitude:123.1,
longitude:123.1,
state:0,
},
{
latitude:123.1,
longitude:123.1,
state:1,
}
],
MMWList:[
{
latitude:123.1,
longitude:123.1,
state:0,
},
{
latitude:123.1,
longitude:123.1,
state:1,
}
],
RSUList:[
{
latitude:123.1,
longitude:123.1,
state:0,
},
{
latitude:123.1,
longitude:123.1,
state:1,
}
],
SIBOXList:[
{
latitude:123.1,
longitude:123.1,
state:0,
},
{
latitude:123.1,
longitude:123.1,
state:1,
}
]
};
res.send(ret);
}
\ No newline at end of file
......@@ -10,8 +10,8 @@ async function lanuch() {
httpServer.createServer(port);
// await initData();
console.log('This indicates that the server is started successfully.');
await getCsgkDayData();
// await getTestLicense();
// await getCsgkDayData();
await getTestLicense();
console.log("初始化成功");
}
......
......@@ -24,6 +24,7 @@ export function setRouter(httpServer){
httpServer.post('/jgfwnl_clcszl', asyncHandler(jgfwnl_clcszlBiz.getData));
httpServer.post('/jgfwnl_RSUfsl', asyncHandler(jgfwnl_RSUfslBiz.getData));
//新版本
httpServer.get('/yzy', asyncHandler(jgfwnlBiz.getYZY));
httpServer.get('/csgk', asyncHandler(jgfwnlBiz.getCSGK));
httpServer.get('/csfx', asyncHandler(jgfwnlBiz.getCSFX));
......@@ -32,4 +33,6 @@ export function setRouter(httpServer){
httpServer.post('/csgk', asyncHandler(jgfwnlBiz.getCSGK));
httpServer.post('/csfx', asyncHandler(jgfwnlBiz.getCSFX));
httpServer.post('/mapdata', asyncHandler(jgfwnlBiz.mapData));
}
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment