POST api/Product/ProductList

产品列表

Request Information

URI Parameters

None.

Body Parameters

ProductParameter
NameDescriptionTypeAdditional information
cid

产品分类

string

None.

shopId

获取某个店铺的产品列表

string

None.

page

当前页数

integer

None.

pageSize

每页读取数量

integer

None.

searchkey

搜索文本

string

None.

sortname

排序规则 j-价格排序,s-最新排序,m-默认排序

string

None.

sortorder

排序顺序 0-倒序,1-顺序

integer

None.

hot

热门产品 0-否 1-是

integer

None.

recommend

推荐产品 0-否 1-是

integer

None.

newProduct

新品 0-否 1-是

integer

None.

explosive

是否为爆款 0-否 1-是

integer

None.

minPrice

筛选最小单价

decimal number

None.

maxPrice

筛选最大单价

decimal number

None.

attributeName

筛选属性集合字符串

string

None.

attributeValue

筛选属性值集合字符串

string

None.

Request Formats

application/json, text/json

Sample:
{
  "cid": "sample string 1",
  "shopId": "sample string 2",
  "page": 3,
  "pageSize": 4,
  "searchkey": "sample string 5",
  "sortname": "sample string 6",
  "sortorder": 7,
  "hot": 8,
  "recommend": 9,
  "newProduct": 10,
  "explosive": 11,
  "minPrice": 12.0,
  "maxPrice": 13.0,
  "attributeName": "sample string 14",
  "attributeValue": "sample string 15"
}

application/xml, text/xml

Sample:
<ProductParameter xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WeiXin.WebAPI.Models.ProductModels">
  <attributeName>sample string 14</attributeName>
  <attributeValue>sample string 15</attributeValue>
  <cid>sample string 1</cid>
  <explosive>11</explosive>
  <hot>8</hot>
  <maxPrice>13</maxPrice>
  <minPrice>12</minPrice>
  <newProduct>10</newProduct>
  <page>3</page>
  <pageSize>4</pageSize>
  <recommend>9</recommend>
  <searchkey>sample string 5</searchkey>
  <shopId>sample string 2</shopId>
  <sortname>sample string 6</sortname>
  <sortorder>7</sortorder>
</ProductParameter>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'ProductParameter'.

Response Information

Resource Description

产品列表

HttpResponseMessage
NameDescriptionTypeAdditional information
Version

Version

None.

Content

HttpContent

None.

StatusCode

HttpStatusCode

None.

ReasonPhrase

string

None.

Headers

Collection of Object

None.

RequestMessage

HttpRequestMessage

None.

IsSuccessStatusCode

boolean

None.