POST api/Gift/GetIndex

获取礼品商城首页商品

Request Information

URI Parameters

None.

Body Parameters

GiftIndexParamModel
NameDescriptionTypeAdditional information
minupdate

最新更新时间

string

None.

sortid

排序id 0:默认热门排序 1:销量排序 2:价格升序 3:价格降序

integer

None.

issee

是否只看有货 0:否 1:是

integer

None.

categoryid

分类id 默认0:全部

integer

None.

pageIndex

页码

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "minupdate": "sample string 1",
  "sortid": 2,
  "issee": 3,
  "categoryid": 4,
  "pageIndex": 5
}

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

获取礼品商城首页商品

ApiResultGiftIndexModel
NameDescriptionTypeAdditional information
treasurecoins

礼品卡余额 单位:元

decimal number

None.

categorys

分类列表

Collection of GiftCategory

None.

products

礼品列表

Collection of GiftProduct

None.

minupdate

最新更新时间

string

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:
{
  "treasurecoins": 1.0,
  "categorys": [
    {
      "categoryid": 1,
      "categoryname": "sample string 2"
    },
    {
      "categoryid": 1,
      "categoryname": "sample string 2"
    }
  ],
  "products": [
    {
      "productid": 1,
      "title": "sample string 2",
      "price": 3.0,
      "mainimage": "sample string 4",
      "freight": 5.0,
      "stock": 6,
      "subcategoryid": 7
    },
    {
      "productid": 1,
      "title": "sample string 2",
      "price": 3.0,
      "mainimage": "sample string 4",
      "freight": 5.0,
      "stock": 6,
      "subcategoryid": 7
    }
  ],
  "minupdate": "sample string 2",
  "pageIndex": 3,
  "code": 4,
  "msg": "sample string 5",
  "submsg": "sample string 6",
  "isinvitation": 7
}