POST api/Topic/QueryListTopic

S1:查询社区列表,对应首页页面 {"Category":"","Sn":"","limit":10,"page":1,"Keyword":"","MemberGuid":"","SortFild":"","SortOrder":""}

Request Information

URI Parameters

None.

Body Parameters

AppToPicQueryParam
NameDescriptionTypeAdditional information
Category

分类

string

None.

Sn

查询类别,Sn“”表示所有,1表示推荐,2表示关注 3表示视频,

string

None.

limit

每页多少行(默认30)

integer

None.

page

当前页(默认1)

integer

None.

Keyword

关键字

string

None.

MemberGuid

登录会员ID

string

None.

SortFild

排序字段

string

None.

SortOrder

排序的方式

string

None.

Device

手机操作系统 Android或者IOS

string

None.

Brand

设备品牌 Android 端可获取:设备品牌 /iOS 端可获取:设备名称

string

None.

Models

设备型号 Android 端可获取:型号/iOS 端可获取:机型标识符(如 iPhone14,5)

string

None.

Request Formats

application/json, text/json

Sample:
{
  "Category": "sample string 1",
  "Sn": "sample string 2",
  "limit": 3,
  "page": 4,
  "Keyword": "sample string 5",
  "MemberGuid": "sample string 6",
  "SortFild": "sample string 7",
  "SortOrder": "sample string 8",
  "Device": "sample string 9",
  "Brand": "sample string 10",
  "Models": "sample string 11"
}

application/xml, text/xml

Sample:
<AppToPicQueryParam xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/RuitingCC.Solution.Model.Param">
  <Brand>sample string 10</Brand>
  <Device>sample string 9</Device>
  <Keyword>sample string 5</Keyword>
  <MemberGuid>sample string 6</MemberGuid>
  <Models>sample string 11</Models>
  <SortFild>sample string 7</SortFild>
  <SortOrder>sample string 8</SortOrder>
  <limit>3</limit>
  <page>4</page>
  <Category>sample string 1</Category>
  <Sn>sample string 2</Sn>
</AppToPicQueryParam>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'AppToPicQueryParam'.

Response Information

Resource Description

S1:查询社区列表,对应首页页面 {"Category":"","Sn":"","limit":10,"page":1,"Keyword":"","MemberGuid":"","SortFild":"","SortOrder":""}

ApTopicViewModel
NameDescriptionTypeAdditional information
TopicGUID

主键

string

None.

MemberGUID

会员id

string

None.

MemberNick

昵称

string

None.

MemberHead

头像

string

None.

CreateDate

创建时间

date

None.

TopicTitle

标题

string

None.

TopicContent

内容

string

None.

LikesCount

点赞数量

integer

None.

CommentCount

评论数量

integer

None.

Category

种类

string

None.

ImgLst

社区图片信息

Collection of AttachmentApViewModel

None.

VedioLst

社区视频信息

Collection of AttachmentApViewModel

None.

ProductLst

社区产品信息

Collection of AttachmentApViewModel

None.

MangHeLst

社区盲盒信息

Collection of AttachmentApViewModel

None.

IsLike

是否点赞 1:是 0:否

integer

None.

IsFollow

integer

None.

CommentLst

社区评论信息

Collection of ApTopicCmtViewModel

None.

TopicImg

帖子图片,仅仅在我的文章或者我的评论列表中显示

string

None.

ShareUrl

分享链接

string

None.

Response Formats

application/json

Sample:

An exception has occurred while using the formatter 'JsonMediaTypeFormatter' to generate sample for media type 'application/json'. Exception message: Self referencing loop detected with type 'RuitingCC.Solution.Model.ViewModel.ApTopicCmtViewModel'. Path 'CommentLst[0].ChildLst'.

text/json

Sample:

An exception has occurred while using the formatter 'JsonMediaTypeFormatter' to generate sample for media type 'text/json'. Exception message: Self referencing loop detected with type 'RuitingCC.Solution.Model.ViewModel.ApTopicCmtViewModel'. Path 'CommentLst[0].ChildLst'.

application/xml

Sample:

An exception has occurred while using the formatter 'XmlMediaTypeFormatter' to generate sample for media type 'application/xml'. Exception message: “System.Collections.Generic.List`1[[RuitingCC.Solution.Model.ViewModel.ApTopicCmtViewModel, RuitingCC.Solution.Model, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]”类型的对象图包含循环,如果禁用引用跟踪,择无法对其进行序列化。

text/xml

Sample:

An exception has occurred while using the formatter 'XmlMediaTypeFormatter' to generate sample for media type 'text/xml'. Exception message: “System.Collections.Generic.List`1[[RuitingCC.Solution.Model.ViewModel.ApTopicCmtViewModel, RuitingCC.Solution.Model, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]”类型的对象图包含循环,如果禁用引用跟踪,择无法对其进行序列化。