获取任务结果
已测完
POST
/zt/api/v1/task/result/id/{taskId}
请求参数
Path 参数
taskId
string
任务id
示例值:
23c4a2761bb643218f52a47a29567f63
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST '/zt/api/v1/task/result/id/23c4a2761bb643218f52a47a29567f63'
返回响应
🟢200成功
application/json
Body
data
object
必需
log
object
错误警告信息
bizField
object
文件及taskId
results
array [object {1}]
结果信息
code
integer
必需
msg
string
描述信息
示例
{
"data": {
"log": {
"warningMsg": [
{
"code": "",
"desc": "空间名称识别结果为空"
}
],
"errorMsg": []
},
"bizField": {
"taskId": "59cb5d5617d049478df5de76cae5fbf5"
},
"results": [
{
"drawingInfo": {
"frameHeight": 1683,
"drawingHeight": 1684,
"axes": [
{
"name": "B6-E",
"circles": [
[
[
494,
795
],
[
489,
790
],
[
483,
790
],
[
477,
790
],
[
472,
795
],
[
472,
801
],
[
472,
807
],
[
477,
812
],
[
483,
812
],
[
489,
812
],
[
494,
807
],
[
494,
801
],
[
494,
795
]
],
[
[
1776,
795
],
[
1776,
801
],
[
1776,
807
],
[
1781,
812
],
[
1788,
812
],
[
1794,
812
],
[
1799,
807
],
[
1799,
801
],
[
1799,
795
],
[
1794,
790
],
[
1788,
790
],
[
1781,
790
],
[
1776,
795
]
]
],
"id": "aacX",
"category": "axis",
"contour": [
[
494,
801
],
[
1776,
801
]
],
"connections": [
[
[
494,
801
],
[
569,
801
]
],
[
[
1702,
801
],
[
1776,
801
]
]
]
}
],
"scale": 35.27766,
"windows": [
{
"thickness": 4,
"name": "",
"id": "aaaO",
"category": "window",
"contour": [
[
1101,
945
],
[
1095,
945
]
]
}
],
"drawingWidth": 2384,
"doors": [
{
"name": "",
"style": "",
"id": "aaaa",
"category": "door",
"contour": [
[
1169,
744
],
[
1168,
762
],
[
1150,
744
]
]
}
],
"frameWidth": 2383,
"slidingdoors": [
{
"thickness": 3,
"name": "",
"id": "aaaS",
"category": "slidingdoor",
"contour": [
[
1119,
1151
],
[
1119,
1196
]
]
}
],
"walls": [
{
"name": "",
"id": "aabb",
"category": "wall",
"contour": [
[
[
950,
564
],
[
950,
563
],
[
950,
561
],
[
948,
561
],
[
948,
459
],
[
945,
459
],
[
945,
567
],
[
948,
567
],
[
948,
564
],
[
950,
564
]
]
]
}
],
"frameOx": 0,
"spaces": [
{
"name": "",
"id": "aacW",
"category": "space",
"contour": [
[
[
1134,
973
],
[
1134,
973
],
[
1134,
973
],
[
1134,
973
],
[
1135,
973
],
[
1135,
973
],
[
1135,
972
],
[
1135,
964
],
[
1101,
964
],
[
1101,
1006
],
[
1106,
1006
],
[
1135,
1006
],
[
1135,
998
],
[
1135,
998
],
[
1135,
998
],
[
1134,
997
],
[
1134,
997
],
[
1134,
997
],
[
1134,
997
],
[
1134,
997
],
[
1134,
996
],
[
1134,
974
],
[
1134,
974
],
[
1134,
973
]
]
]
}
],
"frameOy": 0,
"spaceNames": []
}
}
]
},
"code": 0,
"msg": "成功"
}
修改于 2024-03-13 12:43:06