接口描述:

  • 商品可选属性列表

接口版本:

版本号 制定人 制定日期 修订日期
1.0.0 朱小 2020-03-23 2020-03-23

请求URL:

  • 商户接口URL:/api/mchGoods/getGoodsProps

请求方式:

  • GET
  • POST

请求参数:

参数名 是否必须 类型 说明
page string 页号
limit string 页码
goodsId string 商品ID

返回参数说明:

参数名 类型 说明
code int 0
msg string success
data json 查询成功返回list数据
count int list总数

返回数据说明:

参数名 类型 说明
propsCategoryId Long 属性分类ID
propsCategoryName String 属性分类名称
props Long 当前属性分类ID对应的属性,具体信息如下方字段所示
propsId Long 属性ID
propsName String 属性名称
propsValue Long 属性值
mchId Long 所属商户ID
isvId Long 服务商ID
createTime string 创建时间
updateTime string 更新时间

返回示例:

{
  "code": 0,
  "msg": "success",
  "data": [
    {
      "propsCategoryName": "口味",
      "propsCategoryId": 10,
      "props": [
        {
          "ps": null,
          "propsId": 1038,
          "propsName": "口味",
          "propsValue": "无辣",
          "propsCategoryId": 10,
          "mchId": 20000000,
          "isvId": 40000000,
          "createTime": "2020-04-01 09:21:08",
          "updateTime": "2020-04-01 09:21:08"
        },
        {
          "ps": null,
          "propsId": 1039,
          "propsName": "口味",
          "propsValue": "微辣",
          "propsCategoryId": 10,
          "mchId": 20000000,
          "isvId": 40000000,
          "createTime": "2020-04-01 09:21:13",
          "updateTime": "2020-04-01 09:21:13"
        },
        {
          "ps": null,
          "propsId": 1040,
          "propsName": "口味",
          "propsValue": "特辣",
          "propsCategoryId": 10,
          "mchId": 20000000,
          "isvId": 40000000,
          "createTime": "2020-04-01 09:21:22",
          "updateTime": "2020-04-01 09:21:22"
        },
        {
          "ps": null,
          "propsId": 1041,
          "propsName": "口味",
          "propsValue": "麻辣",
          "propsCategoryId": 10,
          "mchId": 20000000,
          "isvId": 40000000,
          "createTime": "2020-04-01 09:21:26",
          "updateTime": "2020-04-01 09:21:26"
        }
      ]
    },
    {
      "propsCategoryName": "甜味",
      "propsCategoryId": 11,
      "props": [
        {
          "ps": null,
          "propsId": 1042,
          "propsName": "甜味",
          "propsValue": "不甜",
          "propsCategoryId": 11,
          "mchId": 20000000,
          "isvId": 40000000,
          "createTime": "2020-04-01 18:35:02",
          "updateTime": "2020-04-01 18:35:02"
        },
        {
          "ps": null,
          "propsId": 1043,
          "propsName": "甜味",
          "propsValue": "微甜",
          "propsCategoryId": 11,
          "mchId": 20000000,
          "isvId": 40000000,
          "createTime": "2020-04-01 18:35:08",
          "updateTime": "2020-04-01 18:35:08"
        },
        {
          "ps": null,
          "propsId": 1044,
          "propsName": "甜味",
          "propsValue": "超甜",
          "propsCategoryId": 11,
          "mchId": 20000000,
          "isvId": 40000000,
          "createTime": "2020-04-01 18:35:15",
          "updateTime": "2020-04-01 18:35:15"
        }
      ]
    }
  ]
}
文档更新时间: 2021-10-25 18:13   作者:刘正阳