POST api/News/list
Request Information
URI Parameters
None.
Body Parameters
newsListPost| Name | Description | Type | Additional information |
|---|---|---|---|
| type | NewsType |
None. |
|
| keyword | string |
None. |
|
| lat | decimal number |
None. |
|
| lng | decimal number |
None. |
|
| skip |
跳过多少条 |
integer |
None. |
| limit |
取多少条 |
integer |
None. |
| uid |
账号id |
integer |
None. |
| token |
token |
string |
None. |
Request Formats
application/json, text/json
Sample:
{
"type": 1,
"keyword": "sample string 1",
"lat": 1.0,
"lng": 1.0,
"skip": 2,
"limit": 3,
"uid": 4,
"token": "sample string 5"
}
application/xml, text/xml
Sample:
<newsListPost xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/LyWebApi.Controllers"> <token xmlns="http://schemas.datacontract.org/2004/07/LyWebApi.Models">sample string 5</token> <uid xmlns="http://schemas.datacontract.org/2004/07/LyWebApi.Models">4</uid> <limit xmlns="http://schemas.datacontract.org/2004/07/LyWebApi.Models">3</limit> <skip xmlns="http://schemas.datacontract.org/2004/07/LyWebApi.Models">2</skip> <keyword>sample string 1</keyword> <lat>1</lat> <lng>1</lng> <type>zan</type> </newsListPost>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
newsListResult| Name | Description | Type | Additional information |
|---|---|---|---|
| list | Collection of newsListItem |
None. |
|
| Code | integer |
None. |
|
| Msg | string |
None. |
Response Formats
application/json, text/json
Sample:
{
"list": [
{
"id": 1,
"jizan": 1,
"tel": "sample string 2",
"shoplogo": "sample string 3",
"newsPic": "sample string 4",
"dt": "sample string 5",
"title": "sample string 6",
"desc": "sample string 7",
"address": "sample string 8",
"juli": "sample string 9",
"count": 1,
"views": 10,
"zan": 11,
"zancount": 12
},
{
"id": 1,
"jizan": 1,
"tel": "sample string 2",
"shoplogo": "sample string 3",
"newsPic": "sample string 4",
"dt": "sample string 5",
"title": "sample string 6",
"desc": "sample string 7",
"address": "sample string 8",
"juli": "sample string 9",
"count": 1,
"views": 10,
"zan": 11,
"zancount": 12
}
],
"Code": 1,
"Msg": "sample string 2"
}
application/xml, text/xml
Sample:
<newsListResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/LyWebApi.Controllers">
<Code xmlns="http://schemas.datacontract.org/2004/07/LyWebApi.Models">1</Code>
<Msg xmlns="http://schemas.datacontract.org/2004/07/LyWebApi.Models">sample string 2</Msg>
<list>
<newsListItem>
<address>sample string 8</address>
<count>1</count>
<desc>sample string 7</desc>
<dt>sample string 5</dt>
<id>1</id>
<jizan>1</jizan>
<juli>sample string 9</juli>
<newsPic>sample string 4</newsPic>
<shoplogo>sample string 3</shoplogo>
<tel>sample string 2</tel>
<title>sample string 6</title>
<views>10</views>
<zan>11</zan>
<zancount>12</zancount>
</newsListItem>
<newsListItem>
<address>sample string 8</address>
<count>1</count>
<desc>sample string 7</desc>
<dt>sample string 5</dt>
<id>1</id>
<jizan>1</jizan>
<juli>sample string 9</juli>
<newsPic>sample string 4</newsPic>
<shoplogo>sample string 3</shoplogo>
<tel>sample string 2</tel>
<title>sample string 6</title>
<views>10</views>
<zan>11</zan>
<zancount>12</zancount>
</newsListItem>
</list>
</newsListResult>