2019-08-29 17:16:33 +08:00
|
|
|
import request from '@/utils/request';
|
|
|
|
|
|
|
|
/** 分页查找上线的剧本*/
|
|
|
|
export function getScriptPageListOnline(params) {
|
|
|
|
return request({
|
2019-10-21 14:14:22 +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查询未发布剧本的详细信息 */
|
2019-10-28 19:14:49 +08:00
|
|
|
export function getDraftScriptByGroup(group) {
|
2019-10-16 16:36:25 +08:00
|
|
|
return request({
|
2019-10-28 19:14:49 +08:00
|
|
|
url: `/api/simulation/${group}/script/loadedScript`,
|
2019-10-16 16:36:25 +08:00
|
|
|
method: 'get'
|
|
|
|
});
|
|
|
|
}
|