NAV
json

Jiwei Premium Wiki

接口调用的参数格式

目前接口部分使用 HTTPBody 来进行参数传递,接口支持 application/jsonBody 格式

同时也支持 application/x-www-form-urlencoded 的 Body 格式

两种方式均需要在 Header 中注明内容类型的属性。

请勿使用from-data传递Payload

鉴权

参考企业信息平台通用的鉴权认证方式,使用OAuth授权,通过携带Jwt认证。

接口返回说明

第一层

http code返回码,目前常见返回码如下

Http code 说明
200 调用成功
400 调用失败,返回自定义错误
401 鉴权失败
403 权限不足,没有调用权限
500 服务器本身出错

第二层

接口返回内容中的status和error,errors字段 对于status,我们有如下规定

错误说明

status范围

error(单条错误详情)

字符串,会给出具体错误原因描述,可信赖字段,可直接展示至前端页面

errors (多条错误详情,用用于表单验证)

字典对象,会给出具体错误原因描述,前端可以根据场景选择是否直接展示错误信息

示例

{
  "status": 1,
  "errors": {
    "account": " account 不能为空",
    "code": " code 不能为空"
  }
}

接口地址说明

http https
线下
预发布
正式 待定

News API

资讯文章有关的API

PremiumFeed 资讯流

获取精选文章(VIP文章)的Feed流。可以通过不同的参数来筛选和排序文章,例如分类ID、作者ID、发布时间、查看次数等。还可以使用关键字、标签等进行搜索,并且支持分页功能和VIP专属内容过滤。

获取海外报道栏目(一级栏目)的用户推荐列表

(用户关键词和category_ids暂定通过配置和用户详情API获取)

GET: /api/news/feed?limit=20&tags=华为,汽车6&category_ids=396,441

--header 'Bearer: {token}'

--header 'Content-Type: application/json'

HTTP Method

GET

HTTP Request

/api/news/feed

Request Parameters Query

Title Description Type Required Tips
category_id 分类ID integer 分类ID需为整数
author_id 作者ID integer 作者ID需为整数
limit 每次显示条目数 integer 取值范围为1-99, 默认20
order 排序方式 string 可选值为published_timeview_num, 默认为published_time
date 日期 integer 取值范围为1-365天
essence_level 精华级别 integer 精华级别需为整数 [0,4]的范围内
after_token 分页码 string 分页码需为字符串, 从结果中可以获取
after_timestamp 过滤用时间戳 integer 时间戳需为unix格式, 用来获取小于其时间发布的文章
keyword 搜索关键字 string 关键字需为字符串, 可用来搜索标题,简介和标签
special 专题参数 integer 布尔值参数 [0,1]
cat_only 分类参数 integer 布尔值参数 [0,1]
is_vip VIP参数 integer 布尔值参数 [0,1]
excepts 排除的资讯ID string 需为整数, 多个可使用逗号分隔
category_ids 分类ID的合集 string 需为整数, 多个使用逗号分隔
tags 标签的合集 string 标签需为字符串, 多个可使用逗号分隔
highlight_color 高亮颜色 string 需为16进制颜色值

Request Parameters Body

暂无

Response Data

Title Description Type Required Tips
status 状态:0成功 非0失败 integer
errors status非0时,返回错误信息,键值对 object
data 表单具体数据 array of objects 详细见 News

News

Title Description Type Tips
id 资讯ID string 注意是混淆后的字符ID
title 资讯标题 string
sub_title 资讯副标题 string
cover 封面图片URL string
intro 简介 string
view_num 浏览次数 integer
news_type 资讯类型 integer 默认0无图,1-单图,2-多图,3-视频,4-音频,5-软文广告,6-图片广告
news_essence 精华级别 integer 0-4
is_project 是否是专题 integer
name_source 来源名称 string
tag_list 标签列表 array of strings
author 作者信息 object 见 Author 定义
category 分类信息 object 见 Category 定义
sub_category 子分类信息 object 见 Category 定义
video_info 视频信息 object 见 Video Info定义
highlight_title 高亮标题 string
highlight_intro 高亮简介 string
highlight_sub_title 高亮副标题 string
highlight_tag_list 高亮标签列表 array of strings
published_time 发布时间 integer Unix时间戳
published_time_human 人类可读的发布时间 string ISO 8601格式
page_token 分页令牌 string

Author

Title Description Type Tips
id 作者ID integer
author_name 作者名称 string
avatar 作者头像URL string
intro 作者简介 string

Category

Title Description Type Tips
id 分类ID integer
name 分类名称 string

Video Info

Title Description Type Required Tips
width 视频宽度 integer
height 视频高度 integer
duration 视频时长 integer 单位为秒
url 视频URL string 视频播放链接
video_cover 视频封面URL string 视频封面图片链接
video_cover_num 视频封面编号 string 封面图片编号

Response Data Json

{
    "status": 0,
    "data": [
        {
            "id": "4dR591",
            "title": "试听-集微在线-集微连线1",
            "sub_title": "sxd集微连线1",
            "cover": "https:\/\/s.laoyaoba.com\/jwImg\/newsCover\/2021\/12\/13\/16393885545176.jpeg",
            "intro": "大蛇丸大大大大大大大大大大大大大大大",
            "view_num": 819,
            "news_type": 3,
            "news_essence": 0,
            "is_project": 0,
            "name_source": "",
            "tag_list": [
                "集微访谈"
            ],
            "author": {
                "id": 1,
                "author_name": "爱集微",
                "avatar": "https:\/\/s.laoyaoba.com\/jwImg\/avatar\/2020\/02\/28\/15828720842371blob",
                "intro": "作者简介"
            },
            "category": {
                "id": 158,
                "name": "视听"
            },
            "sub_category": null,
            "video_info": {
                "width": 720,
                "height": 1280,
                "duration": 22,
                "url": "http:\/\/s.laoyaoba.com\/jiwei\/video\/1643428859616.mp4",
                "video_cover": "http:\/\/s.laoyaoba.com\/jiwei\/video\/1639388567490.mp4?vframe\/jpg\/offset\/1",
                "video_cover_num": "1"
            },
            "highlight_title": "<span style='color: #ff0000'>试<\/span><span style='color: #ff0000'>听<\/span>-集微在线-集微连线1",
            "highlight_intro": "",
            "highlight_sub_title": "",
            "highlight_tag_list": [],
            "published_time": 1639388580,
            "published_time_human": "2021-12-13T17:43:00+08:00",
            "page_token": "MTYzOTM4ODU4MDk2MDM1NDExLDc2OTQ0MA=="
        },
        {
            "id": "4D2eA6",
            "title": "试听-集微在线-集微访谈",
            "sub_title": "sxd集微访谈1",
            "cover": "https:\/\/s.laoyaoba.com\/jwImg\/newsCover\/2021\/12\/13\/16393882103655.jpeg",
            "intro": "下车的地方v犯得上犯得上反对改变风格",
            "view_num": 407,
            "news_type": 3,
            "news_essence": 0,
            "is_project": 0,
            "name_source": "",
            "tag_list": [
                "集微视听"
            ],
            "author": {
                "id": 1,
                "author_name": "爱集微",
                "avatar": "https:\/\/s.laoyaoba.com\/jwImg\/avatar\/2020\/02\/28\/15828720842371blob",
                "intro": "作者简介"
            },
            "category": {
                "id": 158,
                "name": "视听"
            },
            "sub_category": null,
            "video_info": {
                "width": 432,
                "height": 960,
                "duration": 16,
                "url": "http:\/\/s.laoyaoba.com\/jiwei\/video\/1639388224718.mp4",
                "video_cover": "http:\/\/s.laoyaoba.com\/jiwei\/video\/1639388224718.mp4?vframe\/jpg\/offset\/2",
                "video_cover_num": "2"
            },
            "highlight_title": "<span style='color: #ff0000'>试<\/span><span style='color: #ff0000'>听<\/span>-集微在线-集微访谈",
            "highlight_intro": "",
            "highlight_sub_title": "",
            "highlight_tag_list": [
                "集微视听"
            ],
            "published_time": 1639388220,
            "published_time_human": "2021-12-13T17:37:00+08:00",
            "page_token": "MTYzOTM4ODIyMDQ1MzkyNzc0LDc2OTQzOA=="
        }
    ]
}

Error

见errors字段

错误Response案例

{
    "status": 0,
    "errors": {
        "category_id": "分类ID不正确",
        "limit": "每次的显示条目应该是一个数字",
        "order": "排序方式不存在"
    }
}

Log

日期 作者 内容
2024/05/17 易初 创建

PremiumSearch 资讯搜索

效果等同于 Feed流。不过支持的参数只有搜索相关的功能

获取海外报道栏目的搜索结果

(用户关键词和category_ids暂定通过配置和用户详情API获取)

GET: /api/news/feed?keyword=华为&category_ids=396,441

--header 'Bearer: {token}'

--header 'Content-Type: application/json'

HTTP Method

GET

HTTP Request

/api/news/feed

Request Parameters Query

