GET api/shoppingcart/totalcount

获取菜篮子数量(总件数),包括详情

Request Information

URI Parameters

None.

Body Parameters

None.

Response Information

Resource Description

ResponseOfShoppingCartCountModel
NameDescriptionTypeAdditional information
data

ShoppingCartCountModel

None.

errcode

错误码,默认为成功:SUCCESS

string

None.

errmsg

错误信息,默认为:成功

string

None.

Response Formats

application/json, text/json

Sample:
{
  "data": {
    "TotalCount": 1,
    "Items": [
      {
        "ProductSKUId": 1,
        "Count": 2
      },
      {
        "ProductSKUId": 1,
        "Count": 2
      }
    ]
  },
  "errcode": "sample string 1",
  "errmsg": "sample string 2"
}

application/xml, text/xml

Sample:
<ResponseOfShoppingCartCountModelUJ8Augit xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Infrastructure.WebApi">
  <errcode>sample string 1</errcode>
  <errmsg>sample string 2</errmsg>
  <data xmlns:d2p1="http://schemas.datacontract.org/2004/07/DataModel.Exchange.Response">
    <d2p1:Items>
      <d2p1:ShoppingCartCountItemModel>
        <d2p1:Count>2</d2p1:Count>
        <d2p1:ProductSKUId>1</d2p1:ProductSKUId>
      </d2p1:ShoppingCartCountItemModel>
      <d2p1:ShoppingCartCountItemModel>
        <d2p1:Count>2</d2p1:Count>
        <d2p1:ProductSKUId>1</d2p1:ProductSKUId>
      </d2p1:ShoppingCartCountItemModel>
    </d2p1:Items>
    <d2p1:TotalCount>1</d2p1:TotalCount>
  </data>
</ResponseOfShoppingCartCountModelUJ8Augit>