POST api/Goods/GetGoodsCategory

获取所有分类

Request Information

URI Parameters

None.

Body Parameters

GetGoodsCategoryParam
NameDescriptionTypeAdditional information
type

0 默认 1 主页

integer

None.

cid

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "type": 1,
  "cid": 2
}

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

获取所有分类

GoodsCategoryModel
NameDescriptionTypeAdditional information
returnGoodsCategorieList

Collection of ReturnGoodsCategory

None.

code

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

integer

None.

msg

string

None.

submsg

输出的错误信息

string

None.

isinvitation

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

integer

None.

Response Formats

application/json, text/json

Sample:
{
  "returnGoodsCategorieList": [
    {
      "cid": 1,
      "cname": "sample string 2",
      "cpic": "sample string 3",
      "returnGoodsCategoryTwoList": [
        {
          "cid": 1,
          "cname": "sample string 2",
          "cpic": "sample string 3"
        },
        {
          "cid": 1,
          "cname": "sample string 2",
          "cpic": "sample string 3"
        }
      ]
    },
    {
      "cid": 1,
      "cname": "sample string 2",
      "cpic": "sample string 3",
      "returnGoodsCategoryTwoList": [
        {
          "cid": 1,
          "cname": "sample string 2",
          "cpic": "sample string 3"
        },
        {
          "cid": 1,
          "cname": "sample string 2",
          "cpic": "sample string 3"
        }
      ]
    }
  ],
  "code": 1,
  "msg": "sample string 2",
  "submsg": "sample string 3",
  "isinvitation": 4
}