Title Description Type Required Tips
limit 每次显示条目数 integer 取值范围为1-99, 默认10
order 排序方式 string 可选值为published_timeview_num, 默认为published_time
after_token 分页码 string 分页码需为字符串, 从结果中可以获取
keyword 搜索关键字 string 关键字需为字符串, 可用来搜索标题,简介和标签
category_ids 分类ID的合集 string 需为整数, 多个使用逗号分隔
highlight_color 高亮颜色 string 需为16进制颜色值
info_source 信息来源 string 模糊匹配信息来源及标题
info_source_strict 真实来源 string 严格匹配信息来源

Request Parameters Body

暂无

Response Data

Title Description Type Required Tips
status 状态:0成功 非0失败 integer
errors status非0时,返回错误信息,键值对 object
data 表单具体数据 array of objects 详细见 News

News

Title Description Type Tips
id 资讯ID string 注意是混淆后的字符ID
title 资讯标题 string
sub_title 资讯副标题 string
cover 封面图片URL string
intro 简介 string
view_num 浏览次数 integer
news_type 资讯类型 integer 默认0无图,1-单图,2-多图,3-视频,4-音频,5-软文广告,6-图片广告
news_essence 精华级别 integer 0-4
is_project 是否是专题 integer
name_source 来源名称 string
real_source 真实来源地址 string
info_source 真实来源名称 string
tag_list 标签列表 array of strings
author 作者信息 object 见 Author 定义
category 分类信息 object 见 Category 定义
sub_category 子分类信息 object 见 Category 定义
video_info 视频信息 object 见 Video Info定义
highlight_title 高亮标题 string
highlight_sub_title 高亮副标题 string
highlight_tag_list 高亮标签列表 array of strings
published_time 发布时间 integer Unix时间戳
published_time_human 人类可读的发布时间 string ISO 8601格式
page_token 分页令牌 string

Author

Title Description Type Tips
id 作者ID integer
author_name 作者名称 string
avatar 作者头像URL string
intro 作者简介 string

Category

Title Description Type Tips
id 分类ID integer
name 分类名称 string

Video Info

Title Description Type Required Tips
width 视频宽度 integer
height 视频高度 integer
duration 视频时长 integer 单位为秒
url 视频URL string 视频播放链接
video_cover 视频封面URL string 视频封面图片链接
video_cover_num 视频封面编号 string 封面图片编号

Response Data Json

{
    "status": 0,
    "data": [
        {
            "id": "3cVBA1",
            "title": "试听-集微在线-集微连线1",
            "sub_title": "sxd集微连线1",
            "cover": "https:\/\/s.laoyaoba.com\/jwImg\/newsCover\/2021\/12\/13\/16393885545176.jpeg",
            "intro": "大蛇丸大大大大大大大大大大大大大大大",
            "view_num": 819,
            "news_type": 3,
            "news_essence": 0,
            "is_project": 0,
            "name_source": "",
            "real_source": "https://www.finance.senate.gov",
            "info_source": "Tom Ju",
            "tag_list": [
                "集微访谈"
            ],
            "author": {
                "id": 1,
                "author_name": "爱集微",
                "avatar": "https:\/\/s.laoyaoba.com\/jwImg\/avatar\/2020\/02\/28\/15828720842371blob",
                "intro": "作者简介"
            },
            "category": {
                "id": 158,
                "name": "视听"
            },
            "sub_category": null,
            "video_info": {
                "width": 720,
                "height": 1280,
                "duration": 22,
                "url": "http:\/\/s.laoyaoba.com\/jiwei\/video\/1643428859616.mp4",
                "video_cover": "http:\/\/s.laoyaoba.com\/jiwei\/video\/1639388567490.mp4?vframe\/jpg\/offset\/1",
                "video_cover_num": "1"
            },
            "highlight_title": "<span style='color: #ff0000'>试<\/span><span style='color: #ff0000'>听<\/span>-集微在线-集微连线1",
            "highlight_intro": "",
            "highlight_sub_title": "",
            "highlight_tag_list": [],
            "published_time": 1639388580,
            "published_time_human": "2021-12-13T17:43:00+08:00",
            "page_token": "MTYzOTM4ODU4MDk2MDM1NDExLDc2OTQ0MA=="
        },
        {
            "id": "3cVB9i",
            "title": "试听-集微在线-集微访谈",
            "sub_title": "sxd集微访谈1",
            "cover": "https:\/\/s.laoyaoba.com\/jwImg\/newsCover\/2021\/12\/13\/16393882103655.jpeg",
            "intro": "下车的地方v犯得上犯得上反对改变风格",
            "view_num": 407,
            "news_type": 3,
            "news_essence": 0,
            "is_project": 0,
            "name_source": "",
            "tag_list": [
                "集微视听"
            ],
            "author": {
                "id": 1,
                "author_name": "爱集微",
                "avatar": "https:\/\/s.laoyaoba.com\/jwImg\/avatar\/2020\/02\/28\/15828720842371blob",
                "intro": "作者简介"
            },
            "category": {
                "id": 158,
                "name": "视听"
            },
            "sub_category": null,
            "video_info": {
                "width": 432,
                "height": 960,
                "duration": 16,
                "url": "http:\/\/s.laoyaoba.com\/jiwei\/video\/1639388224718.mp4",
                "video_cover": "http:\/\/s.laoyaoba.com\/jiwei\/video\/1639388224718.mp4?vframe\/jpg\/offset\/2",
                "video_cover_num": "2"
            },
            "highlight_title": "<span style='color: #ff0000'>试<\/span><span style='color: #ff0000'>听<\/span>-集微在线-集微访谈",
            "highlight_intro": "",
            "highlight_sub_title": "",
            "highlight_tag_list": [
                "集微视听"
            ],
            "published_time": 1639388220,
            "published_time_human": "2021-12-13T17:37:00+08:00",
            "page_token": "MTYzOTM4ODIyMDQ1MzkyNzc0LDc2OTQzOA=="
        }
    ]
}

Error

见errors字段

错误Response案例

{
    "status": 0,
    "errors": {
        "category_id": "分类ID不正确",
        "limit": "每次的显示条目应该是一个数字",
        "order": "排序方式不存在"
    }
}

Log

日期 作者 内容
2024/05/17 易初 创建

PremiumHot 热门文章

获取热门文章的数据列表,可以使用在搜索页面,首页和任何的栏目页面 当然也可以通过修改limit改变显示的数量。

获取海外报道栏目(一级栏目)的热门资讯列表

(用户关键词和category_ids暂定通过配置API获取)

GET: /api/news/hot?category_ids=396,441&limit=10

--header 'Bearer: {token}'

--header 'Content-Type: application/json'

HTTP Method

GET

HTTP Request

/api/news/hot

Request Parameters Query

Title Description Type Required Tips
limit 每次显示条目数 integer 取值范围为1-99, 默认10
date 日期 integer 取值范围为1-365天,默认30天一个月
category_ids 分类ID的合集 string 需为整数, 多个使用逗号分隔

Request Parameters Body

暂无

Response Data

Title Description Type Required Tips
status 状态:0成功 非0失败 integer
errors status非0时,返回错误信息,键值对 object
data 表单具体数据 array of objects 详细见 News

News

Title Description Type Tips
id 资讯ID string 注意是混淆后的字符ID
title 资讯标题 string
sub_title 资讯副标题 string
cover 封面图片URL string
news_type 资讯类型 integer 默认0无图,1-单图,2-多图,3-视频,4-音频,5-软文广告,6-图片广告
published_time 发布时间 integer Unix时间戳
published_time_human 人类可读的发布时间 string ISO 8601格式

Response Data Json

