GET api/Post/GetPostFrontNum

获取首页所需统计数字

Request Information

URI Parameters

None.

Body Parameters

None.

Response Information

Resource Description

获取首页所需统计数字

PostFrontNumDto
NameDescriptionTypeAdditional information
AllPostNum

总共发帖量

integer

None.

TodayPostNum

今日发帖量

integer

None.

YesterdayPostNum

昨日发帖量

integer

None.

AllPostViewsNum

帖子浏览总量

decimal number

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:
<PostFrontNumDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Mh.Tieba.Service.Dto.Post">
  <AllPostNum>1</AllPostNum>
  <AllPostViewsNum>4</AllPostViewsNum>
  <TodayPostNum>2</TodayPostNum>
  <YesterdayPostNum>3</YesterdayPostNum>
</PostFrontNumDto>