Appearance
简要描述
- 获取新闻信息,根据条件筛选新闻列表
请求URL
https://open.gangtise.com/application/glory/info/queryNewsByCondition
请求方式
- POST
请求头
请求头 | 类型 | 说明 |
---|---|---|
Authorization | String | accessToken,通accessToken接口获取 |
参数
参数名 | 必选 | 类型 | 说明 |
---|---|---|---|
cloumnId | 否 | Long | 栏目id |
newsCategory | 否 | String | 新闻分类 BRIEF:快讯类 ARTICLE:文章类 |
更多参数参考数据字典,这里只作示例
请求示例
{
"reqType": "0",
"reqId": "homepage",
"bizCode": "info",
"condition": {
"must":{
"columnId":"2", // 栏目id
"newsCategory":"BRIEF"
},
"from": 0,
"size": 5
},
"startNo": -1,
"endNo": -1
}
返回示例
文章类新闻
{
"reqId": "homepage",
"status": true,
"data": [
{
"id": 282195,
"title": "实习生冒用券商正规分析师为自己招“小黑工”, 券商紧急发声:暂缓录用",
"newsTime": "1655953638000",
"author": null,
"sourceLink": "https://finance.sina.cn/stock/qs/2022-06-23/detail-imizirav0101195.d.html?cre=fantian&mod=finapp",
"source": "每日经济新闻",
"summary": null,
"label": "|1|3|6|8|17|18|",
"labels": [
1,
3,
6,
8,
17,
18
],
"uniqueId": "dfc3f2d086efc068f9298ae776ef36f8",
"entryTime": 1655955673352,
"updateTime": 1655955673352,
"newsCategory": "ARTICLE",
"cover": "gdp/information/news/20220623/w270h180l50t0q50z1ndr.jpg",
"copyRight": 8,
"copyRightStmt": "转载",
"content": null,
"isNotice": null,
"isTop": null,
"isColor": null,
"attachment": "{\"1\":[\"gdp/information/news/20220624/千亿华为概念汽车龙头又涨停!新车型发布时间定了!华为新款手机也将亮相.html\"],\"3\":[\"gdp/information/news/20220624/73f0740f8600a59e093d12ad7b35cfbc.png\",\"gdp/information/news/20220624/1b7351d0bca35a27ce1c633e9d0cca3d.jpg\",\"gdp/information/news/20220624/5c2d88125a349cebfa486b216711c210.jpg\",\"gdp/information/news/20220624/047a6319745e4a3088011ad1be531095.png\",\"gdp/information/news/20220624/c6d1f71ab2d5f815aa5e42976870330a.png\",\"gdp/information/news/20220624/ae398bc80b76f5a4b8b2329092ccf456.png\",\"gdp/information/news/20220624/c4d34796529c03153131f5e92c6054e7.png\",\"gdp/information/news/20220624/06bb59faadecb63d4c0b7e43844b61a4.png\"]}",
"msg": null
}
返回字段说明
字段名 | 类型 | 说明 |
---|---|---|
id | Long | 资讯id |
title | String | 标题 |
newsTime | Long | 时间 |
author | String | 作者 |
sourceLink | String | 链接 |
source | String | 来源 |
summary | String | 摘要 |
cover | String | 封面链接 |
sourceLink | String | 链接 |
copyRight | Long | 版权 |
copyRightStmt | String | 版权说明 |
content | String | 快讯内容 |
isNotice | Integer | 是否提醒 0:否,1:是 |
isTop | Integer | 是否置顶 0:否,1:是 |
isColor | Integer | 是否标色 0:否,1:是 |
attachment | string | 附件,json字符串 |
attachment说明:1 - 正文;2 - 附件(可供用户下载);3 - 原图(正文图片);4 - 封面图