{
    "status": 0,
    "data": [
        {
            "id": "3cXeXw",
            "title": "测试文章添加专题链接",
            "sub_title": "测试文章添加专题链接",
            "cover": "https:\/\/s.laoyaoba.com\/jwImg\/1596740617663.161976149376761.0223.png",
            "news_type": 1,
            "published_time": 1716452106,
            "published_time_human": "2024-05-23T16:15:06+08:00"
        },
        {
            "id": "3cXeXe",
            "title": "两大认证“加持”!商汤与华为昇腾共筑人工智能产业新生态",
            "sub_title": "两大认证“加持”!商汤与华为昇腾共筑人工智能产业新生态",
            "cover": "https:\/\/s.laoyaoba.com\/jwImg\/5199589303.9077425463750996827.17566.jpg",
            "news_type": 1,
            "published_time": 1711096402,
            "published_time_human": "2024-03-22T16:33:22+08:00"
        },
        {
            "id": "3cXeXM",
            "title": "测试zsj1",
            "sub_title": "测试zsj1",
            "cover": "https:\/\/s.laoyaoba.com\/jwImg\/5199589303.9077425463750996827.17566.jpg",
            "news_type": 1,
            "published_time": 1710918540,
            "published_time_human": "2024-03-20T15:09:00+08:00"
        },
        {
            "id": "3cXeX4",
            "title": "野村e科技及野村高科技竄出黑馬 定時定額量價齊揚",
            "sub_title": "野村e科技及野村高科技竄出黑馬 定時定額量價齊揚",
            "cover": "https:\/\/s.laoyaoba.com\/jwImg\/5199589303.9077425463750996827.17566.jpg",
            "news_type": 1,
            "published_time": 1710236693,
            "published_time_human": "2024-03-12T17:44:53+08:00"
        },
        {
            "id": "3cXeU8",
            "title": "为摆脱对NVIDIA的依赖,微软自研AI芯片及高速网卡",
            "sub_title": "为摆脱对NVIDIA的依赖,微软自研AI芯片及高速网卡",
            "cover": "https:\/\/s.laoyaoba.com\/jwImg\/1269682494837.0068571781863713.8323.jpg",
            "news_type": 1,
            "published_time": 1710228240,
            "published_time_human": "2024-03-12T15:24:00+08:00"
        },
        {
            "id": "3cXeWm",
            "title": "集微网消息,近日,在视听电子产业政策北京片区宣贯会上,北京市经济和信息化局相关负责人表示,北京是我国电子信息产业的重要起源地,形成了国内独具优势的产业基础、创新资源、市场空间和产业发展环境,已初步形成了以显示器件、智能视音频终端、影视内容供给、直播经济、动漫游戏等为代表的多元化产业发展格局,产业总体规模超过5000亿元。\r\n据悉,此次宣贯会是针对不久前工信部等部门发布的《关于加快推进视听电子产业高质量发展的指",
            "sub_title": "小小测试@&amp;小小测试@&amp;小小测试@&amp;小小小小测试@&amp;小小测试@&amp;小小测试@&amp;小小测试@&amp;小小小测试@&amp;小小测试@&amp;小小测试@&amp;小小测试@&amp;小小测试@&amp;小小测试@&amp;小小测试@&amp;小小测试@&amp;小小测试@&amp;小小测试@&amp;小小测试@&amp;小小测试@&amp;小小测试@&amp;小小测试@&amp;小小测试@&amp;小小测试@&amp;小小测试@&amp;小小测试@&amp;小小",
            "cover": "https:\/\/s.laoyaoba.com\/jwImg\/5199589303.9077425463750996827.17566.jpg",
            "news_type": 1,
            "published_time": 1710211680,
            "published_time_human": "2024-03-12T10:48:00+08:00"
        },
        {
            "id": "3cXeWU",
            "title": "第六届“芯力量”大赛将火热继续,此次由半导体投资联盟和爱集微联合打造的项目评选活动进入2024甲辰龙年,第六届“芯力量”大赛将火热继续!此次由半导体投资联盟和爱集微联合打造的项目评选活动,即将开展新一场精彩路演,继续为投资者与半导体多领域的优秀项目搭建舞台,挖掘更多国产“新星”,欢迎优秀项目报名参加!进入2024甲辰龙年,第六届“芯力量”大赛将火热继续!此次由半导体投资联盟和爱集微联合打造的项目评选活动,即将开展新一场精彩路演,继续为投资者与半导体多领域的优秀项目搭建舞台,挖掘更多国产“新星”,欢迎优秀项",
            "sub_title": "进入2024甲辰龙年,第六届“芯力量”大赛将火热继续!此次由半导体投资联盟和爱集微联合打造的项目评选活动,即将开展新一场精彩路演,继续为投资者与半导体多领域的优秀项目搭建舞台,挖掘更多国产“新星”,欢迎优秀项目报名参加!进入2024甲辰龙年,第六届“芯力量”大赛将火热继续!此次由半导体投资联盟和爱集微联合打造的项目评选活动,即将开展新一场精彩路演,继续为投资者与半导体第六届“芯力量”大赛将火热继续",
            "cover": "https:\/\/s.laoyaoba.com\/jwImg\/5199589303.9077425463750996827.17566.jpg",
            "news_type": 1,
            "published_time": 1709781960,
            "published_time_human": "2024-03-07T11:26:00+08:00"
        },
        {
            "id": "3cXeWB",
            "title": "小小新增视听栏目",
            "sub_title": "小小新增视听栏目",
            "cover": "https:\/\/s.laoyaoba.com\/jwImg\/439811794570.84174.jpg",
            "news_type": 3,
            "published_time": 1709776769,
            "published_time_human": "2024-03-07T09:59:29+08:00"
        }
    ]
}

Error

见errors字段

错误Response案例

{
    "status": 0,
    "errors": {
        "category_id": "分类ID不正确",
        "limit": "每次的显示条目应该是一个数字",
        "order": "排序方式不存在"
    }
}

Log

日期 作者 内容
2024/05/17 易初 创建

PremiumLatest 最新快讯

获取最新发布的文章列表数据

获取最新发布的文章列表数据

(用户关键词和category_ids暂定通过配置API获取)

GET: /api/news/latest

--header 'Bearer: {token}'

--header 'Content-Type: application/json'

HTTP Method

GET

HTTP Request

/api/news/latest

Request Parameters Query

Title Description Type Required Tips
limit 每次显示条目数 integer 取值范围为1-99, 默认8

Request Parameters Body

暂无

Response Data

Title Description Type Required Tips
status 状态:0成功 非0失败 integer
errors status非0时,返回错误信息,键值对 object
data 表单具体数据 array of objects 详细见 News

News

Title Description Type Tips
id 资讯ID string 注意是混淆后的字符ID
title 资讯标题 string
sub_title 资讯副标题 string
cover 封面图片URL string
news_type 资讯类型 integer 默认0无图,1-单图,2-多图,3-视频,4-音频,5-软文广告,6-图片广告
published_time 发布时间 integer Unix时间戳
published_time_human 人类可读的发布时间 string ISO 8601格式

Response Data Json

{
    "status": 0,
    "data": [
        {
            "id": "3cXeXw",
            "title": "测试文章添加专题链接",
            "sub_title": "测试文章添加专题链接",
            "cover": "https:\/\/s.laoyaoba.com\/jwImg\/1596740617663.161976149376761.0223.png",
            "news_type": 1,
            "published_time": 1716452106,
            "published_time_human": "2024-05-23T16:15:06+08:00"
        },
        {
            "id": "3cXeXe",
            "title": "两大认证“加持”!商汤与华为昇腾共筑人工智能产业新生态",
            "sub_title": "两大认证“加持”!商汤与华为昇腾共筑人工智能产业新生态",
            "cover": "https:\/\/s.laoyaoba.com\/jwImg\/5199589303.9077425463750996827.17566.jpg",
            "news_type": 1,
            "published_time": 1711096402,
            "published_time_human": "2024-03-22T16:33:22+08:00"
        },
        {
            "id": "3cXeXM",
            "title": "测试zsj1",
            "sub_title": "测试zsj1",
            "cover": "https:\/\/s.laoyaoba.com\/jwImg\/5199589303.9077425463750996827.17566.jpg",
            "news_type": 1,
            "published_time": 1710918540,
            "published_time_human": "2024-03-20T15:09:00+08:00"
        },
        {
            "id": "3cXeX4",
            "title": "野村e科技及野村高科技竄出黑馬 定時定額量價齊揚",
            "sub_title": "野村e科技及野村高科技竄出黑馬 定時定額量價齊揚",
            "cover": "https:\/\/s.laoyaoba.com\/jwImg\/5199589303.9077425463750996827.17566.jpg",
            "news_type": 1,
            "published_time": 1710236693,
            "published_time_human": "2024-03-12T17:44:53+08:00"
        },
        {
            "id": "3cXeU8",
            "title": "为摆脱对NVIDIA的依赖,微软自研AI芯片及高速网卡",
            "sub_title": "为摆脱对NVIDIA的依赖,微软自研AI芯片及高速网卡",
            "cover": "https:\/\/s.laoyaoba.com\/jwImg\/1269682494837.0068571781863713.8323.jpg",
            "news_type": 1,
            "published_time": 1710228240,
            "published_time_human": "2024-03-12T15:24:00+08:00"
        },
        {
            "id": "3cXeWm",
            "title": "集微网消息,近日,在视听电子产业政策北京片区宣贯会上,北京市经济和信息化局相关负责人表示,北京是我国电子信息产业的重要起源地,形成了国内独具优势的产业基础、创新资源、市场空间和产业发展环境,已初步形成了以显示器件、智能视音频终端、影视内容供给、直播经济、动漫游戏等为代表的多元化产业发展格局,产业总体规模超过5000亿元。\r\n据悉,此次宣贯会是针对不久前工信部等部门发布的《关于加快推进视听电子产业高质量发展的指",
            "sub_title": "小小测试@&amp;小小测试@&amp;小小测试@&amp;小小小小测试@&amp;小小测试@&amp;小小测试@&amp;小小测试@&amp;小小小测试@&amp;小小测试@&amp;小小测试@&amp;小小测试@&amp;小小测试@&amp;小小测试@&amp;小小测试@&amp;小小测试@&amp;小小测试@&amp;小小测试@&amp;小小测试@&amp;小小测试@&amp;小小测试@&amp;小小测试@&amp;小小测试@&amp;小小测试@&amp;小小测试@&amp;小小测试@&amp;小小",
            "cover": "https:\/\/s.laoyaoba.com\/jwImg\/5199589303.9077425463750996827.17566.jpg",
            "news_type": 1,
            "published_time": 1710211680,
            "published_time_human": "2024-03-12T10:48:00+08:00"
        },
        {
            "id": "3cXeWU",
            "title": "第六届“芯力量”大赛将火热继续,此次由半导体投资联盟和爱集微联合打造的项目评选活动进入2024甲辰龙年,第六届“芯力量”大赛将火热继续!此次由半导体投资联盟和爱集微联合打造的项目评选活动,即将开展新一场精彩路演,继续为投资者与半导体多领域的优秀项目搭建舞台,挖掘更多国产“新星”,欢迎优秀项目报名参加!进入2024甲辰龙年,第六届“芯力量”大赛将火热继续!此次由半导体投资联盟和爱集微联合打造的项目评选活动,即将开展新一场精彩路演,继续为投资者与半导体多领域的优秀项目搭建舞台,挖掘更多国产“新星”,欢迎优秀项",
            "sub_title": "进入2024甲辰龙年,第六届“芯力量”大赛将火热继续!此次由半导体投资联盟和爱集微联合打造的项目评选活动,即将开展新一场精彩路演,继续为投资者与半导体多领域的优秀项目搭建舞台,挖掘更多国产“新星”,欢迎优秀项目报名参加!进入2024甲辰龙年,第六届“芯力量”大赛将火热继续!此次由半导体投资联盟和爱集微联合打造的项目评选活动,即将开展新一场精彩路演,继续为投资者与半导体第六届“芯力量”大赛将火热继续",
            "cover": "https:\/\/s.laoyaoba.com\/jwImg\/5199589303.9077425463750996827.17566.jpg",
            "news_type": 1,
            "published_time": 1709781960,
            "published_time_human": "2024-03-07T11:26:00+08:00"
        },
        {
            "id": "3cXeWB",
            "title": "小小新增视听栏目",
            "sub_title": "小小新增视听栏目",
            "cover": "https:\/\/s.laoyaoba.com\/jwImg\/439811794570.84174.jpg",
            "news_type": 3,
            "published_time": 1709776769,
            "published_time_human": "2024-03-07T09:59:29+08:00"
        }
    ]
}

