POST api/Product/GetProCategory

所有产品分类

Request Information

URI Parameters

None.

Body Parameters

ReqRequest
NameDescriptionTypeAdditional information
AccessKey

(必填)基础token,RSA公钥加密(填充模式:RSA_PKCS1_OAEP_PADDING)>base64

string

None.

SysTarget

(必填)终端设备,WXMiniProgram=4,WX=1,ANDROID=2,IOS=3

integer

None.

UserToken

用户token-在指定拉取用户信息时需要提供

string

None.

Timestamp

(必填)时间戳,数据格式:yyyyMMddHHmmss

string

None.

Sign

(必填)签名。步骤:1、将所有不为空字段的入参key转成大写(不含Sign)以字典序拼凑成URL键值对 2、将key=AccessKey(未RSA加密)加入到第1步拼成的字符串末尾进行MD5加密并转大写,即可得到签名

string

None.

Request Formats

application/json, text/json

Sample:
{
  "AccessKey": "sample string 1",
  "SysTarget": 2,
  "UserToken": "sample string 3",
  "Timestamp": "sample string 4",
  "Sign": "sample string 5"
}

application/xml, text/xml

Sample:
<ReqRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/OpenApi.Models.DTO">
  <AccessKey xmlns="http://schemas.datacontract.org/2004/07/OpenApi.Models">sample string 1</AccessKey>
  <Sign xmlns="http://schemas.datacontract.org/2004/07/OpenApi.Models">sample string 5</Sign>
  <SysTarget xmlns="http://schemas.datacontract.org/2004/07/OpenApi.Models">2</SysTarget>
  <Timestamp xmlns="http://schemas.datacontract.org/2004/07/OpenApi.Models">sample string 4</Timestamp>
  <UserToken xmlns="http://schemas.datacontract.org/2004/07/OpenApi.Models">sample string 3</UserToken>
</ReqRequest>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

Collection of ProductCategoryDTO
NameDescriptionTypeAdditional information
ID

integer

None.

Parent

上级ID,第1级为:-1

integer

None.

CategoryName

名称

string

None.

Images

图标

string

None.

OrderBy

排序,降序

integer

None.

Mark

string

None.

Rule

价格规则

Collection of CalculatorPriceDTO

None.

Response Formats

application/json, text/json

Sample:
[
  {
    "ID": 1,
    "Parent": 2,
    "CategoryName": "sample string 3",
    "Images": "sample string 4",
    "OrderBy": 5,
    "Mark": "sample string 6",
    "Rule": [
      {
        "id": 1,
        "categoryID": 2,
        "parCategoryID": 3,
        "unit": "sample string 4",
        "categoryName": "sample string 5",
        "categoryImg": "sample string 6",
        "price": 7.0,
        "score": 8.0
      },
      {
        "id": 1,
        "categoryID": 2,
        "parCategoryID": 3,
        "unit": "sample string 4",
        "categoryName": "sample string 5",
        "categoryImg": "sample string 6",
        "price": 7.0,
        "score": 8.0
      }
    ]
  },
  {
    "ID": 1,
    "Parent": 2,
    "CategoryName": "sample string 3",
    "Images": "sample string 4",
    "OrderBy": 5,
    "Mark": "sample string 6",
    "Rule": [
      {
        "id": 1,
        "categoryID": 2,
        "parCategoryID": 3,
        "unit": "sample string 4",
        "categoryName": "sample string 5",
        "categoryImg": "sample string 6",
        "price": 7.0,
        "score": 8.0
      },
      {
        "id": 1,
        "categoryID": 2,
        "parCategoryID": 3,
        "unit": "sample string 4",
        "categoryName": "sample string 5",
        "categoryImg": "sample string 6",
        "price": 7.0,
        "score": 8.0
      }
    ]
  }
]

application/xml, text/xml

Sample:
<ArrayOfProductCategoryDTO xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/OpenApi.Models.DTO">
  <ProductCategoryDTO>
    <CategoryName>sample string 3</CategoryName>
    <ID>1</ID>
    <Images>sample string 4</Images>
    <Mark>sample string 6</Mark>
    <OrderBy>5</OrderBy>
    <Parent>2</Parent>
    <Rule>
      <CalculatorPriceDTO>
        <categoryID>2</categoryID>
        <categoryImg>sample string 6</categoryImg>
        <categoryName>sample string 5</categoryName>
        <id>1</id>
        <parCategoryID>3</parCategoryID>
        <price>7</price>
        <score>8</score>
        <unit>sample string 4</unit>
      </CalculatorPriceDTO>
      <CalculatorPriceDTO>
        <categoryID>2</categoryID>
        <categoryImg>sample string 6</categoryImg>
        <categoryName>sample string 5</categoryName>
        <id>1</id>
        <parCategoryID>3</parCategoryID>
        <price>7</price>
        <score>8</score>
        <unit>sample string 4</unit>
      </CalculatorPriceDTO>
    </Rule>
  </ProductCategoryDTO>
  <ProductCategoryDTO>
    <CategoryName>sample string 3</CategoryName>
    <ID>1</ID>
    <Images>sample string 4</Images>
    <Mark>sample string 6</Mark>
    <OrderBy>5</OrderBy>
    <Parent>2</Parent>
    <Rule>
      <CalculatorPriceDTO>
        <categoryID>2</categoryID>
        <categoryImg>sample string 6</categoryImg>
        <categoryName>sample string 5</categoryName>
        <id>1</id>
        <parCategoryID>3</parCategoryID>
        <price>7</price>
        <score>8</score>
        <unit>sample string 4</unit>
      </CalculatorPriceDTO>
      <CalculatorPriceDTO>
        <categoryID>2</categoryID>
        <categoryImg>sample string 6</categoryImg>
        <categoryName>sample string 5</categoryName>
        <id>1</id>
        <parCategoryID>3</parCategoryID>
        <price>7</price>
        <score>8</score>
        <unit>sample string 4</unit>
      </CalculatorPriceDTO>
    </Rule>
  </ProductCategoryDTO>
</ArrayOfProductCategoryDTO>