IOT平台
  1. 产品管理
IOT平台
  • 登录
    • 验证码
      GET
    • 登录接口
      POST
    • 连接鉴权
      POST
    • openapi鉴权接口
      POST
  • 产品管理
    • 物消息
      • 消息新增
      • 消息更新
      • 删除消息
      • 批量删除消息
      • 消息查询
    • 设备接入信息查询
      POST
    • 产品管理-列表
      POST
    • 产品新增
      POST
    • 物模型发布
      GET
    • 禁用产品 批量启用
      POST
    • 已发布产品 批量禁用
      POST
    • 批量删除
      POST
    • 查询产品分类树
      GET
    • 查询该产品 产品信息
      POST
    • 查询该产品 产品信息大类
      POST
    • 批量更新产品信息
      POST
    • 物模型移除
      GET
    • 查询物模型
      GET
    • 批量删除物模型属性
      POST
    • 查询物模型缓存
      GET
    • 物模型属性新增
      POST
    • 命令新增
      POST
    • 属性更新
      POST
    • 导入物模型
      POST
    • 重置产品秘钥
      POST
    • 查询物模型版本
      POST
    • 新增产品大类
      POST
    • 保存属性
      POST
    • 删除物模型命令
      GET
    • 命令更新
      POST
    • 查询该分类下是否有产品
      GET
    • 新增分类
      POST
    • 删除分类
      GET
    • 查询产品列表不分页
      POST
    • 批量失效
      POST
  • 设备管理
    • 设备详情页
      • 基本信息(页签1)
      • 设备改名(页签1)
      • 重设设备密钥(页签1)
      • 属性上报(页签3)
      • 云端下发-查询物模型(页签4)
      • 云端下发(页签4)
      • 消息下发(页签4)
      • 设备影子-查询设备影子(页签5)
      • 设备影子-设置设备期望值(页签5)
      • 设备影子-清空设备期望值(页签5)
      • 设备影子-清空设备上报值(页签5)
      • 设备影子-过期期望值(页签5)
      • 设备日志(页签6)
      • 设备解绑项目
      • 设备绑定项目
      • 查询所有设备(页签6日志)
      • 查询设备状态(0未激活、1在线、2离线)
      • 查询所有子设备
    • 设备列表页
      • 设备批量注册
        • 多设备批量注册
        • 查询正常运行的批量注册任务(前端需控制不可大于5)
        • 查询任务列表
        • 查询任务详情
      • 设备管理-列表
      • 单设备注册
      • 设备批量删除
      • 获取各种状态的设备个数
      • 获取项目列表
  • OpenApi
    • 产品管理
      • 产品列表查询(分页)
        POST
      • 产品分类树查询
        GET
      • 物模型查询
        POST
      • 物模型查询(检索)
        POST
    • 设备管理
      • 设备列表查询(分页)
      • 批量查询设备状态
      • 设备绑定
      • 设备失效
      • 设备解绑项目
      • 更新项目名
      • 设备批量绑定
      • 查询设备状态
    • 设备影子
      • 设备影子查询
      • 影子预期设置
    • 设备控制
      • 查询设备属性
      • 属性设置(异步)
      • 命令下发(异步)
    • 鉴权
      • 鉴权接口
  • 协议验证
    • 平台通过网关设置子设备属性
    • 平台通过网关下发子设备命令
  • 物业云
    • 项目信息获取
    • 直接请求
  • 中台3.0
    • 获取token
    • 获取产品
  • 随意接口
    • 测试
  1. 产品管理

物模型查询(检索)

开发中
POST
/manager/productModel/getProductTslByParam
根据产品id列表、服务名列表 检索查询物模型
( 产品id列表不可为空,服务名列表可为空)

请求参数

Authorization
在 header 添加参数
Authorization
示例:
Authorization: ********************
Body 参数application/json
product_ids
array[string]
产品id列表
必需
service_names
array[string]
服务名列表
可选
示例
{
    "product_ids": [
        "9fc5412a3c56e506456d0790"
    ],
    "service_names": [
        "CardManager"
    ]
}

示例代码

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST 'http://10.110.17.16:53000/manager/productModel/getProductTslByParam' \
--header 'Content-Type: application/json' \
--header 'Authorization;' \
--data-raw '{
    "product_ids": [
        "9fc5412a3c56e506456d0790"
    ],
    "service_names": [
        "CardManager"
    ]
}'

返回响应

