packageMeterias - TimYi/FengHuang GitHub Wiki
请求URL
http://101.200.229.135:8080/api/product/package/{id}/materials
示例:http://101.200.229.135:8080/api/product/package/8aac48364e2a3809014e2b0e49b20003/materials
请求方式
GET
请求参数
id:路径参数,套餐id
返回参数
key-value对,
key为type名称
value为material数组
现在material主要用到pic
返回示例
{
"result": {
"13": [
{
"id": "8aac48364e808a11014e80b884f40003",
"ordernum": 13,
"pic": {
"id": "8aac48364e808a11014e80b884e70002",
"url": "localhost:8080/fenghuang/media/53637f9b4c5d45068d56d118cfd2fec0.jpg",
"fileSize": 33955
},
"description": "13",
"product": {
"id": "404040e64e76be8e014e76beb2cb0033",
"name": "地面地砖(用于客厅)",
"ordernum": 3,
"brand": {
"id": "404040e64e76be8e014e76beb22f0032",
"name": "大自然",
"logo": {
"id": "404040e64e76be8e014e76beb22f0031",
"url": "localhost:8080/fenghuang/media/b56d7610b78c462d998195292732bfc4.gif",
"fileSize": 4889
}
}
},
"type": "13",
"packages": [
{
"id": "8aac48364e2a3809014e2b0e49b20003",
"price": 699,
"name": "699套餐",
"description": "699套餐"
}
]
}
],
"家具": [
{
"id": "ff8081814e7c4b2d014e7c4b4d1a0000",
"ordernum": 0,
"pic": null,
"description": null,
"product": {
"id": "404040e64e76be8e014e76bea29d0002",
"name": "实木复合门",
"ordernum": 0,
"brand": {
"id": "404040e64e76be8e014e76bea1df0001",
"name": "TATA",
"logo": {
"id": "404040e64e76be8e014e76bea1d00000",
"url": "localhost:8080/fenghuang/media/57c2c6d5c1b643d3b5cb175e70e7ae07.gif",
"fileSize": 4941
}
}
},
"type": "家具",
"packages": [
{
"id": "8aac48364e2a3809014e2b0e49b20003",
"price": 699,
"name": "699套餐",
"description": "699套餐"
}
]
}
]
},
"status": "OK"
}