GET api/Post/GetTopPostInfos?classId={classId}&top={top}

获取置顶帖子

Request Information

URI Parameters

NameDescriptionTypeAdditional information
classId

板块id,传0表示获取全局置顶

integer

Required

top

获取置顶多少条,默认10

integer

Default value is 10

Body Parameters

None.

Response Information

Resource Description

获取置顶帖子

Collection of mh163k_Tieba_Post
NameDescriptionTypeAdditional information
Id

帖子id

integer

None.

CategoryId

帖子分类

integer

None.

Title

帖子标题

string

None.

Intorder

排序

integer

None.

Hits

浏览量

integer

None.

ChrContent

帖子内容

string

None.

CreateTime

帖子发布时间

date

None.

Color

帖子标题颜色

string

None.

IsTop

版块置顶

boolean

None.

IsIndex

是否焦点

boolean

None.

IndexFilePath

焦点图片

string

None.

IsGlobalTop

全局置顶

boolean

None.

IsJinghua

是否精华

boolean

None.

UserId

发帖用户id

integer

None.

Ip

发帖ip

string

None.

IsReply

是否允许回复

boolean

None.

Iskill

是否审核

AuditStatusType

None.

Repdate

最后回复时间

date

None.

IsBold

帖子标题是否加粗

boolean

None.

IsRemote

是否有远程附件

boolean

None.

HideContent

帖子回复显示的隐藏内容

string

None.

IsReward

是否可以打赏

boolean

None.

KillReason

未通过原因

string

None.

DataStatus

删除标识

StatusType

None.

ClassId

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

integer

None.

Address

帖子发布地址

string

None.

GpsX

帖子发布X坐标

decimal number

None.

GpsY

帖子发布Y坐标

decimal number

None.

IsPostReward

是否发帖已奖励过积分

boolean

None.

IsJingHuaReward

是否加精华已奖励过积分

boolean

None.

score

integer

None.

score1

integer

None.

score2

integer

None.

score3

integer

None.

score4

integer

None.

score5

integer

None.

typeid

integer

None.

picid

integer

None.

revertnum

integer

None.

num1

integer

None.

num2

integer

None.

Response Formats

application/json

Sample:

Sample not available.

text/json

Sample:

Sample not available.

application/xml, text/xml

Sample:
<ArrayOfmh163k_Tieba_Post xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Mh.Tieba.Service.Model">
  <mh163k_Tieba_Post>
    <Address>sample string 18</Address>
    <CategoryId>2</CategoryId>
    <ChrContent>sample string 6</ChrContent>
    <ClassId>17</ClassId>
    <Color>sample string 7</Color>
    <CreateTime>2024-03-29T03:40:43.3591603+08:00</CreateTime>
    <DataStatus>Effective</DataStatus>
    <GpsX>19.1</GpsX>
    <GpsY>20.1</GpsY>
    <HideContent>sample string 14</HideContent>
    <Hits>5</Hits>
    <Id>1</Id>
    <IndexFilePath>sample string 8</IndexFilePath>
    <Intorder>4</Intorder>
    <Ip>sample string 10</Ip>
    <IsBold>true</IsBold>
    <IsGlobalTop>true</IsGlobalTop>
    <IsIndex>true</IsIndex>
    <IsJingHuaReward>true</IsJingHuaReward>
    <IsJinghua>true</IsJinghua>
    <IsPostReward>true</IsPostReward>
    <IsRemote>true</IsRemote>
    <IsReply>true</IsReply>
    <IsReward>true</IsReward>
    <IsTop>true</IsTop>
    <Iskill>TobeAgree</Iskill>
    <KillReason>sample string 16</KillReason>
    <Repdate>2024-03-29T03:40:43.3591603+08:00</Repdate>
    <Title>sample string 3</Title>
    <UserId>9</UserId>
    <num1>32</num1>
    <num2>33</num2>
    <picid>30</picid>
    <revertnum>31</revertnum>
    <score>23</score>
    <score1>24</score1>
    <score2>25</score2>
    <score3>26</score3>
    <score4>27</score4>
    <score5>28</score5>
    <typeid>29</typeid>
  </mh163k_Tieba_Post>
  <mh163k_Tieba_Post>
    <Address>sample string 18</Address>
    <CategoryId>2</CategoryId>
    <ChrContent>sample string 6</ChrContent>
    <ClassId>17</ClassId>
    <Color>sample string 7</Color>
    <CreateTime>2024-03-29T03:40:43.3591603+08:00</CreateTime>
    <DataStatus>Effective</DataStatus>
    <GpsX>19.1</GpsX>
    <GpsY>20.1</GpsY>
    <HideContent>sample string 14</HideContent>
    <Hits>5</Hits>
    <Id>1</Id>
    <IndexFilePath>sample string 8</IndexFilePath>
    <Intorder>4</Intorder>
    <Ip>sample string 10</Ip>
    <IsBold>true</IsBold>
    <IsGlobalTop>true</IsGlobalTop>
    <IsIndex>true</IsIndex>
    <IsJingHuaReward>true</IsJingHuaReward>
    <IsJinghua>true</IsJinghua>
    <IsPostReward>true</IsPostReward>
    <IsRemote>true</IsRemote>
    <IsReply>true</IsReply>
    <IsReward>true</IsReward>
    <IsTop>true</IsTop>
    <Iskill>TobeAgree</Iskill>
    <KillReason>sample string 16</KillReason>
    <Repdate>2024-03-29T03:40:43.3591603+08:00</Repdate>
    <Title>sample string 3</Title>
    <UserId>9</UserId>
    <num1>32</num1>
    <num2>33</num2>
    <picid>30</picid>
    <revertnum>31</revertnum>
    <score>23</score>
    <score1>24</score1>
    <score2>25</score2>
    <score3>26</score3>
    <score4>27</score4>
    <score5>28</score5>
    <typeid>29</typeid>
  </mh163k_Tieba_Post>
</ArrayOfmh163k_Tieba_Post>