- 登录
- 产品管理
- 物消息
- 设备接入信息查询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
- 设备管理
- OpenApi
- 协议验证
- 物业云
- 中台3.0
- 随意接口
物模型查询(检索)
开发中
POST
/manager/productModel/getProductTslByParam
( 产品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