GET api/Product/GetProductSkuList/{productId}

获取商品项

Request Information

URI Parameters

NameDescriptionTypeAdditional information
productId

integer

Required

Body Parameters

None.

Response Information

Resource Description

ResponseOfListOfHomeProductItem
NameDescriptionTypeAdditional information
data

Collection of HomeProductItem

None.

errcode

错误码,默认为成功:SUCCESS

string

None.

errmsg

错误信息,默认为:成功

string

None.

Response Formats

application/json, text/json

Sample:
{
  "data": [
    {
      "ProductId": 1,
      "ProductTitle": "sample string 2",
      "MainPic": "sample string 3",
      "SpecificationsMin": 4.0,
      "SpecificationsMax": 5.0,
      "StockCount": 6,
      "VenderName": "sample string 7",
      "VenderId": 8,
      "Price": 9.0,
      "CompetitorPrice": 10.0,
      "Sort": 11,
      "DisCount": 12.0,
      "DiscountPrice": 13.0,
      "LimitedBeginTime": "2025-12-26T20:18:54.7595081+08:00",
      "SaleTime": "2025-12-26T20:18:54.7595081+08:00",
      "LimitOnlyDirect": true,
      "OnSaleState": 0,
      "UnitsName": "sample string 15",
      "ProductSKUId": 16,
      "IsLimited": true,
      "LimitedCount": 18
    },
    {
      "ProductId": 1,
      "ProductTitle": "sample string 2",
      "MainPic": "sample string 3",
      "SpecificationsMin": 4.0,
      "SpecificationsMax": 5.0,
      "StockCount": 6,
      "VenderName": "sample string 7",
      "VenderId": 8,
      "Price": 9.0,
      "CompetitorPrice": 10.0,
      "Sort": 11,
      "DisCount": 12.0,
      "DiscountPrice": 13.0,
      "LimitedBeginTime": "2025-12-26T20:18:54.7595081+08:00",
      "SaleTime": "2025-12-26T20:18:54.7595081+08:00",
      "LimitOnlyDirect": true,
      "OnSaleState": 0,
      "UnitsName": "sample string 15",
      "ProductSKUId": 16,
      "IsLimited": true,
      "LimitedCount": 18
    }
  ],
  "errcode": "sample string 1",
  "errmsg": "sample string 2"
}

application/xml, text/xml

Sample:
<ResponseOfArrayOfHomeProductItemUJ8Augit 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:HomeProductItem>
      <d2p1:CompetitorPrice>10</d2p1:CompetitorPrice>
      <d2p1:DisCount>12</d2p1:DisCount>
      <d2p1:DiscountPrice>13</d2p1:DiscountPrice>
      <d2p1:IsLimited>true</d2p1:IsLimited>
      <d2p1:LimitOnlyDirect>true</d2p1:LimitOnlyDirect>
      <d2p1:LimitedBeginTime>2025-12-26T20:18:54.7595081+08:00</d2p1:LimitedBeginTime>
      <d2p1:LimitedCount>18</d2p1:LimitedCount>
      <d2p1:MainPic>sample string 3</d2p1:MainPic>
      <d2p1:OnSaleState>OnSale</d2p1:OnSaleState>
      <d2p1:Price>9</d2p1:Price>
      <d2p1:ProductId>1</d2p1:ProductId>
      <d2p1:ProductSKUId>16</d2p1:ProductSKUId>
      <d2p1:ProductTitle>sample string 2</d2p1:ProductTitle>
      <d2p1:SaleTime>2025-12-26T20:18:54.7595081+08:00</d2p1:SaleTime>
      <d2p1:Sort>11</d2p1:Sort>
      <d2p1:SpecificationsMax>5</d2p1:SpecificationsMax>
      <d2p1:SpecificationsMin>4</d2p1:SpecificationsMin>
      <d2p1:StockCount>6</d2p1:StockCount>
      <d2p1:UnitsName>sample string 15</d2p1:UnitsName>
      <d2p1:VenderId>8</d2p1:VenderId>
      <d2p1:VenderName>sample string 7</d2p1:VenderName>
    </d2p1:HomeProductItem>
    <d2p1:HomeProductItem>
      <d2p1:CompetitorPrice>10</d2p1:CompetitorPrice>
      <d2p1:DisCount>12</d2p1:DisCount>
      <d2p1:DiscountPrice>13</d2p1:DiscountPrice>
      <d2p1:IsLimited>true</d2p1:IsLimited>
      <d2p1:LimitOnlyDirect>true</d2p1:LimitOnlyDirect>
      <d2p1:LimitedBeginTime>2025-12-26T20:18:54.7595081+08:00</d2p1:LimitedBeginTime>
      <d2p1:LimitedCount>18</d2p1:LimitedCount>
      <d2p1:MainPic>sample string 3</d2p1:MainPic>
      <d2p1:OnSaleState>OnSale</d2p1:OnSaleState>
      <d2p1:Price>9</d2p1:Price>
      <d2p1:ProductId>1</d2p1:ProductId>
      <d2p1:ProductSKUId>16</d2p1:ProductSKUId>
      <d2p1:ProductTitle>sample string 2</d2p1:ProductTitle>
      <d2p1:SaleTime>2025-12-26T20:18:54.7595081+08:00</d2p1:SaleTime>
      <d2p1:Sort>11</d2p1:Sort>
      <d2p1:SpecificationsMax>5</d2p1:SpecificationsMax>
      <d2p1:SpecificationsMin>4</d2p1:SpecificationsMin>
      <d2p1:StockCount>6</d2p1:StockCount>
      <d2p1:UnitsName>sample string 15</d2p1:UnitsName>
      <d2p1:VenderId>8</d2p1:VenderId>
      <d2p1:VenderName>sample string 7</d2p1:VenderName>
    </d2p1:HomeProductItem>
  </data>
</ResponseOfArrayOfHomeProductItemUJ8Augit>