# article-collect **Repository Path**: hupeng333/article-collect ## Basic Information - **Project Name**: article-collect - **Description**: 不知道写什么的描述 - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 1 - **Forks**: 0 - **Created**: 2021-11-06 - **Last Updated**: 2022-04-13 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # article-collect ## 查询文章 - 接口地址: [/article/query]() - 请求方式: GET - 请求参数 | 参数 | 类型 | 必须 | 说明 | | --- | --- | --- | --- | | id | Integer | true | 文章id | - 返回结果说明 | 字段名 | 类型 | 说明 | | ---------------- | ---------- | ------------ | | code | Integer | 业务code | | message | String | 对code的说明 | | data | Hash | 返回数据值 | | data.id | Integer | 文章id | | data.title | String | 文章标题 | | data.articleType | Integer | 文章类型 | | data.body | String | 文章内容 | | data.source | String | 文章来源 | | data.viewCount | Integer | 文章查看量 | | data.startedAt | String | 提交时间(毫秒级别时间戳) | | data.weight | BigDecimal | 权重 | | data.keyword | String | 关键字 | | data.active | Integer | 是否激活 | | data.isDelete | Integer | 是否被删除 | | data.createdAt | String | 创建时间(毫秒级别时间戳) | | data.updateAt | String | 修改时间(毫秒级别时间戳) | | data.imgUrl | String | 图片地址 | - 响应结果示例 ```json { "code": 0, "message": "success", "data": { "id": 1, "title": "PD-L1/CTLA-4双抗KN046注册临床IND获批准,用于PD-(L)1治疗后进展的非小细胞肺癌", "articleType": 0, "body": "hello world", "sourceUrl": "https://www.wuxuwang.com/zixun/78605309-1c13-11ec-b564-b8599fb66350", "source": "戊戌数据", "viewCount": 0, "startedAt": "1636337448633", "weight": 50.00, "keyword": "", "active": 0, "isDelete": 0, "createdAt": "1636337448633", "updatedAt": "1636337448633", "imgUrl": "https://file.wuxuwang.com/news/1632390728520-1629786207311-2021-08-24_142304.png" } } ``` ## 删除文章 - 接口地址: [/article]()/delete - 请求方式: POST - 请求参数 | 参数 | 类型 | 必须 | 说明 | | --- | --- | --- | --- | | id | Integer | true | 文章id | - 返回结果说明 | 字段名 | 类型 | 说明 | | ------- | ------- | ------------ | | code | Integer | 业务code | | message | String | 对code的说明 | - 返回结果示例 ```json { "code": 0, "message": "success" } ``` ## 修改文章 - 接口地址: [/article/modify]() - 请求方式: POST - 请求参数 | 参数 | 类型 | 必须 | 说明 | | ----- | ------- | ---- | ---------- | | id | Integer | true | 文章id | | key | String | true | 要修改的键 | | value | String | true | 要修改的值 | key的可选值: | key | value类型 | 说明 | | ----------- | ---------- | ---------------------------- | | title | String | | | articleType | Integer | | | body | String | | | sourceUrl | String | | | source | String | | | viewCount | Integer | | | startedAt | String | 请传入毫秒级别的时间戳字符串 | | weight | BigDecimal | | | keyword | String | | | active | Integer | | | isDelete | Integer | | | createdAt | String | 请传入毫秒级别的时间戳字符串 | | updatedAt | String | 请传入毫秒级别的时间戳字符串 | | imgUrl | String | | - 返回结果说明 | 字段名 | 类型 | 说明 | | ------- | ------- | ------------ | | code | Integer | 业务code | | message | String | 对code的说明 | - 返回结果示例 ```json { "code": 0, "message": "success" } ``` ## 添加文章 - 请求接口: [/article/insert]() - 请求方法: POST - 请求参数 | 参数名 | 参数类型 | 必须 | 说明 | | ----------- | ---------- | ----- | ----------- | | articleType | Integer | false | 文章类型 | | body | String | true | 文章内容 | | source | String | true | 文章来源 | | imgUrl | String | true | 图片地址 | | title | String | true | 文章标题 | | weight | BigDecimal | false | 权重 | | keyword | String | true | 关键字 | | sourceUrl | String | true | 文章来源url | - 返回结果说明 | 字段名 | 类型 | 说明 | | ------- | ------- | ------------ | | code | Integer | 业务code | | message | String | 对code的说明 | - 返回结果示例 ```json { "code": 0, "message": "success" } ```