Error

见errors字段

错误Response案例

{
    "status": 0,
    "errors": {
        "category_id": "分类ID不正确",
        "limit": "每次的显示条目应该是一个数字",
        "order": "排序方式不存在"
    }
}

Log

日期 作者 内容
2024/05/28 易初 创建

PremiumDetail 精选文章详情

获取文章的的详情信息

注意ID为混淆后的字符串

GET: /api/news/detail/{id}

--header 'Bearer: {token}'

--header 'Content-Type: application/json'

HTTP Method

GET

HTTP Request

/api/news/detail/{id}

Request Parameters Query

暂无

Request Parameters Body

暂无

Response Data

Title Description Type Required Tips
status 状态:0成功 非0失败 integer
errors status非0时,返回错误信息,键值对 object
data 表单具体数据 array of objects 详细见 News

News

Title Description Type Required Tips
news_id 文章ID integer
title 标题 string
sub_title 副标题 string
cover 封面图片 string URL
intro 简介 string
view_num 浏览次数 integer
vip_view_num VIP浏览次数 integer
news_source 新闻来源ID integer
name_source 新闻来源名称 string
real_source 真实来源地址 string
info_source 真实来源名称 string
publish_time 发布时间 integer 时间戳
publish_time_human 发布时间(人类) string ISO 8601 格式
tag_list 标签列表 array 每个元素为string
category 分类 object 见 Category
sub_category 子分类 object 见 Category
author 作者信息 object 见 Author
news_attachments 附件列表 array 每个元素为string,表示URL
content_detail 内容详情 array 每个元素为string
attachement 附件信息 object 见 Attachment

Category

Title Description Type Required Tips
id 分类ID integer
name 分类名称 string

Author

Title Description Type Required Tips
id 作者ID integer
nickname 昵称 string
avatar 头像 string URL
intro 简介 string

Attachment

Title Description Type Required Tips
filename 文件名 string
extension 文件扩展名 string
size 文件大小 integer 单位字节
created_at 创建时间 integer 时间戳

Response Data Json

{
    "status": 0,
    "data": {
        "news_id": 868849,
        "title": "第六届“芯力量”大赛将火热继续!",
        "sub_title": null,
        "cover": "https:\/\/s.laoyaoba.com\/jwImg\/5199589303.9077425463750996827.17566.jpg",
        "intro": "第六届“芯力量”大赛将火热继续,此次由半导体投资联盟和爱集微联合打造的项目评选活动进入2024甲辰龙年,第六届“芯力量”大赛将火热继续!此次由半导体投资联盟和爱集微联合打造的项目评选活动,即将开展新一场精彩路演,继续为投资者与半导体多领域的优秀项目搭建舞台,挖掘更多国产“新星”,欢迎优秀项目报名参加!进入2024甲辰龙年,第六届“芯力量”大赛将火热继续!此次由半导体投资联盟和爱集微联合打造的项目评选活动,即将开展新一场精彩路演,继续为投资者与半导体多领域的优秀项目搭建舞台,挖掘更多国产“新星”,",
        "view_num": 1874,
        "vip_view_num": 483,
        "news_source": 1,
        "name_source": "",
        "real_source": "https:\/\/www.ernst.senate.gov\/news\/press-releases\/ernst-hassan-crack-down-on-iran-funding-crime-in-us",
        "info_source": "Joni Ernst",
        "publish_time": 1709781960,
        "publish_time_human": "2024-03-07T11:26:00+08:00",
        "tag_list": [
            "ces",
            "获得曝光度"
        ],
        "category": {
            "id": 417,
            "name": "资讯"
        },
        "sub_category": null,
        "author": {
            "id": 1,
            "nickname": "爱集微",
            "avatar": "https:\/\/s.laoyaoba.com\/jwImg\/avatar\/2020\/02\/28\/15828720842371blob",
            "intro": "作者简介"
        },
        "news_attachments": [
            "https:\/\/s.laoyaoba.com\/jwImg\/314071146872.5386.png",
            "https:\/\/s.laoyaoba.com\/jwImg\/527377832832.9421.png"
        ],
        "content_detail": [
            "&lt;p&gt;&lt;br\/&gt;&lt;\/p&gt;&lt;p&gt;&lt;img src=&#039;https:\/\/s.laoyaoba.com\/jwImg\/314071146872.5386.png&#039;&gt;&lt;\/p&gt;&lt;p&gt;&lt;br\/&gt;&lt;\/p&gt;&lt;p&gt;集微网消息,进入2024甲辰龙年,第六届“芯力量”大赛将火热继续!此次由半导体投资联盟和爱集微联合打造的项目评选活动,&lt;strong&gt;即将开展新一场精彩路演,继续为投资者与半导体多领域的优秀项目搭建舞台,挖掘更多国产“新星”,欢迎优秀项目报名参加&lt;\/strong&gt;!&lt;\/p&gt;&lt;p&gt;&lt;a href=&quot;https:\/\/www.laoyaoba.com\/questionnaire?id=32&quot;&gt;&lt;strong&gt;点击报名参赛&lt;\/strong&gt;&lt;\/a&gt;&lt;\/p&gt;&lt;p&gt;2023年7月至2024年1月,第六届“芯力量”已举办8场路演,近50个项目参加。半导体设备、材料、IC设计等领域的企业各显身手,凭借精彩的展示,吸引了400多名评委进行打分及对接。除此之外,爱集微也深入中科大、北航、复旦、上大以及合肥科大硅谷,协同15个项目举行“科技成果转化”路演,国内众多知名投资机构均对项目表达了对接意向。&lt;\/p&gt;&lt;p&gt;“芯力量”大赛自2019年开始,已连续5年成为国内半导体行业最具影响的创业大赛与融资平台。凭借着聚焦行业卡脖子\/热门领域、评审团阵容豪华、融资效率高等四大优势,“芯力量”&lt;strong&gt;已累计吸引600+优秀企业参赛,覆盖IP、EDA、设计、设备、材料等全产业链&lt;\/strong&gt;。往届大赛中,顺利融资的项目包括黑芝麻智能、沐曦集成、华封科技、开元通信、杭州众硅、牛芯半导体等多家“IC独角兽”。此外,芯力量获奖企业合肥恒烁已在科创板上市,博达微并入概伦电子后上市,深圳得一微电子等也启动上市流程。&lt;\/p&gt;&lt;p&gt;本届“芯力量”大赛依旧采取线上线下相结合的形式,分为初赛、决赛两部分,爱集微以及半导体投资联盟,将邀请近500家投资专家担任评审,涵盖业界知名的国有机构、产业机构和专业投资机构等。&lt;\/p&gt;&lt;p&gt;大赛新增两大维度升级:其一关注【&lt;strong&gt;硬科技&lt;\/strong&gt;】热点项目,关注所有硬科技相关的领域,从新能源、AI、半导体、智能制造、汽车电子等各领域,发掘热点项目,丰富项目领域及赛道;其二走进高校,增加【&lt;strong&gt;科技成果转化&lt;\/strong&gt;】路演。快速链接科研成果与资本,让更多高校创新性成果走向市场,促进创新链、产业链、资金链、人才链的四链融合。&lt;\/p&gt;&lt;p&gt;中国半导体行业近年来经历诸多困难与挑战,但自主可控、自给自足方面稳步提升,在制作、设备、材料、EDA、封测等环节均取得突破。“芯力量”大赛5年来持续为创新企业与投资机构搭建高效对接平台,服务中国半导体,欢迎有意向的项目、企业与投资人、机构前来报名,共同助力和见证中国芯力量的崛起!&lt;\/p&gt;&lt;p&gt;报名请联系:徐老师:15021761190(同微信)&lt;\/p&gt;&lt;h2&gt;&lt;strong&gt;一、大赛赛制&lt;\/strong&gt;&lt;\/h2&gt;&lt;p&gt;“芯力量”大赛采取线上线下相结合形式,分为初赛和决赛两部分:&lt;\/p&gt;&lt;p&gt;初赛:预计举办20多场闭门路演,每场3-5个项目参与路演;&lt;\/p&gt;&lt;p&gt;参与对象:项目方+评审团(半导体投资联盟会员)+点评嘉宾(联盟会员投资人\/行业专家)&lt;\/p&gt;&lt;p&gt;决赛:决赛于集微峰会现场闭门路演,由百家投资机构代表,300+评审团嘉宾进行现场评选,并对获奖项目进行颁奖,预计将会有20个左右项目突出重围,进入决赛。&lt;\/p&gt;&lt;p&gt;参与对象:项目方(入围决赛项目)+评审团(半导体投资联盟会员)+评委会(百家知名投资机构代表\/行业专家)&lt;\/p&gt;&lt;p&gt;决赛项目奖项:&lt;\/p&gt;&lt;p&gt;1.【最具投资价值奖】由评委会打分评选产生&lt;\/p&gt;&lt;p&gt;2.【投资机构推荐奖】由现场投资机构票选产生&lt;\/p&gt;&lt;h2&gt;&lt;strong&gt;二、参赛权益&lt;\/strong&gt;&lt;\/h2&gt;&lt;p&gt;企业项目参赛权益&lt;\/p&gt;&lt;p&gt;1.项目参与路演,获得曝光度&lt;\/p&gt;&lt;p&gt;2.受邀企业可获得路演联合报道文章1篇,同时可免费在爱集微平台发布融资新闻稿件1篇&lt;\/p&gt;&lt;p&gt;3.受邀参加集微峰会,与1000+半导体企业,500+顶级投资机构近距离沟通&lt;\/p&gt;&lt;p&gt;4.爱集微对接投资机构资源&lt;\/p&gt;&lt;p&gt;投资机构推荐5个以上参赛项目的权益&lt;\/p&gt;&lt;p&gt;1.可一次性接触大量优质项目&lt;\/p&gt;&lt;p&gt;2.可免费在爱集微平台发布宣传稿件1篇&lt;\/p&gt;&lt;p&gt;3.可优先锁定厦门集微半导体峰会参会名额&lt;\/p&gt;&lt;h2&gt;&lt;strong&gt;三、大赛流程&lt;\/strong&gt;&lt;\/h2&gt;&lt;p&gt;2023年6月-2023年7月 启动项目招募&lt;\/p&gt;&lt;p&gt;2023年7月-2024年5月 初赛&lt;\/p&gt;&lt;p&gt;2024年5月-2024年6月 项目评选&lt;\/p&gt;&lt;p&gt;2024年集微峰会 决赛+颁奖&lt;\/p&gt;&lt;p&gt;欢迎有意向的项目企业报名参赛,在“芯力量”大赛平台和资本的强大助力下,让您的芯事业再上一级。&lt;\/p&gt;&lt;p&gt;同时欢迎投资人和投资机构前来报名加入评审团及推荐项目参赛,抢先对接优质项目,共同助力和见证中国芯势力的崛起!&lt;\/p&gt;&lt;p&gt;报名请联系:徐老师:15021761190(同微信)&lt;\/p&gt;&lt;p&gt;也可扫描二维码提交报名,我们会尽快联系您,期待与您同行。&lt;\/p&gt;&lt;p&gt;&lt;br\/&gt;&lt;\/p&gt;&lt;p&gt;&lt;img src=&#039;https:\/\/s.laoyaoba.com\/jwImg\/527377832832.9421.png&#039;&gt;&lt;\/p&gt;&lt;p&gt;&lt;br\/&gt;&lt;\/p&gt;"
        ],
        "attachement": {
            "filename": "安全评估报告(签字+盖章)",
            "extension": "pdf",
            "size": 1240542,
            "created_at": 1709781989
        }
    }
}

