GET api/Post/GetPostFrontInfo?id={id}

前台 - 获取帖子详情

Request Information

URI Parameters

NameDescriptionTypeAdditional information
id

integer

Required

Body Parameters

None.

Response Information

Resource Description

前台 - 获取帖子详情

PostFrontDto
NameDescriptionTypeAdditional information
ClassName

板块名称

string

None.

CategoryName

板块分类名称(二级分类名称)

string

None.

ReplyNum

帖子回复数

integer

None.

LikesNum

点赞数--根据实际点赞数,因要加载出点赞用户名

integer

None.

PostUserInfo

发贴用户详情

TiebaUserInfoDto

None.

IsHot

是否热帖,根据配置判断

boolean

None.

IsUpdate

访问用户是否可以更新删除帖子

boolean

None.

IsSuperUpdate

访问用户是否可以超级管理帖子

boolean

None.

IsVisible

是否可以查看隐藏能容

boolean

None.

NextPostId

下一贴根据id,为0表示无下一贴

integer

None.

Id

帖子id

integer

None.

CategoryId

帖子分类

integer

None.

Title

帖子标题

string

None.

CreateTime

帖子发布时间

date

None.

Color

帖子标题颜色

string

None.

IsTop

版块置顶

boolean

None.

IsIndex

是否焦点

boolean

None.

IsGlobalTop

全局置顶

boolean

None.

IsJinghua

是否精华

boolean

None.

UserId

发帖用户id

integer

None.

IsBold

帖子标题是否加粗

boolean

None.

ChrContent

帖子内容

string

None.

Hits

浏览量

integer

None.

Iskill

是否审核

AuditStatusType

None.

IsRemote

是否有远程附件

boolean

None.

HideContent

帖子回复显示的隐藏内容

string

None.

IsHaveHide

是否含隐藏内容

boolean

None.

IsReply

是否允许回复

boolean

None.

ClassId

帖子一级分类。//需要转接

integer

None.

IsReward

是否可以打赏

boolean

None.

GpsX

帖子发布X坐标

decimal number

None.

GpsY

帖子发布Y坐标

decimal number

None.

Response Formats

application/json

Sample:

Sample not available.

text/json

Sample:

Sample not available.

application/xml, text/xml

Sample:
<PostFrontDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Mh.Tieba.Service.Dto.Post">
  <CategoryId>11</CategoryId>
  <CategoryName>sample string 2</CategoryName>
  <ChrContent>sample string 16</ChrContent>
  <ClassId>22</ClassId>
  <ClassName>sample string 1</ClassName>
  <Color>sample string 13</Color>
  <CreateTime>2024-03-29T00:39:41.1143127+08:00</CreateTime>
  <GpsX>24.1</GpsX>
  <GpsY>25.1</GpsY>
  <HideContent>sample string 19</HideContent>
  <Hits>17</Hits>
  <Id>10</Id>
  <IsBold>true</IsBold>
  <IsGlobalTop>true</IsGlobalTop>
  <IsHaveHide>true</IsHaveHide>
  <IsHot>true</IsHot>
  <IsIndex>true</IsIndex>
  <IsJinghua>true</IsJinghua>
  <IsRemote>true</IsRemote>
  <IsReply>true</IsReply>
  <IsReward>true</IsReward>
  <IsSuperUpdate>true</IsSuperUpdate>
  <IsTop>true</IsTop>
  <IsUpdate>true</IsUpdate>
  <IsVisible>true</IsVisible>
  <Iskill>TobeAgree</Iskill>
  <LikesNum>4</LikesNum>
  <NextPostId>9</NextPostId>
  <PostUserInfo>
    <FansNum>11</FansNum>
    <IsModerator>true</IsModerator>
    <PublishDistillatedPostsNum>6</PublishDistillatedPostsNum>
    <PublishPostsNum>4</PublishPostsNum>
    <PublishReplysNum>5</PublishReplysNum>
    <Regdate>2024-03-29T00:39:41.1143127+08:00</Regdate>
    <UserHeadPic>sample string 3</UserHeadPic>
    <UserId>1</UserId>
    <UserName>sample string 2</UserName>
    <VipName>sample string 9</VipName>
    <VipNum>8</VipNum>
  </PostUserInfo>
  <ReplyNum>3</ReplyNum>
  <Title>sample string 12</Title>
  <UserId>14</UserId>
</PostFrontDto>