Skip to content

getCommandByProductId

调用该接口根据产品id获得所有的命令。

使用说明

暂无

接口地址

/gateway/openapi

请求方式

POST

请求参数

请求头

名称类型描述
tokenauthorizationString平台颁发的token
apiCodeString固定值:getCommandByProductId

请求参数

ProductIdRequest

名称类型是否必选描述
productIdString产品Id

返回数据

名称类型描述
codeString调用成功,返回0,调用失败,查看错误信息。
msgString调用成功,提示"操作成功",调用失败,查看错误信息。
dataObject返回结果列表。

CommandVO

名称类型描述
pidString命令标识
nameString命令名称
commandIdString命令id

示例

请求示例

json
{
  "productId": "808a38503f93434fb43dddfd03c8a8ec"
}

返回示例

json
{
	"code": "0",
	"msg": "操作成功",
	"data": [
		{
			"commandId": "b5f851be7f8f4d60a53264361c749894",
			"pid": "abcd",
			"name": "abcd"
		},
		{
			"commandId": "f089a0b394ae421a97c78e11b271ab9c",
			"pid": "open",
			"name": "开机"
		}
	]
}