Error

见errors字段

code default message tips
4000100 资讯不见了 文章不存在或者ID解码失败

错误Response案例 (文章的不存在)

{
    "status": 4000100,
    "error": "资讯不见了"
}

错误Response案例 (文章ID异常) 可以与上方的错误一起进行错误处理

{
    "status": 4000100,
    "error": "文章不存在"
}

Log

日期 作者 内容
2024/05/18 易初 创建

PremiumReport 精选文章报告

获取带有附件的精选文章的报告

注意ID为混淆后的字符串, 此外还需要一个签名sign参数,sign=base64_encode(unix_timestamp+news_id)

GET: /api/news/report/{id}?sign=xxxx

--header 'Bearer: {token}'

--header 'Content-Type: application/json'

HTTP Method

GET

HTTP Request

/api/news/report/{id}

Request Parameters Query

Title Description Type Required Tips
sign 签名 string base64_encode(unix_timestamp+news_id)

Request Parameters Body

暂无

Response Data

Title Description Type Required Tips
status 状态:0成功 非0失败 integer
errors status非0时,返回错误信息,键值对 object
data 表单具体数据 array of objects 详细见 PDF

PDF

Title Description Type Required Tips
url 文件地址 string
created_at 创建时间版本 integer 缓存时间为一天,这里是最新的版本的时间

Response Data Json

{
    "status": 0,
    "data": {
        "url": "https:\/\/s.laoyaoba.com\/jiWei\/waterPdf\/1716862529188.pdf",
        "created_at": "2024-05-28T10:15:27+08:00"
    }
}

Error

见errors字段

code default message tips
4000101 暂时无法查看报告 一般sign异常
4000102 加载PDF失败 水印异常
4000103 文章的附件不存在 文章没有附件

错误Response案例 (文章的附件不存在)

{
    "status": 4000103,
    "error": "文章的附件不存在"
}

Log

日期 作者 内容
2024/05/28 易初 创建

Report API

报告有关的API

ReportSearch 图文报告列表

获取报告的列表数据,使用after_token来加载更多,可以通过keyword字段来进行标题的模糊搜索

HTTP Request

GET /api/report/search

Response Body :

{
  "status": true,
  "data": {
    "current_page": 1,
    "last_page": 55,
    "per_page": 1,
    "total": 55,
    "list": [
      {
        "id": "5dR531",
        "title": "phz我的测试报告",
        "overview": "phz我的测试报告phz我的测试报告phz我的测试报告phz我的测试报告\nphz我的测试报告",
        "cover": "https://s.laoyaoba.com/uploads/a3ef21214845319258f51b881a6897b1.jpeg",
        "avatar": "https://s.laoyaoba.com/jwImg/category/2019/07/23/15638590636274.jpg?imageView2/2/w/90/h/90",
        "publish_time": 1703058219
      }
    ]
  }
}

Request Parameters

Parameter Description Type Required Explain
source 请求来源 string
page 页码 int 默认:1
limit 个数 int 默认:20
keyword 搜索关键字 string 关键字需为字符串, 可用来搜索标题,简介

Response Data

Title Description Type Required Tips
status 状态:0成功 非0失败 integer
errors status非0时,返回错误信息,键值对 object
data 表单具体数据 array of objects

Data

Title Description Type Tips
current_page 当前页码 int 当前数据所在的页码
last_page 最后一页的页码 int 数据的最后一页
per_page 每页数据量 int 每页显示的数据条数
total 数据总量 int 总共的数据条数
list 数据列表 array Report

Report

Title Description Type Tips
id 数据项的唯一标识 string 每个数据项的唯一 ID 注意是混淆后的字符ID
title 报告标题 string 每个报告的标题
overview 报告概述 string 报告的简要概述
cover 报告封面图片的 URL string 报告封面的图片链接
avatar 报告作者头像的 URL string 报告作者头像的图片链接
publish_time 报告发布时间(时间戳) int 报告发布的时间,时间戳格式

Log

日期 作者 内容
2024/05/23 朱思嘉 新增

ReportSearch 图文报告内容

获取报告url (60s 有效期)

HTTP Request

GET /api/report/{report_id}/url

Response Body :

{
  "status": 0,
  "data": {
    "url": "http://s.laoyaoba.com/uploads/1ed184186da717d1518edffe60f7ee87.pdf?e=1686706329&token=99vFAJy1wVeXiJdSV2BB-VHqOhgKrdRZydXfUv58:jrSU30F12jSckpVJix2YZyqPSsg="
  }
}

Request Parameters

Parameter Description Type Required Explain
source 请求来源 string

Response Data

Title Description Type Required Tips
status 状态:0成功 非0失败 integer
errors status非0时,返回错误信息,键值对 object
data 表单具体数据 array of objects Report

