GET api/Post/GetPostsNum?postFilterType[0]={postFilterType[0]}&postFilterType[1]={postFilterType[1]}
获取帖子数量,不传表示获取全部类型
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
postFilterType |
不同状态 |
Collection of PostFilterType |
Required |
Body Parameters
None.
Response Information
Resource Description
获取帖子数量,不传表示获取全部类型
Dictionary of PostFilterType [key] and integer [value]Response Formats
application/json
Sample:
text/json
Sample:
application/xml, text/xml
Sample:
<ArrayOfKeyValueOfEnumTieba.PostFilterTypeNullableOfintn4IUn06Z xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <KeyValueOfEnumTieba.PostFilterTypeNullableOfintn4IUn06Z> <Key>All</Key> <Value>1</Value> </KeyValueOfEnumTieba.PostFilterTypeNullableOfintn4IUn06Z> </ArrayOfKeyValueOfEnumTieba.PostFilterTypeNullableOfintn4IUn06Z>