2019-09-26 15:08:53 +08:00
|
|
|
|
import request from '@/utils/request';
|
|
|
|
|
|
2019-10-18 17:15:04 +08:00
|
|
|
|
export function getTrainingSystemList(cityCode) {
|
2019-09-27 14:46:08 +08:00
|
|
|
|
/** 根据cityCode后去对应地图及其子系统 */
|
2019-09-26 15:08:53 +08:00
|
|
|
|
return request({
|
2019-10-18 17:15:04 +08:00
|
|
|
|
url: `/api/mapSystem/city/${cityCode}`,
|
|
|
|
|
method: 'get'
|
2019-09-26 15:08:53 +08:00
|
|
|
|
});
|
|
|
|
|
}
|
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'
|
|
|
|
|
});
|
|
|
|
|
}
|
2019-10-18 17:15:04 +08:00
|
|
|
|
|
|
|
|
|
export function getSubSystemInfo(id) {
|
|
|
|
|
/** 查询子系统信息 */
|
|
|
|
|
return request({
|
|
|
|
|
url: `/api/mapSystem/${id}`,
|
|
|
|
|
method: 'get'
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export function getSubSystemDetail(id) {
|
|
|
|
|
/** 查询子系统详情*/
|
|
|
|
|
return request({
|
|
|
|
|
url: `/api/mapSystem/${id}/detail`,
|
|
|
|
|
method: 'get'
|
|
|
|
|
});
|
|
|
|
|
}
|
2019-10-21 15:50:15 +08:00
|
|
|
|
|
|
|
|
|
export function getMapSystemPageList(params) {
|
|
|
|
|
/** 分页查询地图系统 */
|
|
|
|
|
return request({
|
|
|
|
|
url: `/api/mapSystem`,
|
|
|
|
|
method: 'get',
|
|
|
|
|
params
|
|
|
|
|
});
|
|
|
|
|
}
|