Report

Title Description Type Tips
url 报告地址 string

Log

日期 作者 内容
2024/05/23 朱思嘉 新增

User Api

用户相关Api

UserBaseInfo 用户基础信息

通过中台登陆服务得到的Token兑换用户基础信息 包含(菜单、Logo、Banner等)返回信息存在缓存 时效为30m 用户设置logo banner 权限等信息时 缓存会自动清理

HTTP Request

GET /api/user/base

Response Body :

{
  "status": true,
  "data": {
    "menus":[{
      "id": 8,
      "name": "舆情监测",
      "router": "jwopinion",
      "router_code": "jwopinion",
      "type": 3,
      "extra_info": "",
      "display_in_homepage": 1,
      "display_in_search": 1,
      "display_in_preference": 1,
      "tag": [],
      "children": [{
        "id": 9,
        "name": "行业热点",
        "router": "jwopinion/hot",
        "router_code": "jwopinion_hot",
        "type": 3,
        "extra_info": "",
        "display_in_homepage": 1,
        "display_in_search": 1,
        "display_in_preference": 1,
        "tag": [],
        "children": []
      },
        {
          "id": 10,
          "name": "行业关注",
          "router": "jwopinion/follow",
          "router_code": "jwopinion_follow",
          "type": 3,
          "extra_info": "",
          "display_in_homepage": 1,
          "display_in_search": 1,
          "display_in_preference": 1,
          "tag": [],
          "children": []
        }
      ]
    },
      {
        "id": 3,
        "name": "海外报道",
        "router": "overseas",
        "router_code": "overseas",
        "type": 1,
        "extra_info": "410,522,441",
        "display_in_homepage": 1,
        "display_in_search": 1,
        "display_in_preference": 1,
        "tag": [],
        "children": [{
          "id": 4,
          "name": "中美热点",
          "router": "overseas/hot",
          "router_code": "overseas_hot",
          "type": 1,
          "extra_info": "410",
          "display_in_homepage": 1,
          "display_in_search": 1,
          "display_in_preference": 1,
          "tag": [],
          "children": []
        },
          {
            "id": 5,
            "name": "前线报道",
            "router": "overseas/frontline",
            "router_code": "overseas_frontline",
            "type": 1,
            "extra_info": "522,411",
            "display_in_homepage": 1,
            "display_in_search": 1,
            "display_in_preference": 1,
            "tag": [],
            "children": [{
              "id": 6,
              "name": "国际资讯",
              "router": "frontline/internation",
              "router_code": "frontline_internation",
              "type": 1,
              "extra_info": "522",
              "display_in_homepage": 1,
              "display_in_search": 1,
              "display_in_preference": 1,
              "tag": [],
              "children": []
            },
              {
                "id": 7,
                "name": "重大项目",
                "router": "frontline/project",
                "router_code": "frontline_project",
                "type": 1,
                "extra_info": "441",
                "display_in_homepage": 1,
                "display_in_search": 1,
                "display_in_preference": 1,
                "tag": [],
                "children": []
              }
            ]
          }
        ][index.html.md](..%2Findex.html.md)
      },
      {
        "id": 11,
        "name": "政策指引",
        "router": "policy",
        "router_code": "policy",
        "type": 1,
        "extra_info": "435,436,437",
        "display_in_homepage": 1,
        "display_in_search": 1,
        "display_in_preference": 1,
        "tag": [],
        "children": [{
          "id": 12,
          "name": "政策申报",
          "router": "policy/declare",
          "router_code": "policy_declare",
          "type": 1,
          "extra_info": "437",
          "display_in_homepage": 1,
          "display_in_search": 1,
          "display_in_preference": 1,
          "tag": [],
          "children": []
        },
          {
            "id": 13,
            "name": "项目专刊",
            "router": "policy/project",
            "router_code": "policy_project",
            "type": 1,
            "extra_info": "435",
            "display_in_homepage": 1,
            "display_in_search": 1,
            "display_in_preference": 1,
            "tag": [],
            "children": []
          },
          {
            "id": 14,
            "name": "政策专刊",
            "router": "policy/journal",
            "router_code": "policy_journal",
            "type": 1,
            "extra_info": "436",
            "display_in_homepage": 1,
            "display_in_search": 1,
            "display_in_preference": 1,
            "tag": [],
            "children": []
          }
        ]
      },
      {
        "id": 15,
        "name": "集微咨询",
        "router": "consult",
        "router_code": "consult",
        "type": 2,
        "extra_info": "429,431,362,438,439",
        "display_in_homepage": 1,
        "display_in_search": 1,
        "display_in_preference": 1,
        "tag": [],
        "children": [{
          "id": 16,
          "name": "集微报告",
          "router": "report",
          "router_code": "report",
          "type": 2,
          "extra_info": "",
          "display_in_homepage": 1,
          "display_in_search": 1,
          "display_in_preference": 1,
          "tag": [],
          "children": []
        },
          {
            "id": 17,
            "name": "集微咨询报告",
            "router": "consult/report",
            "router_code": "consult_report",
            "type": 1,
            "extra_info": "429",
            "display_in_homepage": 1,
            "display_in_search": 1,
            "display_in_preference": 1,
            "tag": [],
            "children": []
          },
          {
            "id": 18,
            "name": "并购报告",
            "router": "consult/merge",
            "router_code": "consult_merge",
            "type": 1,
            "extra_info": "431",
            "display_in_homepage": 1,
            "display_in_search": 1,
            "display_in_preference": 1,
            "tag": [],
            "children": []
          },
          {
            "id": 19,
            "name": "行业周刊",
            "router": "consult/industry",
            "router_code": "consult_industry",
            "type": 1,
            "extra_info": "362",
            "display_in_homepage": 1,
            "display_in_search": 1,
            "display_in_preference": 1,
            "tag": [],
            "children": []
          },
          {
            "id": 20,
            "name": "存储市场报告",
            "router": "consult/store",
            "router_code": "consult_store",
            "type": 1,
            "extra_info": "439",
            "display_in_homepage": 1,
            "display_in_search": 1,
            "display_in_preference": 1,
            "tag": [],
            "children": []
          },
          {
            "id": 21,
            "name": "EDA市场报告",
            "router": "consult/eda",
            "router_code": "consult_eda",
            "type": 1,
            "extra_info": "439",
            "display_in_homepage": 1,
            "display_in_search": 1,
            "display_in_preference": 1,
            "tag": [],
            "children": []
          }
        ]
      },
      {
        "id": 22,
        "name": "行业报告",
        "router": "industry",
        "router_code": "industry",
        "type": 0,
        "extra_info": "440",
        "display_in_homepage": 1,
        "display_in_search": 1,
        "display_in_preference": 1,
        "tag": [],
        "children": [{
          "id": 23,
          "name": "外部报告",
          "router": "industry/external",
          "router_code": "industry_external",
          "type": 1,
          "extra_info": "440",
          "display_in_homepage": 1,
          "display_in_search": 1,
          "display_in_preference": 1,
          "tag": [],
          "children": []
        },
          {
            "id": 24,
            "name": "机构报告",
            "router": "industry/institution",
            "router_code": "industry_institution",
            "type": 3,
            "extra_info": "",
            "display_in_homepage": 1,
            "display_in_search": 1,
            "display_in_preference": 1,
            "tag": [],
            "children": []
          },
          {
            "id": 25,
            "name": "Gartner文档",
            "router": "industry_gartner",
            "router_code": "industry_institution",
            "type": 3,
            "extra_info": "",
            "display_in_homepage": 1,
            "display_in_search": 1,
            "display_in_preference": 1,
            "tag": [],
            "children": []
          }
        ]
      },
      {
        "id": 26,
        "name": "贸易管制",
        "router": "trade",
        "router_code": "trade",
        "type": 3,
        "extra_info": "",
        "display_in_homepage": 1,
        "display_in_search": 1,
        "display_in_preference": 1,
        "tag": [],
        "children": []
      },
      {
        "id": 27,
        "name": "企业动态",
        "router": "firm/dynamic",
        "router_code": "firm_dynamic",
        "type": 3,
        "extra_info": "",
        "display_in_homepage": 1,
        "display_in_search": 1,
        "display_in_preference": 1,
        "tag": [],
        "children": [{
          "id": 28,
          "name": "企业查询",
          "router": "firm/find",
          "router_code": "firm_find",
          "type": 3,
          "extra_info": "",
          "display_in_homepage": 1,
          "display_in_search": 1,
          "display_in_preference": 1,
          "tag": [],
          "children": []
        }, {
          "id": 29,
          "name": "企业信息变动",
          "router": "firm/change",
          "router_code": "firm_change",
          "type": 3,
          "extra_info": "",
          "display_in_homepage": 1,
          "display_in_search": 1,
          "display_in_preference": 1,
          "tag": [],
          "children": []
        }]
      },
      {
        "id": 30,
        "name": "优质项目",
        "router": "topproject",
        "router_code": "top_project",
        "type": 3,
        "extra_info": "",
        "display_in_homepage": 1,
        "display_in_search": 1,
        "display_in_preference": 1,
        "tag": [],
        "children": [{
          "id": 1,
          "name": "企业库",
          "router": "company",
          "router_code": "company",
          "type": 3,
          "extra_info": "",
          "display_in_homepage": 1,
          "display_in_search": 1,
          "display_in_preference": 1,
          "tag": [],
          "children": []
        },
          {
            "id": 2,
            "name": "项目库",
            "router": "project",
            "router_code": "project",
            "type": 3,
            "extra_info": "",
            "display_in_homepage": 1,
            "display_in_search": 1,
            "display_in_preference": 1,
            "tag": [],
            "children": []
          }
        ]
      },
      {
        "id": 31,
        "name": "AI大模型",
        "router": "ai",
        "router_code": "ai",
        "type": 4,
        "extra_info": "https://ai.laoyaoba.com/chat/",
        "display_in_homepage": 1,
        "display_in_search": 1,
        "display_in_preference": 1,
        "tag": [],
        "children": []
      },
      {
        "id": 32,
        "name": "设置",
        "router": "settings",
        "router_code": "settings",
        "type": 5,
        "extra_info": "",
        "display_in_homepage": 1,
        "display_in_search": 1,
        "display_in_preference": 1,
        "tag": [],
        "children": []
      }
    ],
    "banner":[
      {
        "image_uniq_key": "asd123",
        "img_src": "https://s.laoyaoba.com/image/1.jpg",
        "href": "",
        "extra_info": "system_banner"
      },
      {
        "image_uniq_key": "qwe456",
        "img_src": "https://s.laoyaoba.com/./2.jpg",
        "href": "www.laoyaoba.com",
        "extra_info": "system_banner"
      }
    ],
    "logo": {
      "image_uniq_key": "3f235848-fdb7-4e5f-b23c-eb9e3749e203",
      "img_src": "logo.jpg"
    }
  }
}

