GET api/Comment/GetCommentsNum?filterType[0]={filterType[0]}&filterType[1]={filterType[1]}&CommentType={CommentType}&onlyFirst={onlyFirst}

获取评论数量,不传表示获取全部类型

Request Information

URI Parameters

NameDescriptionTypeAdditional information
filterType

不同状态

Collection of AuditStatusType

Required

CommentType

评论类型

NewsStyleidType

Default value is Unclassified

onlyFirst

是否仅包含帖子

boolean

Default value is False

Body Parameters

None.

Response Information

Resource Description

获取评论数量,不传表示获取全部类型

Dictionary of AuditStatusType [key] and integer [value]

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:
<ArrayOfKeyValueOfEnumCommon.AuditStatusTypeNullableOfint4VGxTVAg xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
  <KeyValueOfEnumCommon.AuditStatusTypeNullableOfint4VGxTVAg>
    <Key>TobeAgree</Key>
    <Value>1</Value>
  </KeyValueOfEnumCommon.AuditStatusTypeNullableOfint4VGxTVAg>
</ArrayOfKeyValueOfEnumCommon.AuditStatusTypeNullableOfint4VGxTVAg>