[TOC]
简要描述
请求URL
请求方式
参数
content_type: application/json
参数名 | 必选 | 类型 | 说明 |
---|
app_key | 是 | string | 平台签发key |
timestamp | 是 | string | 时间戳,精确到秒 |
room_id | 否 | integer | 房间id,与订单id必填其一 |
order_id | 否 | integer | 订单id,与房间id必填其一 |
注意:请求接口需携带签名和token
返回示例
{
"status": 1,
"msg": "请求成功",
"data": {
"panelData": [
{
"name": "主卧_柜A_左立板01",
"height": 1414.0599999999999,
"width": 598,
"o_height": 1415.0599999999999,
"o_width": 600,
"color": "T01",
"thick": "18",
"count": 1,
"note": "",
"room": "主卧",
"cabinet": "柜A",
"texture": "normal",
"left_edge": 1.5,
"right_edge": 0.5,
"down_edge": 0.5,
"up_edge": 0.5,
"barcode": "6783240157904",
"category": "多层实木",
"parent_name": "柜A",
"holes_name": "3孔",
"holes": [
{
"type": "hole",
"deep": 8,
"side": 1,
"center": {
"x":31.5,
"y": 696.6799433593751
},
"ocenter": {
"x": 32,
"y": 697.1799433593751
},
"diameter": 10,
"holeType": "preHole",
"symbol": "3in1Lock"
}
],
"slots": [
{
"type": "slot",
"deep": 10,
"side": -1,
"pt1": {
"x": 56.122,
"y": 40
},
"pt2": {
"x": 56.122,
"y": 440
},
"opt1": {
"x": 57.122,
"y": 41
}
"opt2": {
"x": 57.122,
"y": 441
},
"width": 10,
"symbol": "YXJ",
"uniqueId": 6
}
],
"sholes": [],
"sslots": [],
"gg_code": "uv{|001",
"type": 1,
"is_alien": 0,
"board_type": 1,
"special_process": "",
"panel_no": 1
},
{
"name": "主卧_柜A_横隔板01",
"height": 955.1900000000001,
"width": 598,
"o_height": 957.1900000000001,
"o_width": 599,
"color": "T01",
"thick": "18",
"count": 1,
"note": "",
"room": "主卧",
"cabinet": "柜A",
"texture": "normal",
"left_edge": 0.5,
"right_edge": 0.5,
"down_edge": 1.5,
"up_edge": 0.5,
"barcode": "6783240157935",
"category": "多层实木",
"parent_name": "柜A",
"holes_name": "6孔",
"holes": [
{
"type": "hole",
"deep": 18,
"side": 1,
"center": {
"x": 31.5,
"y": 32.5
},
"ocenter": {
"x": 32,
"y": 33
},
"diameter": 15,
"holeType": "bigHole",
"symbol": "3in1Lock",
"uniqueId": 6
}
],
"slots": [],
"sholes": [
{
"type": "shole",
"deep": 33,
"side": 4,
"center": {
"x": 32,
"y": 9,
"z": 600
},
"ocenter": {
"x": 32,
"y": 0
},
"diameter": 8,
"holeType": "sideHole",
"symbol": "3in1Lock",
"uniqueId": 6
}
],
"sslots": [],
"gg_code": "uv{|002",
"type": 1,
"is_alien": 0,
"board_type": 1,
"special_process": "",
"panel_no": 2
}
],
"addonData": [
{
"name": "连接件",
"spec": "三合一",
"unit": "个",
"count": 3,
"note": "",
"room": "主卧",
"cabinet": "柜A"
}
],
"edgeData": [
{
"type": "panel",
"thick": 1.0,
"width": 18.0,
"color": "T01",
"length": 500.0
},
{
"type": "panel",
"thick": 0.5,
"width": 9.0,
"color": "T01",
"length": 450.0
},
{
"type": "door",
"thick": 1.5,
"width": 18.0,
"color": "暖白",
"length": 1000.0
}
]
}
}
响应参数说明
参数名 | 类型 | 说明 |
---|
status | int | 响应状态, 1为成功, 0为失败 |
msg | string | 响应提示信息 |
data | object{array[panelData], array[addonData], array[edgeData]} | 响应数据, panelData 为板件数据, addonData 为五金数据, edgeData 为封边用量数据 |
panelData
参数名 | 类型 | 说明 |
---|
name | string | (房间_柜体_)板件名 |
height | float | 板子去封边高度, 单位毫米 |
width | float | 板子去封边宽度, 单位毫米 |
o_height | float | 板子成品高度, 单位毫米 |
o_width | float | 板子成品宽度, 单位毫米 |
color | string | 柜体色卡 |
thick | string | 板件厚度, 单位毫米 |
count | int | 板件数量 |
note | string | 备注 |
room | string | 房间名 |
cabinet | string | 柜体名 |
texture | string | 纹理方向 normal: 竖纹, reverse: 横纹, notcare: 无纹理 |
edge_banding | string | 封边信息 |
left_edge | float | 左封边, 单位毫米 |
right_edge | float | 右封边, 单位毫米 |
down_edge | float | 下封边, 单位毫米 |
up_edge | float | 上封边, 单位毫米 |
barcode | string | 板件条码 |
category | string | 板件材质 |
parent_name | string | 父级名称 |
holes_name | string | 孔槽名称 |
holes | array[hole_object] | 正反面孔数据 |
slots | array[slot_object] | 正反面槽数据 |
sholes | array[hole_object] | 侧面孔数据 |
sslots | array[slot_object] | 侧面槽数据 |
gg_code | string | 板件在柜柜中的唯一编码, 生成二维码时, 需要在前面拼接上 http://eggi.cn/÷ 生成完整的地址 |
type | int | 板件所属类型:1: 柜体, 2:板式门, 3:玻璃门, 4: 吸塑门, 5: 拼框门, 6: 移门 |
is_alien | int | 是否是异形 |
board_type | int | 特殊板类型, 1: 普通板, 2: 单板, 3: 收口条 |
special_process | string | 特殊工艺:异形, 抽面, 开灯槽, 门型槽, 拉直器, 圆弧踢脚 |
panel_no | int | 板件编号 |
hole_object
参数名 | 类型 | 说明 |
---|
type | string | 孔分类, hole 为正反面孔, shole 为侧面孔 |
deep | float | 孔深度 |
side | int | 孔所在方向, 正反面孔: 1为正面孔, -1为反面孔; 侧面孔: 1为左侧孔, 2为下侧孔, 3为右侧孔, 4为上侧孔 |
center | object | 正反面孔: 相对板件不带封边的坐标, 侧面孔: 相对板件侧面视角的坐标 |
ocenter | object | 相对板件带封边成品的坐标 |
diameter | float | 孔直径 |
holeType | string | 孔类型, 如 bigHole: 当 symbol 为 3in1Lock 时表示三合一的偏心件大孔, 为 henge 时表示 |
symbol | string | 孔标识, 通常为连接件名, 如 3in1Lock 表示三合一连接件, henge 表示合页(铰链) |
uniqueId | int | 孔序号 |
slot_object
参数名 | 类型 | 说明 |
---|
type | string | 槽分类, slot 为正反面槽, sslot 为侧面槽 |
deep | float | 槽深度 |
side | int | 槽所在方向, 值含义同孔 |
pt1 | object | 槽开始端点坐标, 坐标原点同正反面孔和侧面孔 |
pt2 | object | 槽结束端点坐标 |
opt1 | object | 相对板件带封边成品的槽起始端点坐标 |
opt2 | object | 相对板件带封边成品的槽结束端点坐标 |
width | float | 槽宽度 |
symbol | string | 槽标识 |
uniqueId | int | 槽序号 |
addonData
参数名 | 类型 | 说明 |
---|
name | string | 五金名称 |
spec | string | 五金规格 |
unit | string | 五金单位 |
count | int | 五金个数 |
note | string | 相关备注 |
room | string | 五金所属房间名称 |
cabinet | string | 五金所属柜体名称 |
edgeData
参数名 | 类型 | 说明 |
---|
type | string | 分类, panel 表示柜体板材的封边, door 表示柜门板材的封边 |
thick | float | 封边条厚度, 单位毫米 |
width | float | 封边条宽度(板材厚度), 单位毫米 |
color | string | 封边条/板材色卡(颜色) |
length | float | 封边条用量(长度), 单位毫米 |
响应失败示例
{
"status": 0,
"msg": "不支持的数据格式",
"data": {}
}
{
"status": 0,
"msg": "缺少必要参数",
"data": {}
}