Request Parameters

Parameter Description Type Required Explain
force 是否强制刷新用户基础信息 int 默认:0
format 返回特定格式的数据 string 允许范围:menus banner logo

Response Data

Title Description Type Required Tips
status 状态:0成功 非0失败 integer
errors status非0时,返回错误信息,键值对 object
data 表单具体数据 array of objects Report

Data

Title Description Type Required Tips
menus 菜单信息 array Yes
banner 菜单名称 array Yes
logo 路由路径 object Yes

Menus

Title Description Type Required Tips
id 菜单ID integer Yes 菜单唯一ID 可用于路由地址等
name 菜单名称 string Yes
router 路由路径 string Yes
router_code 路由唯一代码 string Yes
tag 标签 array No 新闻偏好Tag
type 类型 array No 1-资讯栏目 2-报告栏目 3-模块栏目 4-外部链接栏目 5-设置栏目
extra_info 扩展信息 array No 类型扩展项 type=1 栏目ID type=2 请求报告相关业务 3-请求中台相关业务 4-跳转外部地址
display_in_homepage 扩展信息 bool Yes 是否展示首页项
display_in_search 扩展信息 bool Yes 是否展示搜索项
display_in_preference 扩展信息 bool Yes 是否可配置偏好项
children 子菜单 array of objects Yes

Banner

Title Description Type Required Tips
image_uniq_key 图片的uuid string
img_src 图片的链接 string
link 跳转链接 string
extra_info 图片信息描述 string

Logo

Title Description Type Required Tips
image_uniq_key 图片的uuid string
img_src 图片链接 string

Log

日期 作者 内容
2024/05/29 朱思嘉 创建

Setting API

设置有关的API

更新用户的logo图像

logo的更新

PUT: /api/settings/logo

--header 'Bearer: {token}'

--header 'Content-Type: application/json'

Request Data Json

{
  "image_uniq_key": "3f235848-fdb7-4e5f-b23c-eb9e3749e203",
  "img_src": "logo.jpg"
}

HTTP Method

PUT

HTTP Request

/api/settings/logo

Request Parameters Query

Request Parameters Body

Title Description Type Required Tips
image_uniq_key 图片的uuid string
img_src 图片链接 string

Response Data

Title Description Type Required Tips
status 状态:0成功 非0失败 integer
errors status非0时,返回错误信息,键值对 object

Response Data Json

{
  "status": 0
}

Error

code default message tips
4000102 图片的uuid错误 长度或格式出错
4000103 json编码错误

Log

日期 作者 内容
2024/05/26 dongrz 创建

获取用户当前的logo信息

logo的信息的获取

GET: /api/settings/logo

--header 'Bearer: {token}'

--header 'Content-Type: application/json'

Request Data Json

HTTP Method

GET

HTTP Request

/api/settings/logo

Request Parameters Query

Request Parameters Body

Response Data

Title Description Type Required Tips
status 状态:0成功 非0失败 integer
errors status非0时,返回错误信息,键值对 object
data 表单的具体信息 object

data

Title Description Type Required Tips
image_uniq_key 图片的uuid string
img_src 图片链接 string

Response Data Json

{
  "status": 0,
  "data": {
    "image_uniq_key": "3f235848-fdb7-4e5f-b23c-eb9e3749e203",
    "img_src": "logo.jpg"
  }
}

Error

code default message tips
4000104 返回数据为空 未上传logo

Log

日期 作者 内容
2024/05/26 dongrz 创建

UpdateBanner 更新banner

上传banner各个位置的图片,可以上传指定位置的图片

banner图片的更新

PUT: /api/settings/banner

--header 'Bearer: {token}'

--header 'Content-Type: application/json'

Request Data Json

{
  "banners": [
    {
      "location": 1,
      "image_uniq_key": "3f235848-fdb7-4e5f-b23c-eb9e3749e203",
      "img_src": "image.jpg",
      "extra_info": "banner图片1"
    },
    {
      "location": 2,
      "image_uniq_key": "3f235848-fdb7-4e5f-b23c-eb9e3749e203",
      "img_src": "image.jpg",
      "extra_info": "banner图片2"
    },
    {
      "location": 3,
      "image_uniq_key": "3f235848-fdb7-4e5f-b23c-eb9e3749e203",
      "img_src": "image.jpg",
      "extra_info": "banner图片3"
    },
    {
      "location": 4,
      "image_uniq_key": "3f235848-fdb7-4e5f-b23c-eb9e3749e203",
      "img_src": "image.jpg",
      "extra_info": "banner图片4"
    }
  ]
}

HTTP Method

PUT

HTTP Request

/api/settings/banner

Request Parameters Query

Request Parameters Body

Title Description Type Required Tips
banners Banner集合 array banner定义

banner

Title Description Type Required Tips
location 位置 integer
image_uniq_key 图片的uuid string
img_src 图片链接 string
href banner跳转地址 string
extra_info 图片信息描述 string

Response Data

Title Description Type Required Tips
status 状态:0成功 非0失败 integer
errors status非0时,返回错误信息,键值对 object

Response Data Json

{
  "status": 0
}

Error

code default message tips
4000100 图片位置出错 超出1-4的范围

Log

日期 作者 内容
2024/05/26 dongrz 创建

GetBanner 获取banner的信息

获取所有的banner图片的信息

banner图片的信息获取

GET: /api/settings/banner

--header 'Bearer: {token}'

--header 'Content-Type: application/json'

Request Data Json

HTTP Method

GET

HTTP Request

/api/settings/banner

Request Parameters Query

Request Parameters Body

Response Data

Title Description Type Required Tips
status 状态:0成功 非0失败 integer
errors status非0时,返回错误信息,键值对 object
data 表单的具体信息 object

data

Title Description Type Required Tips
location 位置 integer
image_uniq_key 图片的uuid string
img_src 图片链接 string
href banner跳转地址 string
extra_info 图片信息描述 string

Response Data Json

{
  "status": 0,
  "data": [
    {
      "location": 1,
      "image_uniq_key": "3f235848-fdb7-4e5f-b23c-eb9e3749e203",
      "img_src": "image.jpg",
      "extra_info": "banner图片1"
    },
    {
      "location": 2,
      "image_uniq_key": "3f235848-fdb7-4e5f-b23c-eb9e3749e203",
      "img_src": "image.jpg",
      "extra_info": "banner图片2"
    },
    {
      "location": 3,
      "image_uniq_key": "3f235848-fdb7-4e5f-b23c-eb9e3749e203",
      "img_src": "image.jpg",
      "extra_info": "banner图片3"
    },
    {
      "location": 4,
      "image_uniq_key": "3f235848-fdb7-4e5f-b23c-eb9e3749e203",
      "img_src": "image.jpg",
      "extra_info": "banner图片4"
    }
  ]
}

Error

code default message tips
4000104 返回数据为空 未上传banner

Log

日期 作者 内容
2024/05/26 dongrz 创建

UpdateNewsPreference 更新新闻的偏好设置

设置不同的菜单下不同的偏好选项

新闻偏好的设置

PUT: /api/settings/news/preference

--header 'Bearer: {token}'

--header 'Content-Type: application/json'

Request Data Json

{
  "overseas": [
    "日本",
    "韩国"
  ],
  "policy": [
    "北京市"
  ]
}

HTTP Method

PUT

HTTP Request

