关于使用规则,请注意:
关于接口文档,请注意:
目录 |
汉中TV首页,具体如下:
接口调用请求说明
http请求方式: POST
{WebPath}/api/***********/MainPage
POST数据说明
POST数据示例如下 数据用json提交:
{
target: "1"
}
参数说明
| 参数 | 是否必须 | 说明 | ||
|---|---|---|---|---|
| target | 是 | 固定为"1" | ||
返回值说明
在调用接口后,会返回JSON数据包。正常时的返回JSON数据包示例:
{
"error": 0,
"data": {
"categoryList": [
{
"id": "10000011",
"name": "教育报道"
},
{
"id": "10000012",
"name": "党建"
},
{
"id": "10000013",
"name": "教育先锋"
}
],
"rsList": [
{
"id": "10003431",
"customFileName": "教育报道1",
"filePath": "http://storage-derek.oss-cn-hangzhou.aliyuncs.com/20180723/c21c0ca167aaedf94752e39002758361.mp4",
"filePreview": "http://storage-derek.oss-cn-hangzhou.aliyuncs.com/20180723/c21c0ca167aaedf94752e39002758361.mp4?bsResourseID=10072563",
"coverPath": null,
"keyWord": "日常",
"introduction": "日常报道123123123",
"modifyDate": "2018-07-23",
"browseNum": 2
}
]
}
}
返回字段说明
| 字段 | 类型 | 说明 | |||
|---|---|---|---|---|---|
| error | int | 返回值:'0'表示成功,'1'表示失败 | |||
| data | categoryList | id | string | 分类ID | |
| name | string | 分类名称 | |||
| rsList | id | string | 资源id | ||
| customFileName | string | 资源名称 | |||
| filePath | string | 资源路径 | |||
| filePreview | string | 资源预览路径 | |||
| coverPath | string | 封面地址 | |||
| keyWord | string | 资源关键字 | |||
| introduction | string | 资源简介 | |||
| modifyDate | string | 修改日期 | |||
| browseNum | string | 观看次数 | |||
查询分类下的专题列表,具体如下:
接口调用请求说明
http请求方式: POST
{WebPath}/api/***********/SearchSptList
POST数据说明
POST数据示例如下 数据用json提交:
{
category: "10000011",
pageIndex: 1,
pageSize: 10
}
参数说明
| 参数 | 是否必须 | 说明 | ||
|---|---|---|---|---|
| category | 是 | 分类ID | ||
| pageIndex | 是 | 分页位置 | ||
| pageSize | 是 | 分页大小 | ||
返回值说明
在调用接口后,会返回JSON数据包。正常时的返回JSON数据包示例:
{
"error": 0,
"data": [{
"id": "10000142",
"topicName": "日常报道",
"coverPath": "http://storage-derek.oss-cn-hangzhou.aliyuncs.com/20180723/6b923571d0e2b172bb2fb6be48654f0d.png",
"createDate": "2018-07-23",
"keyWord": "日常",
"demandNum": 0,
"remark": "报道日常教育新闻"
}]
}
返回字段说明
| 字段 | 类型 | 说明 | ||
|---|---|---|---|---|
| error | int | 返回值:'0'表示成功,'1'表示失败 | ||
| data | id | string | 专题id | |
| topicName | string | 专题名称 | ||
| coverPath | string | 封面地址 | ||
| createDate | string | 创建日期 | ||
| keyWord | string | 关键字 | ||
| demandNum | string | 点播次数 | ||
| remark | string | 专题说明 | ||
查询专题下的章节列表,具体如下:
接口调用请求说明
http请求方式: POST
{WebPath}/api/***********/SearchSptChapterList
POST数据说明
POST数据示例如下 数据用json提交:
{
topicID: "10000142"
}
参数说明
| 参数 | 是否必须 | 说明 | ||
|---|---|---|---|---|
| topicID | 是 | 专题ID | ||
返回值说明
在调用接口后,会返回JSON数据包。正常时的返回JSON数据包示例:
{
"error": 0,
"data": [{
"id": "10000507",
"topicName": "日常1"
}]
}
返回字段说明
| 字段 | 类型 | 说明 | ||
|---|---|---|---|---|
| error | int | 返回值:'0'表示成功,'1'表示失败 | ||
| data | id | string | 章节id | |
| chapterName | string | 章节名称 | ||
查询章节下的视频列表,具体如下:
接口调用请求说明
http请求方式: POST
{WebPath}/api/***********/SearchChapterRsList
POST数据说明
POST数据示例如下 数据用json提交:
{
target: "1",
chapterID: "10000507",
pageIndex: 1,
pageSize: 10
}
参数说明
| 参数 | 是否必须 | 说明 | ||
|---|---|---|---|---|
| target | 是 | 固定为"1" | ||
| chapterID | 是 | 章节ID | ||
| pageIndex | 是 | 分页位置 | ||
| pageSize | 是 | 分页大小 | ||
返回值说明
在调用接口后,会返回JSON数据包。正常时的返回JSON数据包示例:
{
"error": 0,
"data": [{
"id": "10003431",
"customFileName": "教育报道1",
"filePath": "http://storage-derek.oss-cn-hangzhou.aliyuncs.com/20180723/c21c0ca167aaedf94752e39002758361.mp4",
"filePreview": "http://storage-derek.oss-cn-hangzhou.aliyuncs.com/20180723/c21c0ca167aaedf94752e39002758361.mp4?bsResourseID=10072563",
"coverPath": null,
"keyWord": "日常",
"introduction": "日常报道123123123",
"modifyDate": "2018-07-23",
"browseNum": 2
}]
}
返回字段说明
| 字段 | 类型 | 说明 | |||
|---|---|---|---|---|---|
| error | int | 返回值:'0'表示成功,'1'表示失败 | |||
| data | id | string | 资源ID | ||
| customFileName | string | 资源名称 | |||
| filePath | string | 资源路径 | |||
| filePreview | string | 资源预览路径 | |||
| coverPath | string | 封面地址 | |||
| keyWord | string | 资源关键字 | |||
| introduction | string | 资源简介 | |||
| modifyDate | string | 修改日期 | |||
| browseNum | string | 观看次数 | |||
查询相关视频,具体如下:
接口调用请求说明
http请求方式: POST
{WebPath}/api/***********/SearchRelatedRsList
POST数据说明
POST数据示例如下 数据用json提交:
{
target: "1",
id: "10003431",
category:"10000011",
keyword:"日常"
}
参数说明
| 参数 | 是否必须 | 说明 | ||
|---|---|---|---|---|
| target | 是 | 固定为"1" | ||
| id | 是 | 原资源ID | ||
| category | 是 | 原资源所在分类ID | ||
| keyword | 是 | 关键字 | ||
返回值说明
在调用接口后,会返回JSON数据包。正常时的返回JSON数据包示例:
{
"error": 0,
"data": [{
"id": "10003431",
"customFileName": "教育报道1",
"filePath": "http://storage-derek.oss-cn-hangzhou.aliyuncs.com/20180723/c21c0ca167aaedf94752e39002758361.mp4",
"filePreview": "http://storage-derek.oss-cn-hangzhou.aliyuncs.com/20180723/c21c0ca167aaedf94752e39002758361.mp4?bsResourseID=10072563",
"coverPath": null,
"keyWord": "日常",
"introduction": "日常报道123123123",
"modifyDate": "2018-07-23",
"browseNum": 2
}]
}
返回字段说明
| 字段 | 类型 | 说明 | |||
|---|---|---|---|---|---|
| error | int | 返回值:'0'表示成功,'1'表示失败 | |||
| data | id | string | 资源ID | ||
| customFileName | string | 资源名称 | |||
| filePath | string | 资源路径 | |||
| filePreview | string | 资源预览路径 | |||
| coverPath | string | 封面地址 | |||
| keyWord | string | 资源关键字 | |||
| introduction | string | 资源简介 | |||
| modifyDate | string | 修改日期 | |||
| browseNum | string | 观看次数 | |||
查询视频,具体如下:
接口调用请求说明
http请求方式: POST
{WebPath}/api/***********/SearchRs
POST数据说明
POST数据示例如下 数据用json提交:
{
target: "1",
pageIndex:1,
pageSize: 10,
searchContent:"教育",
isITVShow:1
}
参数说明
| 参数 | 是否必须 | 说明 | ||
|---|---|---|---|---|
| target | 是 | 固定为"1" | ||
| isITVShow | 是 | 固定为"1" | ||
| pageIndex | 是 | 分页位置 | ||
| pageSize | 是 | 分页大小 | ||
| searchContent | 是 | 搜索内容 | ||
返回值说明
在调用接口后,会返回JSON数据包。正常时的返回JSON数据包示例:
{
"error": 0,
"data": [{
"id": "10003431",
"customFileName": "教育报道1",
"filePath": "http://storage-derek.oss-cn-hangzhou.aliyuncs.com/20180723/c21c0ca167aaedf94752e39002758361.mp4",
"filePreview": "http://storage-derek.oss-cn-hangzhou.aliyuncs.com/20180723/c21c0ca167aaedf94752e39002758361.mp4?bsResourseID=10072563",
"coverPath": null,
"keyWord": "日常",
"introduction": "日常报道123123123",
"modifyDate": "2018-07-23",
"browseNum": 2
}]
}
返回字段说明
| 字段 | 类型 | 说明 | |||
|---|---|---|---|---|---|
| error | int | 返回值:'0'表示成功,'1'表示失败 | |||
| data | id | string | 资源ID | ||
| customFileName | string | 资源名称 | |||
| filePath | string | 资源路径 | |||
| filePreview | string | 资源预览路径 | |||
| coverPath | string | 封面地址 | |||
| keyWord | string | 资源关键字 | |||
| introduction | string | 资源简介 | |||
| modifyDate | string | 修改日期 | |||
| browseNum | string | 观看次数 | |||