GET api/News?u={u}&t={t}&d={d}
获取我的投稿News列表
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| u |
用户ID |
integer |
Required |
| t |
[用户ID]|[用户密码,加密]|[requestTime]|[设备标识],加密 |
string |
Required |
| d |
PageNumber=[,int],PageSize=[,int] |
string |
Required |
Body Parameters
None.
Response Information
Resource Description
获取我的投稿News列表
DataResultListOfNewsOutput| Name | Description | Type | Additional information |
|---|---|---|---|
| DataList | Collection of NewsOutput |
None. |
|
| PageNum | integer |
None. |
|
| PageSize | integer |
None. |
|
| PageCount | integer |
None. |
|
| PreviousIndex | integer |
None. |
|
| NextIndex | integer |
None. |
|
| RecordCount | integer |
None. |
|
| Error | boolean |
None. |
|
| ErrorInfo | Collection of string |
None. |
|
| ExInfo | Exception |
None. |
Response Formats
application/json, text/json
Sample:
{
"_pageSize": 2,
"_recordCount": 3,
"_pageNum": 1,
"_error": true,
"_errorInfo": [
"sample string 1",
"sample string 2"
],
"_exInfo": {
"ClassName": "System.Exception",
"Message": null,
"Data": null,
"InnerException": null,
"HelpURL": "sample string 1",
"StackTraceString": null,
"RemoteStackTraceString": null,
"RemoteStackIndex": 0,
"ExceptionMethod": null,
"HResult": 3,
"Source": "sample string 2",
"WatsonBuckets": null
},
"_dataList": [
{
"ID": 1,
"Title": "sample string 2",
"Content": "sample string 3",
"ImgUrl": "sample string 4",
"CreateTime": "2025-12-16T04:32:11.2692604+08:00",
"State": 6,
"Marking": 7
},
{
"ID": 1,
"Title": "sample string 2",
"Content": "sample string 3",
"ImgUrl": "sample string 4",
"CreateTime": "2025-12-16T04:32:11.2692604+08:00",
"State": 6,
"Marking": 7
}
]
}
application/xml, text/xml
Sample:
<DataResultListOfNewsOutputpSWvOUzt xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Care365_V2.Utility">
<_dataList xmlns:d2p1="http://schemas.datacontract.org/2004/07/Care365_V2.Model.News">
<d2p1:NewsOutput>
<d2p1:Content>sample string 3</d2p1:Content>
<d2p1:CreateTime>2025-12-16T04:32:11.2692604+08:00</d2p1:CreateTime>
<d2p1:ID>1</d2p1:ID>
<d2p1:ImgUrl>sample string 4</d2p1:ImgUrl>
<d2p1:Marking>7</d2p1:Marking>
<d2p1:State>6</d2p1:State>
<d2p1:Title>sample string 2</d2p1:Title>
</d2p1:NewsOutput>
<d2p1:NewsOutput>
<d2p1:Content>sample string 3</d2p1:Content>
<d2p1:CreateTime>2025-12-16T04:32:11.2692604+08:00</d2p1:CreateTime>
<d2p1:ID>1</d2p1:ID>
<d2p1:ImgUrl>sample string 4</d2p1:ImgUrl>
<d2p1:Marking>7</d2p1:Marking>
<d2p1:State>6</d2p1:State>
<d2p1:Title>sample string 2</d2p1:Title>
</d2p1:NewsOutput>
</_dataList>
<_error>true</_error>
<_errorInfo xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d2p1:string>sample string 1</d2p1:string>
<d2p1:string>sample string 2</d2p1:string>
</_errorInfo>
<_exInfo xmlns:d2p1="http://schemas.datacontract.org/2004/07/System">
<ClassName xmlns:d3p1="http://www.w3.org/2001/XMLSchema" i:type="d3p1:string" xmlns="">System.Exception</ClassName>
<Message i:nil="true" xmlns="" />
<Data i:nil="true" xmlns="" />
<InnerException i:nil="true" xmlns="" />
<HelpURL xmlns:d3p1="http://www.w3.org/2001/XMLSchema" i:type="d3p1:string" xmlns="">sample string 1</HelpURL>
<StackTraceString i:nil="true" xmlns="" />
<RemoteStackTraceString i:nil="true" xmlns="" />
<RemoteStackIndex xmlns:d3p1="http://www.w3.org/2001/XMLSchema" i:type="d3p1:int" xmlns="">0</RemoteStackIndex>
<ExceptionMethod i:nil="true" xmlns="" />
<HResult xmlns:d3p1="http://www.w3.org/2001/XMLSchema" i:type="d3p1:int" xmlns="">3</HResult>
<Source xmlns:d3p1="http://www.w3.org/2001/XMLSchema" i:type="d3p1:string" xmlns="">sample string 2</Source>
<WatsonBuckets i:nil="true" xmlns="" />
</_exInfo>
<_pageNum>1</_pageNum>
<_pageSize>2</_pageSize>
<_recordCount>3</_recordCount>
</DataResultListOfNewsOutputpSWvOUzt>