/api/settings/news/preference

Request Parameters Query

Request Parameters Body

Title Description Type Required Tips
{router_code_name} 菜单详情 array 选中的 tags list

Response Data

Title Description Type Required Tips
status 状态:0成功 非0失败 integer
errors status非0时,返回错误信息,键值对 object
data 表单的具体信息 object

data

Title Description Type Required Tips
router_code 菜单的选项 string
options 对应菜单的选项 object 见options定义

options

Title Description Type Required Tips
tag 选择的标签名称 string
state 标签是否选中 bool

Response Data Json

{
  "status": 0,
  "data": [
    {
      "router_code": "overseas",
      "options": [
        {
          "tag": "美国",
          "state": true
        },
        {
          "tag": "韩国",
          "state": true
        },
        {
          "tag": "日本",
          "state": true
        },
        {
          "tag": "银行",
          "state": true
        },
        {
          "tag": "人工智能",
          "state": true
        },
        {
          "tag": "大模型",
          "state": true
        }
      ]
    },
    {
      "router_code": "policy",
      "options": [
        {
          "tag": "全国政策",
          "state": true
        },
        {
          "tag": "浙江省政策",
          "state": true
        },
        {
          "tag": "厦门市政策",
          "state": true
        }
      ]
    },
    {
      "router_code": "consult",
      "options": [
      ]
    }
  ]
}

Error

code default message tips
4000100 服务等级出错 不在指定范围内

Log

日期 作者 内容
2024/05/26 dongrz 创建

GetNewsPreference 获取新闻偏好设置

获取当前用户的菜单下偏好信息的设置情况

新闻偏好的获取

GET: /api/settings/news/preference

--header 'Bearer: {token}'

--header 'Content-Type: application/json'

Request Data Json

HTTP Method

GET

HTTP Request

/api/settings/news/preference

Request Parameters Query

Request Parameters Body

Response Data

Title Description Type Required Tips
status 状态:0成功 非0失败 integer
errors status非0时,返回错误信息,键值对 object
data 表单的具体信息 object

data

Title Description Type Required Tips
router_code 菜单的选项 string
options 对应菜单的选项 object 见options定义

options

Title Description Type Required Tips
tag 选择的标签名称 string
state 标签是否选中 bool

Response Data Json

{
  "status": 0,
  "data": [
    {
      "router_code": "overseas",
      "options": [
        {
          "tag": "美国",
          "state": true
        },
        {
          "tag": "韩国",
          "state": true
        },
        {
          "tag": "日本",
          "state": true
        },
        {
          "tag": "银行",
          "state": true
        },
        {
          "tag": "人工智能",
          "state": true
        },
        {
          "tag": "大模型",
          "state": true
        }
      ]
    },
    {
      "router_code": "policy",
      "options": [
        {
          "tag": "全国政策",
          "state": true
        },
        {
          "tag": "浙江省政策",
          "state": true
        },
        {
          "tag": "厦门市政策",
          "state": true
        }
      ]
    },
    {
      "router_code": "consult",
      "options": [
      ]
    }
  ]
}

Error

Log

日期 作者 内容
2024/05/26 dongrz 创建

Question API

AI企业问答相关API

QuestionHot 热门企业问答

获取热门企业问答资源

HTTP Request

GET /api/question/hot

Response Body :

{
  "status": true,
  "data": [{
    "id": 1,
    "name": "长沙景嘉微电子有限公司",
    "company_type": 1,
    "qa": [
      {
        "question_id": 1,
        "title": "长沙景嘉微电子有限公司产品在研发过程中如何管理时间和资源?"
      },
      {
        "question_id": 2,
        "title": "长沙景嘉微电子有限公司产品在投资领域的市场份额是多少?"
      }
    ]
  }]
}

Request Parameters

Parameter Description Type Required Explain
source pc string 请求来源
limit 2 int 个数 default=2

Response Data

Title Description Type Required Tips
status 状态:0成功 非0失败 integer
errors status非0时,返回错误信息,键值对 object
data 表单具体数据 array of objects

Data

Title Description Type Tips
id 1 int 公司ID
name 爱集微有限公司 int 公司名称
company_type 1 int 0-国内 1-国外
qa 问答列表 list:object

Qa Object

Title Description Type Tips
question_id 1 int 问题ID
title 长沙景嘉微电子有限公司A产品在研发过程中如何管理时间和资源? string 问题

Log

日期 作者 内容
2024/10/30 朱思嘉 新增

QuestionData 企业问答资源

获取企业问答资源、问答广场资源

HTTP Request

GET /api/question

Response Body :

{
  "status": 0,
  "data": {
    "count": 4,
    "list": [
      {
        "id": 286,
        "title": "在过去的融资中,企业的投资者背景如何影响了其战略发展?",
        "status": 0,
        "process": 0,
        "answer": "",
        "user": "43cf8***",
        "created_at": "2024-11-12 11:08:59"
      },
      {
        "id": 287,
        "title": "该企业在融资方面的情况如何,未来的资金来源有何计划?",
        "status": 0,
        "process": 0,
        "answer": "",
        "user": "43cf8***",
        "created_at": "2024-11-12 11:09:00"
      },
      {
        "id": 288,
        "title": "企业的市场策略如何考虑到不同消费者群体的需求?",
        "status": 0,
        "process": 0,
        "answer": "",
        "user": "43cf8***",
        "created_at": "2024-11-12 11:09:01"
      },
      {
        "id": 289,
        "title": "在某一时间段内,企业的市场表现是否受到宏观经济影响?",
        "status": 0,
        "process": 0,
        "answer": "",
        "user": "43cf8***",
        "created_at": "2024-11-12 11:09:02"
      }
    ]
  }
}

Request Parameters

Parameter Description Type Required Explain
source pc string 请求来源
company_id 1 int 当前公司ID
company_type 1 int 企业类型 default=0 0-国内 1-国外
id 1,2,3 string 问题ID 获取某个问题的ID集
sort asc desc string 排序 asc desc default=desc
after_id 1 int 加载更多
limit 1 int 个数 default=4
status 1 int 状态 :1:已完成
参数说明:

获取企业问答模块信息 /api/question?source=pc&company_id=1&limit=4
用户自定义问题提问后刷新此接口会展示在第一条 获取实时进度刷新请求即可

获取问答广场 /api/question?source=pc&company_id=1&limit=10&status=1

加载更多 /api/question?source=pc&company_id=1&limit=10&status=1&after_id=1

跳转某个ID详情模式1(获取已完成且问题与公司有关联性的资源):/api/question?source=pc&company_id=1&limit=10&status=1&id=1
跳转某个ID详情模式2(获取任意状态的资源):/api/question?source=pc&company_id=1&limit=10&status=2&id=1

获取单个任务进度 /api/question?source=pc&company_id=1&limit=10&status=2&id=1

Response Data

Title Description Type Required Tips
status 状态:0成功 非0失败 integer
errors status非0时,返回错误信息,键值对 object
data 表单具体数据 object

Data Object

Title Description Type Tips
count 1 int 总数
list array 列表信息

List Object

Title Description Type Tips
id 1 int 每条数据的唯一ID
title "长沙景嘉微电子有限公司产品在研发过程中如何管理时间和资源?" string 描述产品研发相关问题
status 0 int 0:待处理,1:进行中,2:已完成,3:失败
process 80 int 0-100之间
answer "" 或 "# 长沙景嘉微电子有限公司产品研发中的时间和资源管理..." string 如果存在敏感信息,则受限
user "LI9****kkk" string 用户名信息可能会被隐藏部分
create_at "2024-10-10 15:00:00" string 格式为"YYYY-MM-DD HH:MM:SS"

Log

日期 作者 内容
2024/10/30 朱思嘉 新增

QuestionPush 企业提问

提问相关问题

HTTP Request

POST /api/question

Response Body :

{
  "status": true,
  "data": 
    {
      "id": 1
    }
}

Request Parameters

Parameter Description Type Required Explain
source string 请求来源
title 企业成立于哪个时间点? string 问题描述
question_id 1 int 问题ID
company_id 1 int 公司ID
company_type 1 int 企业类型 default=0 0-国内 1-国外
company_name 爱集微咨询有限公司 string 公司名称
参数说明:

内置问题提问 /api/question (question_id,company_id,company_name)

自定义问题提问 /api/question (title,company_id,company_name)

Response Data

Title Description Type Required Tips
status 状态:0成功 非0失败 integer
errors status非0时,返回错误信息,键值对 object
data 表单具体数据 array of objects

Data Object

Title Description Type Tips
id 1 int 问题ID

Log

日期 作者 内容
2024/10/30 朱思嘉 新增

Help

index.html.md文件中进行编辑目录和文档总体结构,然后在includes目录中添加对应的模块。

文档使用Markdown语言排版。

Markdown格式示例


# 标题
## 二级标题
### .......
    ```json
      代码块
    ```

表格
表头 | 表头
---------- | -------
内容 | 内容
内容 | 内容

`Something`

表格

表头 表头
内容 内容
内容 内容

Json 是没有注释的 避免在json中写注释

Something 高亮

加粗 粗体

横线

下划线

斜体

链接

图片