文档
测试

搜索资源

POST
https://mn.chengsidai.cn:8765/app/minebuty/api/content/searchResource

请求参数

参数名
类型
描述
必填
userId
String
用户id
必填
keyword
String
搜索文字
必填
pageNo
integer
可选
pageSize
integer
可选

请求规则

## 数据返回格式 JSON ## HTTP请求方式 POST

说明 / 示例

## 返回数据 请求成功 ``` java { "success": true, "message": "成功", "data": { "content": [ { "id": "13", "title": "痤疮治疗中超分子水杨酸的合理、有效和安全使用", "type": "VIDEO", "cover": "http://umaterials.oss-cn-shenzhen.aliyuncs.com/34583c10-369b-11ea-91b4-df1a86a01eff.png", "description": null, "webUrl": null, "videoUrl": "http://hdpty7u87wtp1gv2r35.exp.bcevod.com/mda-ic4qp0igqgary9xg/mda-ic4qp0igqgary9xg.m3u8", "readNum": 0, "praiseNum": 0, "displayOrder": 4, "status": "启用", "publishTime": null, "lecturer": { "id": "4CBFCFB5-CAC9-4D93-9C24-60C169A9ADF5", "name": "王家琪", "title": "医师", "hospital": "重庆玛恩医疗美容医院", "image": "https://mn.chengsidai.cn:8765/app/minebuty/api/img/uni/2020-03-22/d48dcc2e-9259-440c-932f-2b201b783aff-1584845330980.jpg" }, "isPraised": 0 }, { "id": "8", "title": "痤疮瘢痕的治疗时机和策略", "type": "VIDEO", "cover": "http://umaterials.oss-cn-shenzhen.aliyuncs.com/27452f70-ec5d-11e9-8272-bfe404f10fa3.png", "description": null, "webUrl": null, "videoUrl": "http://hdpty7u87wtp1gv2r35.exp.bcevod.com/mda-jjb4utv8bkwbefvq/mda-jjb4utv8bkwbefvq.m3u8", "readNum": 0, "praiseNum": 0, "displayOrder": 4, "status": "启用", "publishTime": null, "lecturer": { "id": "4CBFCFB5-CAC9-4D93-9C24-60C169A9ADF5", "name": "王家琪", "title": "医师", "hospital": "重庆玛恩医疗美容医院", "image": "https://mn.chengsidai.cn:8765/app/minebuty/api/img/uni/2020-03-22/d48dcc2e-9259-440c-932f-2b201b783aff-1584845330980.jpg" }, "isPraised": 0 } ], "pageable": { "sort": { "unsorted": false, "sorted": true }, "offset": 0, "pageSize": 1000, "pageNumber": 0, "paged": true, "unpaged": false }, "last": true, "totalElements": 2, "totalPages": 1, "number": 0, "size": 1000, "sort": { "unsorted": false, "sorted": true }, "numberOfElements": 2, "first": true }, "code": 1 } ```

输出参数解释

|参数|类型|描述| |-|-|-| | code |int|状态码| | data |object|null(空)| | message |string|状态描述| | success |boolean|是否成功| ## 枚举 displayType 模块显示类型 (枚举) |状态码|描述| |-|-|-| |NOIMG|无图| |GONGGE|宫格| resourceType 模块资源类型 (枚举) |状态码|描述| |-|-|-| |ARTICLE|文章| |VIDEO|视频| |VIDEOANDARTICLE|视频和文章| resource : type 资源类型 (枚举) |状态码|描述| |-|-|-| |ARTICLE|文章| |VIDEO|视频|

状态码

|状态码|描述| |-|-|-| |-1|服务器异常| |0|请求失败| |1|请求成功|