2019-09-26 15:08:53 +08:00
|
|
|
|
import request from '@/utils/request';
|
|
|
|
|
|
|
|
|
|
export function getTrainingSystemList(params) {
|
2019-09-27 14:46:08 +08:00
|
|
|
|
/** 根据cityCode后去对应地图及其子系统 */
|
2019-09-26 15:08:53 +08:00
|
|
|
|
return request({
|
|
|
|
|
url: '/api/mapSystem/queryByCityCode',
|
|
|
|
|
method: 'get',
|
|
|
|
|
params
|
|
|
|
|
});
|
|
|
|
|
}
|
2019-09-27 14:46:08 +08:00
|
|
|
|
|
|
|
|
|
export function querySystemByTypeAndPrdCode(params, prodCode) {
|
2019-10-15 13:04:28 +08:00
|
|
|
|
/** 根据系统类型和地图产品code查询系统的内容(课程、章节、考试)*/
|
2019-09-27 14:46:08 +08:00
|
|
|
|
return request({
|
|
|
|
|
url: `/api/mapSystem/queryByTypeAndPrdCode/${prodCode}`,
|
|
|
|
|
method: 'get',
|
|
|
|
|
params
|
|
|
|
|
});
|
|
|
|
|
}
|
2019-10-15 13:04:28 +08:00
|
|
|
|
|
|
|
|
|
export function getTrainingSystemListByMapId(mapId) {
|
|
|
|
|
/** 根据mapId去获取其子系统 */
|
|
|
|
|
return request({
|
|
|
|
|
url: `/api/mapSystem/${mapId}`,
|
|
|
|
|
method: 'get'
|
|
|
|
|
});
|
|
|
|
|
}
|
2019-10-17 17:11:15 +08:00
|
|
|
|
|
|
|
|
|
export function generateMapSystem(mapId) {
|
|
|
|
|
/** 根据mapId生成地图子系统 */
|
|
|
|
|
return request({
|
|
|
|
|
url: `/api/mapSystem/generate/${mapId}`,
|
|
|
|
|
method: 'post'
|
|
|
|
|
});
|
|
|
|
|
}
|