GET api/News/GetNewsNumByType?newsTypes[0]={newsTypes[0]}&newsTypes[1]={newsTypes[1]}
获取资讯数量,不传表示获取全部类型 newsType=0表是获取全部资讯
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
newsTypes | Collection of integer |
Required |
Body Parameters
None.
Response Information
Resource Description
获取资讯数量,不传表示获取全部类型 newsType=0表是获取全部资讯
Dictionary of integer [key] and integer [value]Response Formats
application/json
Sample:
Sample not available.
text/json
Sample:
Sample not available.
application/xml, text/xml
Sample:
<ArrayOfKeyValueOfintNullableOfintU6ho3Bhd xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <KeyValueOfintNullableOfintU6ho3Bhd> <Key>1</Key> <Value>1</Value> </KeyValueOfintNullableOfintU6ho3Bhd> <KeyValueOfintNullableOfintU6ho3Bhd> <Key>2</Key> <Value>1</Value> </KeyValueOfintNullableOfintU6ho3Bhd> </ArrayOfKeyValueOfintNullableOfintU6ho3Bhd>