POST api/WXMain/GetProductspec

获取商品规格对应价格

Request Information

URI Parameters

None.

Body Parameters

ProductspecParam
NameDescriptionTypeAdditional information
productid

产品id

integer

None.

spec

规格组合

string

None.

Request Formats

application/json, text/json

Sample:
{
  "productid": 1,
  "spec": "sample string 2"
}

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

获取商品规格对应价格

ApiResultModelProductspec
NameDescriptionTypeAdditional information
returnMallProductspecs

ReturnMallProductspecs

None.

code

0:正确 100:错误 403:需要重新登录

integer

None.

msg

string

None.

submsg

输出的错误信息

string

None.

isinvitation

登陆时候是否需要弹窗填些邀请码 1:需要

integer

None.

Response Formats

application/json, text/json

Sample:
{
  "returnMallProductspecs": {
    "id": 1,
    "productid": 2,
    "specsids": "sample string 3",
    "specstext": "sample string 4",
    "productspecs": [
      {
        "key": "sample string 1",
        "keyid": "sample string 2",
        "values": {
          "id": "sample string 1",
          "value": "sample string 2",
          "isSelect": true
        }
      },
      {
        "key": "sample string 1",
        "keyid": "sample string 2",
        "values": {
          "id": "sample string 1",
          "value": "sample string 2",
          "isSelect": true
        }
      }
    ],
    "stock": 5,
    "price": "sample string 6",
    "pending": 7,
    "status": 8,
    "supplier": {
      "id": 1,
      "name": "sample string 2",
      "status": 3
    },
    "specmainimage": "sample string 9"
  },
  "code": 1,
  "msg": "sample string 2",
  "submsg": "sample string 3",
  "isinvitation": 4
}