GET api/Adv/GetPageAdvs?ModuleId={ModuleId}&IsPc={IsPc}&PageSize={PageSize}&Search={Search}&PageID={PageID}

后台-获取广告 带分页

Request Information

URI Parameters

NameDescriptionTypeAdditional information
ModuleId

模块id

ModuleType

None.

IsPc

true表示电脑端, false手机端

boolean

None.

PageSize

每页条数

integer

None.

Search

关键字

string

None.

Keywords

关键字

string

None.

PageID

分页页数

integer

None.

Body Parameters

None.

Response Information

Resource Description

后台-获取广告 带分页

PagedOfAdvListDto
NameDescriptionTypeAdditional information
Data

Collection of AdvListDto

None.

TotalRecord

integer

None.

TotalPage

integer

None.

Response Formats

application/json

Sample:

An exception has occurred while using the formatter 'JsonpMediaTypeFormatter' to generate sample for media type 'application/json'. Exception message: 无法访问已关闭的流。

text/json

Sample:

An exception has occurred while using the formatter 'JsonpMediaTypeFormatter' to generate sample for media type 'text/json'. Exception message: 无法访问已关闭的流。

application/xml, text/xml

Sample:
<PagedOfAdvListDto9PCsTNs9 xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Mh.Infrastructure.Pages">
  <Data xmlns:d2p1="http://schemas.datacontract.org/2004/07/Mh.Common.Service.Dto.Adv">
    <d2p1:AdvListDto>
      <d2p1:AdvTitle>sample string 4</d2p1:AdvTitle>
      <d2p1:ExpireTime>2024-04-30T08:59:44.0198287+08:00</d2p1:ExpireTime>
      <d2p1:Id>1</d2p1:Id>
      <d2p1:IsOpen>true</d2p1:IsOpen>
      <d2p1:IsPc>true</d2p1:IsPc>
      <d2p1:IsPreset>true</d2p1:IsPreset>
      <d2p1:ModuleId>None</d2p1:ModuleId>
      <d2p1:NoId>sample string 2</d2p1:NoId>
      <d2p1:Type>SinglePic</d2p1:Type>
    </d2p1:AdvListDto>
    <d2p1:AdvListDto>
      <d2p1:AdvTitle>sample string 4</d2p1:AdvTitle>
      <d2p1:ExpireTime>2024-04-30T08:59:44.0198287+08:00</d2p1:ExpireTime>
      <d2p1:Id>1</d2p1:Id>
      <d2p1:IsOpen>true</d2p1:IsOpen>
      <d2p1:IsPc>true</d2p1:IsPc>
      <d2p1:IsPreset>true</d2p1:IsPreset>
      <d2p1:ModuleId>None</d2p1:ModuleId>
      <d2p1:NoId>sample string 2</d2p1:NoId>
      <d2p1:Type>SinglePic</d2p1:Type>
    </d2p1:AdvListDto>
  </Data>
  <TotalPage>2</TotalPage>
  <TotalRecord>1</TotalRecord>
</PagedOfAdvListDto9PCsTNs9>