POST api/Goods/GetGoodsListByCategory

分类查询商品列表 缓存

Request Information

URI Parameters

None.

Body Parameters

GetGoodsListByCategoryParam
NameDescriptionTypeAdditional information
sort

排序 序号 0 综合 1 价格低到高 2 价格高到低 3 销量高到低 4 实时上新 5 佣金高到低 6 劵面额高到低

integer

None.

cid

integer

None.

types

类型 0 一级分类 1 二级分类

integer

None.

pageIndex

页数

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "sort": 1,
  "cid": 2,
  "types": 3,
  "pageIndex": 4
}

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

分类查询商品列表 缓存

GoodsListByCategoryModel
NameDescriptionTypeAdditional information
returnGoodsListByCategories

返回列表

Collection of ReturnGoodsListByCategory

None.

pageIndex

页数

integer

None.

code

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

integer

None.

msg

string

None.

submsg

输出的错误信息

string

None.

isinvitation

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

integer

None.

Response Formats

application/json, text/json

Sample:
{
  "returnGoodsListByCategories": [
    {
      "title": "sample string 1",
      "mainPic": "sample string 2",
      "originalPrice": "sample string 3",
      "actualPrice": "sample string 4",
      "couponPrice": "sample string 5",
      "monthSales": 6,
      "goodsId": 7,
      "commission": "sample string 8",
      "shopName": "sample string 9",
      "shopType": 10,
      "discounts": "sample string 11"
    },
    {
      "title": "sample string 1",
      "mainPic": "sample string 2",
      "originalPrice": "sample string 3",
      "actualPrice": "sample string 4",
      "couponPrice": "sample string 5",
      "monthSales": 6,
      "goodsId": 7,
      "commission": "sample string 8",
      "shopName": "sample string 9",
      "shopType": 10,
      "discounts": "sample string 11"
    }
  ],
  "pageIndex": 1,
  "code": 2,
  "msg": "sample string 3",
  "submsg": "sample string 4",
  "isinvitation": 5
}