书籍章节搜索
书籍章节搜索
- URL: /open/search/resourceSearch
- 命令: HTTP GET/POST
- Request 参数格式
| 参数名称 |
参数类型 |
参数说明 |
是否可单独传 |
| section |
int |
章节序号, 传section,则可不传keyWord参数 |
否 |
| keyWord |
String |
章节名称关键字, 传keyWord,则可不传section参数 |
是 |
| bookKeyWord |
String |
书籍名称关键字 |
否 |
| typeId |
int |
书籍所属分类id |
否 |
| author |
String |
书籍作者 |
否 |
| announcer |
String |
书籍播音 |
否 |
参数传递分3种情况:
(1)只传keyWord
(2)传keyWord+(bookKeyWordh+typeId+author+announcer) 括号内参数一个或者多个
(3)传section+(bookKeyWord+typeId+author+announcer) 括号内参数一个或者多个
| 参数名称 |
参数类型 |
参数说明 |
| status |
int |
状态码,0表示成功 |
| msg |
String |
描述信息 |
| list |
Object |
章节对象 |
| 参数名称 |
参数类型 |
参数说明 |
| resId |
long |
章节ID |
| bookId |
long |
所属书籍id |
| name |
String |
章节名称 |
| desc |
String |
章节简介 |
| section |
int |
章节序号 书籍内唯一,可用作购买标记 |
| fileSize |
int |
章节大小kb |
| duration |
int |
时长 单位 秒 |
| cover |
String |
章节封面地址. |
| filePath |
String |
章节播放地址不返回,统一通过/open/resource/entityPath 接口获取 |
| createTime |
long |
创建时间 毫秒 |
| updateTime |
long |
更新时间 毫秒 |