奢侈品供应链开放平台
实现商品信息、库存和订单的实时同步
| 接口地址 | http://host:port/api/v1/Pub/getGoodsBrand | ||
|---|---|---|---|
| 请求头 | |||
| 请求方式 | POST | ||
| 请求体 | "appid":"123456", "nonceStr":"k2f8oYmuCc", "timeStamp":"1679976183975", | ||
| 参数名 | 是否必须 | 类型 | 说明 |
| appid | 是 | String | 访问凭证 |
| nonceStr | 是 | String | 随机字符串 |
| timeStamp | 是 | String | unix时间戳 |
| page | 否 | int | 页码 默认1 每页返回100条数据 |
| pid | 是 | int | 父级品牌id 0获取顶级分类 |
| 返回结果 | { "code": 1, "msg": "success", "time": "1698768903", "data": { "list": [ { "id": 31, "goods_brand_name": "迪奥", "goods_brand_ico": "https://aloss.fawet.com/uploads/20220720/f037c2d8b095aa2d9444260e0f4f4afe.jpg", "pid": 0, "status": 1, "weigh": 97 }, { "id": 32, "goods_brand_name": "范思哲", "goods_brand_ico": "https://aloss.fawet.com/uploads/20220725/5be5fdbdd923a7e3b18376270d9befcf.png", "pid": 0, "status": 1, "weigh": 89 }, { "id": 33, "goods_brand_name": "香奈儿", "goods_brand_ico": "https://aloss.fawet.com/uploads/20220720/74866f8810f98bab00f07b3495a0bbaa.jpg", "pid": 0, "status": 1, "weigh": 99 }, { "id": 34, "goods_brand_name": "普拉达", "goods_brand_ico": "https://aloss.fawet.com/uploads/20220725/a5006cf8688eae10b903622d80e15176.png", "pid": 0, "status": 1, "weigh": 94 } ], "currentPage": 1, "hasMore": false, "totalPage": 1 } } | ||
| 字段名 | 类型 | 说明 | |
| code | int | 是否正确处理请求,返回1或0 | |
| msg | String | 处理结果的消息 | |
| time | String | 请求时间戳 | |
| data | list | 请求数据结果集 | |
| data.list | list | 品牌实体信息 | |
| data.list.id | int | 品牌id | |
| data.list.goods_brand_name | int | 品牌名 | |
| data.list.goods_brand_ico | int | 品牌图标 | |
| data.list.pid | string | 父级品牌id | |
| data.list.status | text | 状态:1=启用 0= 停用 | |
| data.list.weigh | float | 排序值 | |
| currentPage | int | 当前页码 | |
| hasMore | bool | 是否有下页 true=有下页 false=无下页 | |
| totalPage | int | 总页码 | |