资讯查询(前端)
[toc]
GET 查看最新资讯(前端)
GET /localhost:9000/article/article/orderList
> 返回示例
> 成功
{
"msg": "success",
"code": 200,
"data": [
{
"id": 7,
"title": "测试",
"type": 1,
"content": "<p>11111</p>",
"url": "11111",
"state": 0,
"beginDate": "2022-11-11",
"endDate": "2023-11-11",
"releaseDate": "2023-01-13",
"updateTime": "2023-01-13 17:04:14"
},
{
"id": 1,
"title": "叩丁狼资讯测试",
"type": 1,
"content": "<p>222222</p>\n",
"url": "1",
"state": 0,
"beginDate": "2023-01-09",
"endDate": "2023-01-29",
"releaseDate": "2023-01-11",
"updateTime": "2023-01-11 15:23:32"
},
{
"id": 4,
"title": "叩丁狼资讯测试",
"type": 1,
"content": "<p>sss</p>\n",
"url": "2222",
"state": 0,
"beginDate": "2023-01-10",
"endDate": "2023-01-28",
"releaseDate": "2023-01-11",
"updateTime": null
},
{
"id": 5,
"title": "叩丁狼资讯测试",
"type": 1,
"content": "<p>sss</p>\n",
"url": "2222",
"state": 0,
"beginDate": "2023-01-10",
"endDate": "2023-01-28",
"releaseDate": "2023-01-11",
"updateTime": null
}
]
}
返回结果
名称 | 类型 | 说明 |
---|---|---|
id | Long | 资讯id |
title | string | 资讯标题 |
type | string | 文章类型(1 外部文章,2本站文章) |
content | string | 资讯内容 |
url | string | 外部文章链接 |
state | string | 文章状态(-1 无效,0 有效) |
beginDate | string | 生效开始时间 |
endDate | string | 生效结束时间 |
releseDate | string | 发布时间 |
updateTime | string | 修改时间 |
状态码 | 状态码含义 | 说明 | 数据模型 |
---|---|---|---|
200 | OK | 成功 | Inline |