# 功能详情
根据指定设备某天的虫情报告
# 请求地址和方法
- 请求地址
https://www.sdzhiot.top/api/v3/pestStation/dayReports
- 请求方法
GET
# 请求参数
字段名 | 字段类型 | 字段说明 | 是否必须 |
---|---|---|---|
sno | String | 设备号 | Y |
date | String | 日期(yyyy-MM-dd) | Y |
# 样例输入
/api/v3/pestStation/dayReports?sno=B7A3814EC12B&date=2025-03-19
# 返回data字段说明
字段名 | 字段类型 | 字段说明 |
---|---|---|
msg | String | 返回消息 |
code | Integer | 状态标识码 |
data | List | 虫情日志列表 |
其中data
数组中对象的数据结构说明如下
字段名 | 字段类型 | 字段说明 |
---|---|---|
sno | String | 设备号 |
totalCount | Integer | 当前日志识别昆虫总数 |
img | String | 日志原图 |
imgThumb | String | 日志缩略图 |
handledImg | String | 智能识别之后的原图(如果未识别出则为空) |
handledImgThumb | String | 智能识别之后的缩略图(如果未识别出则为空) |
createTime | Date | 日志采集时间 |
items | List | 识别出的昆虫统计信息 |
其中items
的数据结构说明如下
字段名 | 字段类型 | 字段说明 |
---|---|---|
label | String | 昆虫唯一标识 |
insectName | String | 昆虫中文名 |
insectCount | String | 昆虫数量 |
# 样例输出
{
"code": 0,
"data": [
{
"sno": "B7A3814EC12B",
"totalCount": 2,
"img": "https://cdn.camera.sdzhiot.top/D392E45D4545/2025/03/19/2c77c467-499b-41ba-8fc5-18fedf7ee417.png?x-oss-process=style/original",
"imgThumb": "https://cdn.camera.sdzhiot.top/D392E45D4545/2025/03/19/2c77c467-499b-41ba-8fc5-18fedf7ee417.png?x-oss-process=style/thumb",
"handledImg": "https://cdn.camera.sdzhiot.top/D392E45D4545/2025/03/19/2c77c467-499b-41ba-8fc5-18fedf7ee417_res.png?x-oss-process=style/original",
"handledImgThumb": "https://cdn.camera.sdzhiot.top/D392E45D4545/2025/03/19/2c77c467-499b-41ba-8fc5-18fedf7ee417_res.png?x-oss-process=style/thumb",
"createTime": 1742372642000,
"items": [
{
"label": "lougu",
"insectName": "蝼蛄",
"insectCount": 1
},
{
"label": "denge",
"insectName": "灯蛾",
"insectCount": 1
}
]
},
{
"sno": "B7A3814EC12B",
"totalCount": 2,
"img": "https://cdn.camera.sdzhiot.top/D392E45D4545/2025/03/19/48dd992e-cd9e-4f7c-9e4e-e04f0dfa9633.png?x-oss-process=style/original",
"imgThumb": "https://cdn.camera.sdzhiot.top/D392E45D4545/2025/03/19/48dd992e-cd9e-4f7c-9e4e-e04f0dfa9633.png?x-oss-process=style/thumb",
"handledImg": "https://cdn.camera.sdzhiot.top/D392E45D4545/2025/03/19/48dd992e-cd9e-4f7c-9e4e-e04f0dfa9633_res.png?x-oss-process=style/original",
"handledImgThumb": "https://cdn.camera.sdzhiot.top/D392E45D4545/2025/03/19/48dd992e-cd9e-4f7c-9e4e-e04f0dfa9633_res.png?x-oss-process=style/thumb",
"createTime": 1742366697000,
"items": [
{
"label": "lougu",
"insectName": "蝼蛄",
"insectCount": 1
},
{
"label": "denge",
"insectName": "灯蛾",
"insectCount": 1
}
]
}
],
"msg": "操作成功"
}
# 返回码
返回码 | 返回消息 | 说明 |
---|---|---|
0 | 操作成功 | 请求成功 |
500 | 服务器错误 | 服务端异常 |
10001 | 参数为空或格式不正确 | 参数错误 |
10002 | appKey不存在 | 确认appKey是否正确 |
40001 | 设备不存在或您没有当前设备权限 | 设备不属于当前账户 |