GET api/News/GetNewsInfo/{id}
获取新闻详细
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| id | integer |
Required |
Body Parameters
None.
Response Information
Resource Description
News| Name | Description | Type | Additional information |
|---|---|---|---|
| Id | integer |
None. |
|
| Content | string |
None. |
|
| AppendTime | date |
None. |
|
| Source | string |
None. |
|
| Url | string |
None. |
|
| Author | string |
None. |
|
| Click | integer |
None. |
|
| Title | string |
None. |
|
| Summary | string |
None. |
|
| Key | string |
None. |
|
| Description | string |
None. |
|
| EK_CategoryId | integer |
None. |
|
| NewsCode | string |
None. |
|
| States | integer |
None. |
|
| isPass | integer |
None. |
|
| OrderBy | integer |
None. |
|
| MainImg | string |
None. |
|
| LikeCount | integer |
None. |
Response Formats
application/json, text/json
Sample:
{
"Id": 1,
"Content": "sample string 2",
"AppendTime": "2026-07-26 15:42:30",
"Source": "sample string 3",
"Url": "sample string 4",
"Author": "sample string 5",
"Click": 1,
"Title": "sample string 6",
"Summary": "sample string 7",
"Key": "sample string 8",
"Description": "sample string 9",
"EK_CategoryId": 1,
"NewsCode": "sample string 10",
"States": 1,
"isPass": 1,
"OrderBy": 1,
"MainImg": "sample string 11",
"LikeCount": 1
}
application/xml, text/xml
Sample:
<News xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ShopMallBusiness.DataModel"> <AppendTime>2026-07-26T15:42:30.6580592+08:00</AppendTime> <Author>sample string 5</Author> <Click>1</Click> <Content>sample string 2</Content> <Description>sample string 9</Description> <EK_CategoryId>1</EK_CategoryId> <Id>1</Id> <Key>sample string 8</Key> <LikeCount>1</LikeCount> <MainImg>sample string 11</MainImg> <NewsCode>sample string 10</NewsCode> <OrderBy>1</OrderBy> <Source>sample string 3</Source> <States>1</States> <Summary>sample string 7</Summary> <Title>sample string 6</Title> <Url>sample string 4</Url> <isPass>1</isPass> </News>