GET api/Article/GetPageArticlesByType?SearchType={SearchType}&PageSize={PageSize}&PageNumber={PageNumber}

前台--获取文章 带分页

Request Information

URI Parameters

NameDescriptionTypeAdditional information
SearchType

首页搜索类型

ArticleSearchType

None.

PageSize

页面大小

integer

None.

PageNumber

页码

integer

None.

Body Parameters

None.

Response Information

Resource Description

前台--获取文章 带分页

PagedOfArticleListItemDto
NameDescriptionTypeAdditional information
Data

Collection of ArticleListItemDto

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:
<PagedOfArticleListItemDto9Om8LWzW 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.Article.Service.Dto.Article.FrontModel">
    <d2p1:ArticleListItemDto>
      <d2p1:ArticleId>1</d2p1:ArticleId>
      <d2p1:ArticlePics xmlns:d4p1="http://schemas.datacontract.org/2004/07/Mh.Article.Service.Model">
        <d4p1:mh163k_News_pic>
          <Chrimage xmlns="http://schemas.datacontract.org/2004/07/Mh.Common.Service.Model.Base.ImageFile">sample string 3</Chrimage>
          <Dtappenddate xmlns="http://schemas.datacontract.org/2004/07/Mh.Common.Service.Model.Base.ImageFile">2024-04-30T15:33:14.9836125+08:00</Dtappenddate>
          <Filepath xmlns="http://schemas.datacontract.org/2004/07/Mh.Common.Service.Model.Base.ImageFile">sample string 4</Filepath>
          <State xmlns="http://schemas.datacontract.org/2004/07/Mh.Common.Service.Model.Base.ImageFile">6</State>
          <ThirdId xmlns="http://schemas.datacontract.org/2004/07/Mh.Common.Service.Model.Base.ImageFile">5</ThirdId>
          <Intorder xmlns="http://schemas.datacontract.org/2004/07/Mh.Common.Service.Model.Base.ImageFile">2</Intorder>
          <IsFirst xmlns="http://schemas.datacontract.org/2004/07/Mh.Common.Service.Model.Base.ImageFile">true</IsFirst>
          <d4p1:Id>1</d4p1:Id>
        </d4p1:mh163k_News_pic>
        <d4p1:mh163k_News_pic>
          <Chrimage xmlns="http://schemas.datacontract.org/2004/07/Mh.Common.Service.Model.Base.ImageFile">sample string 3</Chrimage>
          <Dtappenddate xmlns="http://schemas.datacontract.org/2004/07/Mh.Common.Service.Model.Base.ImageFile">2024-04-30T15:33:14.9836125+08:00</Dtappenddate>
          <Filepath xmlns="http://schemas.datacontract.org/2004/07/Mh.Common.Service.Model.Base.ImageFile">sample string 4</Filepath>
          <State xmlns="http://schemas.datacontract.org/2004/07/Mh.Common.Service.Model.Base.ImageFile">6</State>
          <ThirdId xmlns="http://schemas.datacontract.org/2004/07/Mh.Common.Service.Model.Base.ImageFile">5</ThirdId>
          <Intorder xmlns="http://schemas.datacontract.org/2004/07/Mh.Common.Service.Model.Base.ImageFile">2</Intorder>
          <IsFirst xmlns="http://schemas.datacontract.org/2004/07/Mh.Common.Service.Model.Base.ImageFile">true</IsFirst>
          <d4p1:Id>1</d4p1:Id>
        </d4p1:mh163k_News_pic>
      </d2p1:ArticlePics>
      <d2p1:Category1stDesp>sample string 6</d2p1:Category1stDesp>
      <d2p1:Category1stId>5</d2p1:Category1stId>
      <d2p1:Category2ndDesp>sample string 8</d2p1:Category2ndDesp>
      <d2p1:Category2ndId>7</d2p1:Category2ndId>
      <d2p1:CoverPicUrl>sample string 4</d2p1:CoverPicUrl>
      <d2p1:CreateTime>2024-04-30T15:33:14.9836125+08:00</d2p1:CreateTime>
      <d2p1:FontBold>true</d2p1:FontBold>
      <d2p1:FontColor>sample string 21</d2p1:FontColor>
      <d2p1:IntOrder>17</d2p1:IntOrder>
      <d2p1:Intro>sample string 3</d2p1:Intro>
      <d2p1:IsJudgeable>true</d2p1:IsJudgeable>
      <d2p1:IsNeedToPay>true</d2p1:IsNeedToPay>
      <d2p1:IsRemote>true</d2p1:IsRemote>
      <d2p1:IsSkip>true</d2p1:IsSkip>
      <d2p1:IsToutiao>true</d2p1:IsToutiao>
      <d2p1:IsTuijian>true</d2p1:IsTuijian>
      <d2p1:Likes>24</d2p1:Likes>
      <d2p1:Link>sample string 19</d2p1:Link>
      <d2p1:MobileTypographyStyle>Auto</d2p1:MobileTypographyStyle>
      <d2p1:PicNum>18</d2p1:PicNum>
      <d2p1:ReadNum>12</d2p1:ReadNum>
      <d2p1:Reverts>25</d2p1:Reverts>
      <d2p1:SkipUrl>sample string 23</d2p1:SkipUrl>
      <d2p1:Title>sample string 2</d2p1:Title>
      <d2p1:Type>9</d2p1:Type>
      <d2p1:TypeDesp>sample string 10</d2p1:TypeDesp>
    </d2p1:ArticleListItemDto>
    <d2p1:ArticleListItemDto>
      <d2p1:ArticleId>1</d2p1:ArticleId>
      <d2p1:ArticlePics xmlns:d4p1="http://schemas.datacontract.org/2004/07/Mh.Article.Service.Model">
        <d4p1:mh163k_News_pic>
          <Chrimage xmlns="http://schemas.datacontract.org/2004/07/Mh.Common.Service.Model.Base.ImageFile">sample string 3</Chrimage>
          <Dtappenddate xmlns="http://schemas.datacontract.org/2004/07/Mh.Common.Service.Model.Base.ImageFile">2024-04-30T15:33:14.9836125+08:00</Dtappenddate>
          <Filepath xmlns="http://schemas.datacontract.org/2004/07/Mh.Common.Service.Model.Base.ImageFile">sample string 4</Filepath>
          <State xmlns="http://schemas.datacontract.org/2004/07/Mh.Common.Service.Model.Base.ImageFile">6</State>
          <ThirdId xmlns="http://schemas.datacontract.org/2004/07/Mh.Common.Service.Model.Base.ImageFile">5</ThirdId>
          <Intorder xmlns="http://schemas.datacontract.org/2004/07/Mh.Common.Service.Model.Base.ImageFile">2</Intorder>
          <IsFirst xmlns="http://schemas.datacontract.org/2004/07/Mh.Common.Service.Model.Base.ImageFile">true</IsFirst>
          <d4p1:Id>1</d4p1:Id>
        </d4p1:mh163k_News_pic>
        <d4p1:mh163k_News_pic>
          <Chrimage xmlns="http://schemas.datacontract.org/2004/07/Mh.Common.Service.Model.Base.ImageFile">sample string 3</Chrimage>
          <Dtappenddate xmlns="http://schemas.datacontract.org/2004/07/Mh.Common.Service.Model.Base.ImageFile">2024-04-30T15:33:14.9836125+08:00</Dtappenddate>
          <Filepath xmlns="http://schemas.datacontract.org/2004/07/Mh.Common.Service.Model.Base.ImageFile">sample string 4</Filepath>
          <State xmlns="http://schemas.datacontract.org/2004/07/Mh.Common.Service.Model.Base.ImageFile">6</State>
          <ThirdId xmlns="http://schemas.datacontract.org/2004/07/Mh.Common.Service.Model.Base.ImageFile">5</ThirdId>
          <Intorder xmlns="http://schemas.datacontract.org/2004/07/Mh.Common.Service.Model.Base.ImageFile">2</Intorder>
          <IsFirst xmlns="http://schemas.datacontract.org/2004/07/Mh.Common.Service.Model.Base.ImageFile">true</IsFirst>
          <d4p1:Id>1</d4p1:Id>
        </d4p1:mh163k_News_pic>
      </d2p1:ArticlePics>
      <d2p1:Category1stDesp>sample string 6</d2p1:Category1stDesp>
      <d2p1:Category1stId>5</d2p1:Category1stId>
      <d2p1:Category2ndDesp>sample string 8</d2p1:Category2ndDesp>
      <d2p1:Category2ndId>7</d2p1:Category2ndId>
      <d2p1:CoverPicUrl>sample string 4</d2p1:CoverPicUrl>
      <d2p1:CreateTime>2024-04-30T15:33:14.9836125+08:00</d2p1:CreateTime>
      <d2p1:FontBold>true</d2p1:FontBold>
      <d2p1:FontColor>sample string 21</d2p1:FontColor>
      <d2p1:IntOrder>17</d2p1:IntOrder>
      <d2p1:Intro>sample string 3</d2p1:Intro>
      <d2p1:IsJudgeable>true</d2p1:IsJudgeable>
      <d2p1:IsNeedToPay>true</d2p1:IsNeedToPay>
      <d2p1:IsRemote>true</d2p1:IsRemote>
      <d2p1:IsSkip>true</d2p1:IsSkip>
      <d2p1:IsToutiao>true</d2p1:IsToutiao>
      <d2p1:IsTuijian>true</d2p1:IsTuijian>
      <d2p1:Likes>24</d2p1:Likes>
      <d2p1:Link>sample string 19</d2p1:Link>
      <d2p1:MobileTypographyStyle>Auto</d2p1:MobileTypographyStyle>
      <d2p1:PicNum>18</d2p1:PicNum>
      <d2p1:ReadNum>12</d2p1:ReadNum>
      <d2p1:Reverts>25</d2p1:Reverts>
      <d2p1:SkipUrl>sample string 23</d2p1:SkipUrl>
      <d2p1:Title>sample string 2</d2p1:Title>
      <d2p1:Type>9</d2p1:Type>
      <d2p1:TypeDesp>sample string 10</d2p1:TypeDesp>
    </d2p1:ArticleListItemDto>
  </Data>
  <TotalPage>2</TotalPage>
  <TotalRecord>1</TotalRecord>
</PagedOfArticleListItemDto9Om8LWzW>