🟢200成功
application/json
Body
timestamp
string 
时间戳
必需
status
integer 
状态
必需
message
string 
处理结果信息
必需
data
object 
处理返回数据
必需
total
string 
结果总数
必需
list
array [object {2}] 
产品及其物模型列表
必需
示例
{
    "timestamp": "2025-04-28 18:15:35",
    "status": 200,
    "message": "请求处理成功!",
    "data": [
        {
            "product_id": "9fc5412a3c56e506456d0790",
            "services": [
                {
                    "id": "1916734790371930113",
                    "service_name": "CardManager",
                    "type": 1,
                    "description": "卡管理服务",
                    "properties": [
                        {
                            "id": "1916734790380318722",
                            "service_id": "1916734790371930113",
                            "property_name": "action",
                            "description": "行为",
                            "data_type": 7,
                            "permission": 7,
                            "max_length": 32,
                            "enum_list": "[{\"key\":\"GET\",\"value\":\"获取\"},{\"key\":\"SYNC\",\"value\":\"同步\"},{\"key\":\"SET\",\"value\":\"设置\"},{\"key\":\"UPDATE\",\"value\":\"更新\"},{\"key\":\"ADD\",\"value\":\"添加\"},{\"key\":\"DELETE\",\"value\":\"删除\"},{\"key\":\"CLEAN\",\"value\":\"清除\"}]",
                            "is_status": false,
                            "update_time": "2025-04-28 14:02:40",
                            "structure_param": []
                        },
                        {
                            "id": "1916734790384513025",
                            "service_id": "1916734790371930113",
                            "property_name": "msgid",
                            "description": "消息ID",
                            "data_type": 4,
                            "permission": 7,
                            "max_length": 32,
                            "is_status": false,
                            "update_time": "2025-04-28 14:02:40",
                            "structure_param": []
                        },
                        {
                            "id": "1916734790388707330",
                            "service_id": "1916734790371930113",
                            "property_name": "objInfo",
                            "description": "对象信息",
                            "comment": "进门钥匙对象DoorKeyObj",
                            "data_type": 6,
                            "permission": 7,
                            "is_status": false,
                            "update_time": "2025-04-28 14:02:40",
                            "structure_param": [
                                {
                                    "id": "1916734790397095937",
                                    "command_id": "1916734790388707330",
                                    "param_type": 3,
                                    "param_name": "keyid",
                                    "description": "钥匙序号",
                                    "comment": "为该设备下的用户钥匙ID",
                                    "seq_no": 1,
                                    "data_type": 4,
                                    "is_required": true,
                                    "update_time": "2025-04-28 14:02:40"
                                },
                                {
                                    "id": "1916734790556479489",
                                    "command_id": "1916734790388707330",
                                    "param_type": 3,
                                    "param_name": "passNo",
                                    "description": "钥匙校验号码",
                                    "comment": "卡号",
                                    "seq_no": 2,
                                    "data_type": 4,
                                    "is_required": true,
                                    "update_time": "2025-04-28 14:02:40"
                                },
                                {
                                    "id": "1916734790564868098",
                                    "command_id": "1916734790388707330",
                                    "param_type": 3,
                                    "param_name": "exturl",
                                    "description": "扩展URL地址",
                                    "seq_no": 3,
                                    "data_type": 4,
                                    "is_required": true,
                                    "update_time": "2025-04-28 14:02:40"
                                },
                                {
                                    "id": "1916734790573256705",
                                    "command_id": "1916734790388707330",
                                    "param_type": 3,
                                    "param_name": "attri",
                                    "description": "钥匙属性",
                                    "comment": "0-访客、1-住户、2-工作人员(管理员)[默认]、3-物业(暂不使用)\n以下扩展功能: 10-黑名单、11-挟持、12-特殊人群、13-巡更、100-其他",
                                    "seq_no": 4,
                                    "data_type": 1,
                                    "is_required": true,
                                    "update_time": "2025-04-28 14:02:40"
                                },
                                {
                                    "id": "1916734790581645314",
                                    "command_id": "1916734790388707330",
                                    "param_type": 3,
                                    "param_name": "starttime",
                                    "description": "生效时间",
                                    "comment": "无则不限制,标准时间戳",
                                    "seq_no": 5,
                                    "data_type": 4,
                                    "is_required": true,
                                    "update_time": "2025-04-28 14:02:40"
                                },
                                {
                                    "id": "1916734790585839617",
                                    "command_id": "1916734790388707330",
                                    "param_type": 3,
                                    "param_name": "endtime",
                                    "description": "失效时间",
                                    "comment": "无则不限制,标准时间戳",
                                    "seq_no": 6,
                                    "data_type": 4,
                                    "is_required": true,
                                    "update_time": "2025-04-28 14:02:40"
                                },
                                {
                                    "id": "1916734790590033922",
                                    "command_id": "1916734790388707330",
                                    "param_type": 3,
                                    "param_name": "lifecycle",
                                    "description": "可用次数",
                                    "comment": "默认为无限次数(该项不填)\n当>0时,时间参数不生效,使用一次减一,减到0,则不再使用。\n当=-1时,限制使用时间,starttime与endtime必填。\n当=-2时,不判断时效性和次数。\n当=-3时,判断有效时段内的周期性,starttime与endtime必填。\n当=-4时,只判断周期性,不判断有效时段。\n当=-5时,限制使用时间及周计划,starttime与endtime与weekPlanIndex必填。",
                                    "seq_no": 7,
                                    "data_type": 4,
                                    "is_required": true,
                                    "update_time": "2025-04-28 14:02:40"
                                },
                                {
                                    "id": "1916734790598422530",
                                    "command_id": "1916734790388707330",
                                    "param_type": 3,
                                    "param_name": "roomno",
                                    "description": "关联房号",
                                    "seq_no": 8,
                                    "data_type": 4,
                                    "is_required": true,
                                    "update_time": "2025-04-28 14:02:40"
                                },
                                {
                                    "id": "1916734790606811137",
                                    "command_id": "1916734790388707330",
                                    "param_type": 3,
                                    "param_name": "personId",
                                    "description": "关联人员ID",
                                    "seq_no": 9,
                                    "data_type": 4,
                                    "is_required": true,
                                    "update_time": "2025-04-28 14:02:40"
                                },
                                {
                                    "id": "1916734790611005442",
                                    "command_id": "1916734790388707330",
                                    "param_type": 3,
                                    "param_name": "personInfo",
                                    "description": "人员对象信息",
                                    "seq_no": 10,
                                    "data_type": 6,
                                    "is_required": true,
                                    "update_time": "2025-04-28 14:02:40"
                                },
                                {
                                    "id": "1916734790615199746",
                                    "command_id": "1916734790388707330",
                                    "param_type": 3,
                                    "param_name": "period",
                                    "description": "有效周期",
                                    "comment": "默认不填表示无周期性判断。\n参数生效表示在有效时段内的周期。\n周期用Cron表达式: (秒 分 时 日 月 星期)",
                                    "seq_no": 11,
                                    "data_type": 4,
                                    "is_required": true,
                                    "update_time": "2025-04-28 14:02:40"
                                },
                                {
                                    "id": "1916734790623588354",
                                    "command_id": "1916734790388707330",
                                    "param_type": 3,
                                    "param_name": "multiRoomNo",
                                    "description": "一梯多户关联多个房号",
                                    "comment": "[“01010101”,”01010501”],\n最大支持房号数128间,\n有该属性时不处理roomno不填",
                                    "seq_no": 12,
                                    "data_type": 9,
                                    "is_required": true,
                                    "update_time": "2025-04-28 14:02:40"
                                },
                                {
                                    "id": "1916734790631976962",
                                    "command_id": "1916734790388707330",
                                    "param_type": 3,
                                    "param_name": "weekPlanIndex",
                                    "description": "周计划模版序号",
                                    "comment": "每个周计划模版的唯一ID;\n当lifecycle=-5时必填",
                                    "seq_no": 13,
                                    "data_type": 1,
                                    "is_required": true,
                                    "update_time": "2025-04-28 14:02:40"
                                }
                            ]
                        },
                        {
                            "id": "1916734790636171265",
                            "service_id": "1916734790371930113",
                            "property_name": "objName",
                            "description": "对象名称",
                            "comment": "服务命令中下发的对象名称:DoorKeyObj",
                            "data_type": 4,
                            "permission": 7,
                            "max_length": 32,
                            "is_status": false,
                            "update_time": "2025-04-28 14:02:40",
                            "structure_param": []
                        },
                        {
                            "id": "1916734790644559873",
                            "service_id": "1916734790371930113",
                            "property_name": "response",
                            "description": "应答标记",
                            "comment": "0-主发、1-应答",
                            "data_type": 1,
                            "permission": 7,
                            "min_value": 0.0,
                            "max_value": 1.0,
                            "is_status": false,
                            "update_time": "2025-04-28 14:02:40",
                            "structure_param": []
                        }
                    ],
                    "commands": [
                        {
                            "id": "1916734790648754178",
                            "command_name": "ADD",
                            "description": "新增卡",
                            "is_asyn": true,
                            "req_params": [
                                {
                                    "id": "1916734791147876353",
                                    "command_id": "1916734790648754178",
                                    "param_type": 0,
                                    "param_name": "param",
                                    "description": "对象参数",
                                    "seq_no": 1,
                                    "data_type": 10,
                                    "is_required": true,
                                    "ext_config": "[]",
                                    "update_time": "2025-04-28 14:02:40"
                                },
                                {
                                    "id": "1916734791156264961",
                                    "command_id": "1916734790648754178",
                                    "param_type": 0,
                                    "param_name": "msgid",
                                    "description": "消息ID",
                                    "seq_no": 2,
                                    "data_type": 4,
                                    "is_required": true,
                                    "update_time": "2025-04-28 14:02:40"
                                },
                                {
                                    "id": "1916734791164653569",
                                    "command_id": "1916734790648754178",
                                    "param_type": 0,
                                    "param_name": "objName",
                                    "description": "对象名称",
                                    "seq_no": 3,
                                    "data_type": 4,
                                    "is_required": true,
                                    "update_time": "2025-04-28 14:02:40"
                                }
                            ],
                            "response_name": "responses",
                            "resp_params": []
                        },
                        {
                            "id": "1916734791168847874",
                            "command_name": "CLEAN",
                            "description": "清除卡",
                            "is_asyn": true,
                            "req_params": [
                                {
                                    "id": "1916734791177236481",
                                    "command_id": "1916734791168847874",
                                    "param_type": 0,
                                    "param_name": "param",
                                    "description": "对象参数",
                                    "seq_no": 1,
                                    "data_type": 6,
                                    "is_required": false,
                                    "ext_config": "[]",
                                    "update_time": "2025-04-28 14:02:40"
                                },
                                {
                                    "id": "1916734791181430785",
                                    "command_id": "1916734791168847874",
                                    "param_type": 0,
                                    "param_name": "msgid",
                                    "description": "消息ID",
                                    "seq_no": 2,
                                    "data_type": 4,
                                    "is_required": true,
                                    "update_time": "2025-04-28 14:02:40"
                                },
                                {
                                    "id": "1916734791189819394",
                                    "command_id": "1916734791168847874",
                                    "param_type": 0,
                                    "param_name": "objName",
                                    "description": "对象名称",
                                    "seq_no": 3,
                                    "data_type": 4,
                                    "is_required": false,
                                    "update_time": "2025-04-28 14:02:40"
                                }
                            ],
                            "response_name": "responses",
                            "resp_params": []
                        },
                        {
                            "id": "1916734791194013697",
                            "command_name": "DELETE",
                            "description": "删除卡",
                            "is_asyn": true,
                            "req_params": [
                                {
                                    "id": "1916734791198208001",
                                    "command_id": "1916734791194013697",
                                    "param_type": 0,
                                    "param_name": "param",
                                    "description": "对象参数",
                                    "seq_no": 1,
                                    "data_type": 6,
                                    "is_required": true,
                                    "ext_config": "[]",
                                    "update_time": "2025-04-28 14:02:40"
                                },
                                {
                                    "id": "1916734791206596609",
                                    "command_id": "1916734791194013697",
                                    "param_type": 0,
                                    "param_name": "msgid",
                                    "description": "消息ID",
                                    "seq_no": 2,
                                    "data_type": 4,
                                    "is_required": true,
                                    "update_time": "2025-04-28 14:02:40"
                                },
                                {
                                    "id": "1916734791210790913",
                                    "command_id": "1916734791194013697",
                                    "param_type": 0,
                                    "param_name": "objName",
                                    "description": "对象名称",
                                    "seq_no": 3,
                                    "data_type": 4,
                                    "is_required": true,
                                    "update_time": "2025-04-28 14:02:40"
                                }
                            ],
                            "response_name": "responses",
                            "resp_params": []
                        },
                        {
                            "id": "1916734791214985217",
                            "command_name": "UPDATE",
                            "description": "更新卡",
                            "is_asyn": true,
                            "req_params": [
                                {
                                    "id": "1916734791223373825",
                                    "command_id": "1916734791214985217",
                                    "param_type": 0,
                                    "param_name": "param",
                                    "description": "对象参数",
                                    "seq_no": 1,
                                    "data_type": 6,
                                    "is_required": true,
                                    "ext_config": "[]",
                                    "update_time": "2025-04-28 14:02:40"
                                },
                                {
                                    "id": "1916734791227568130",
                                    "command_id": "1916734791214985217",
                                    "param_type": 0,
                                    "param_name": "msgid",
                                    "description": "消息ID",
                                    "seq_no": 2,
                                    "data_type": 4,
                                    "is_required": true,
                                    "update_time": "2025-04-28 14:02:40"
                                },
                                {
                                    "id": "1916734791235956737",
                                    "command_id": "1916734791214985217",
                                    "param_type": 0,
                                    "param_name": "objName",
                                    "description": "对象名称",
                                    "seq_no": 3,
                                    "data_type": 4,
                                    "is_required": true,
                                    "update_time": "2025-04-28 14:02:40"
                                }
                            ],
                            "response_name": "responses",
                            "resp_params": []
                        }
                    ],
                    "events": []
                }
            ]
        }
    ]
}
修改于 2025-04-28 06:13:26
上一页
物模型查询
下一页
设备列表查询(分页)
Built with