POST api/Service/ServiceItemList?CityID={CityID}&ParentID={ParentID}&PageIndex={PageIndex}&PageSize={PageSize}&IsNeedBanner={IsNeedBanner}&CookCode={CookCode}

【可用】单个服务项列表,同时可包含服务轮播图

Request Information

URI Parameters

NameDescriptionTypeAdditional information
CityID

城市ID

string

Required

ParentID

父服务ID

string

Required

PageIndex

当前索引

string

Required

PageSize

分页大小

string

Required

IsNeedBanner

是否需要Banner,true表示需要,false表示不需要

boolean

Required

CookCode

登录token

string

Required

Body Parameters

None.

Response Information

Resource Description

RequestResultOfServiceChildAndBanner
NameDescriptionTypeAdditional information
ResultCode

integer

None.

Message

string

None.

Data

ServiceChildAndBanner

None.

Response Formats

application/json, text/json

Sample:
{
  "ResultCode": 1,
  "Message": "sample string 2",
  "Data": {
    "BannerList": [
      {
        "Id": 1,
        "Title": "sample string 2",
        "CoverImg": "sample string 3",
        "DetailUrl": "sample string 4",
        "SortNo": 5
      },
      {
        "Id": 1,
        "Title": "sample string 2",
        "CoverImg": "sample string 3",
        "DetailUrl": "sample string 4",
        "SortNo": 5
      }
    ],
    "ItemList": [
      {
        "ID": 1,
        "ItemName": "sample string 2",
        "Icon": "sample string 3",
        "Desc": "sample string 4",
        "SortNo": 5
      },
      {
        "ID": 1,
        "ItemName": "sample string 2",
        "Icon": "sample string 3",
        "Desc": "sample string 4",
        "SortNo": 5
      }
    ]
  }
}

text/html

Sample:
{"ResultCode":1,"Message":"sample string 2","Data":{"BannerList":[{"Id":1,"Title":"sample string 2","CoverImg":"sample string 3","DetailUrl":"sample string 4","SortNo":5},{"Id":1,"Title":"sample string 2","CoverImg":"sample string 3","DetailUrl":"sample string 4","SortNo":5}],"ItemList":[{"ID":1,"ItemName":"sample string 2","Icon":"sample string 3","Desc":"sample string 4","SortNo":5},{"ID":1,"ItemName":"sample string 2","Icon":"sample string 3","Desc":"sample string 4","SortNo":5}]}}

application/xml, text/xml

Sample:
<RequestResultOfServiceChildAndBannerLVEGsFhm xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/MF.Common">
  <Data xmlns:d2p1="http://schemas.datacontract.org/2004/07/MF.WebApi.Models">
    <d2p1:BannerList>
      <d2p1:BannerItem>
        <d2p1:CoverImg>sample string 3</d2p1:CoverImg>
        <d2p1:DetailUrl>sample string 4</d2p1:DetailUrl>
        <d2p1:Id>1</d2p1:Id>
        <d2p1:SortNo>5</d2p1:SortNo>
        <d2p1:Title>sample string 2</d2p1:Title>
      </d2p1:BannerItem>
      <d2p1:BannerItem>
        <d2p1:CoverImg>sample string 3</d2p1:CoverImg>
        <d2p1:DetailUrl>sample string 4</d2p1:DetailUrl>
        <d2p1:Id>1</d2p1:Id>
        <d2p1:SortNo>5</d2p1:SortNo>
        <d2p1:Title>sample string 2</d2p1:Title>
      </d2p1:BannerItem>
    </d2p1:BannerList>
    <d2p1:ItemList>
      <d2p1:ServiceItem>
        <d2p1:Desc>sample string 4</d2p1:Desc>
        <d2p1:ID>1</d2p1:ID>
        <d2p1:Icon>sample string 3</d2p1:Icon>
        <d2p1:ItemName>sample string 2</d2p1:ItemName>
        <d2p1:SortNo>5</d2p1:SortNo>
      </d2p1:ServiceItem>
      <d2p1:ServiceItem>
        <d2p1:Desc>sample string 4</d2p1:Desc>
        <d2p1:ID>1</d2p1:ID>
        <d2p1:Icon>sample string 3</d2p1:Icon>
        <d2p1:ItemName>sample string 2</d2p1:ItemName>
        <d2p1:SortNo>5</d2p1:SortNo>
      </d2p1:ServiceItem>
    </d2p1:ItemList>
  </Data>
  <Message>sample string 2</Message>
  <ResultCode>1</ResultCode>
</RequestResultOfServiceChildAndBannerLVEGsFhm>