通过JSON发送或者固化连接关系

555

# 通过JSON发送或者固化连接关系

Path:

/api/rcv_layout

Method: POST

Content-type: application/json; charset=utf-8

接口描述: 通过JSON发送或固化连接关系

请求BODY参数

名称 类型 示例 描述
rcvCount int 1 接收卡数量
rcvRegions List - 接收卡参数数组
portCount int 1 接收卡参数中的网口的数量
isSend bool false 是否发送 默认为false

rcvRegion

名称 类型 示例 描述
portIndex int 0 网口序号,从0开始编号
rcvIndex int 0 接收卡序号,从0开始编号
x int 0 x坐标
y int 0 y坐标
width int 100
height int 100

请求示例
PATH 方式

{
	"rcvCount": 2,
    "portCount": 1,
	"rcvRegions": [{
		"portIndex": 0,
		"rcvIndex": 0,
		"x": 0,
		"y": 0,
		"width": 220,
		"height": 248
	}, {
		"portIndex": 0,
		"rcvIndex": 1,
		"x": 220,
		"y": 0,
		"width": 220,
		"height": 248
	}]
}

返回数据

名称 类型 示例 描述
errorCode int 0 错误码
apiErrorCode int 0 API 错误码

响应示例

{
    "errorCode": 0,
    "apiErrorCode":0
}