2019-08-29 17:16:33 +08:00
|
|
|
import request from '@/utils/request';
|
|
|
|
|
|
|
|
/** 分页查找上线的剧本*/
|
|
|
|
export function getScriptPageListOnline(params) {
|
|
|
|
return request({
|
2019-10-09 14:01:02 +08:00
|
|
|
// url: `/api/script/paging/online`,
|
|
|
|
url: `/api/script/paging/published`,
|
2019-08-29 17:16:33 +08:00
|
|
|
method: 'get',
|
|
|
|
params: params
|
|
|
|
});
|
|
|
|
}
|
|
|
|
|
|
|
|
/** 通过ID查询剧本的基础信息 */
|
|
|
|
export function getScriptByIdList(id) {
|
|
|
|
return request({
|
|
|
|
url: `/api/script/${id}/basic`,
|
|
|
|
method: 'get'
|
|
|
|
});
|
|
|
|
}
|
|
|
|
|
2019-10-16 16:36:25 +08:00
|
|
|
/** 通过ID查询发布的剧本的详细信息 */
|
2019-08-29 17:16:33 +08:00
|
|
|
export function getScriptById(id) {
|
|
|
|
return request({
|
|
|
|
url: `/api/script/${id}/detail`,
|
|
|
|
method: 'get'
|
|
|
|
});
|
|
|
|
}
|
2019-10-16 16:36:25 +08:00
|
|
|
/** 通过ID查询未发布剧本的详细信息 */
|
|
|
|
export function getDraftScriptById(id) {
|
|
|
|
return request({
|
|
|
|
url: `/api/script/draft/${id}/detail`,
|
|
|
|
method: 'get'
|
|
|
|
});
|
|
|
|
}
|