rt-sim-training-client/src/api/script.js

27 lines
687 B
JavaScript
Raw Normal View History

2019-08-29 17:16:33 +08:00
import request from '@/utils/request';
/** 分页查找上线的剧本*/
export function getScriptPageListOnline(params) {
2019-11-12 17:06:12 +08:00
return request({
url: `/api/script/paging/online`,
// url: `/api/script/paging/published`,
method: 'get',
params: params
});
2019-08-29 17:16:33 +08:00
}
2019-10-16 16:36:25 +08:00
/** 通过ID查询发布的剧本的详细信息 */
2019-08-29 17:16:33 +08:00
export function getScriptById(id) {
2019-11-12 17:06:12 +08:00
return request({
url: `/api/script/${id}/detail`,
method: 'get'
});
2019-08-29 17:16:33 +08:00
}
2019-10-16 16:36:25 +08:00
/** 通过ID查询未发布剧本的详细信息 */
export function getDraftScriptByGroup(group) {
2019-11-12 17:06:12 +08:00
return request({
url: `/api/simulation/${group}/script/loadedScript`,
method: 'get'
});
2019-10-16 16:36:25 +08:00
}