所有 /api/mapSkin 开始的接口路径都改为 /api/realLine

This commit is contained in:
fan 2019-10-30 17:00:50 +08:00
parent f2e4885f78
commit 0f778f94c6

View File

@ -2,68 +2,68 @@ import request from '@/utils/request';
/** 分页查询皮肤*/
export function getSkinCodePageList(params) {
return request({
url: `/api/mapSkin`,
method: 'get',
params: params
});
return request({
url: `/api/realLine`,
method: 'get',
params: params
});
}
/** 添加皮肤*/
export function addSkinCode(data) {
return request({
url: `/api/mapSkin`,
method: 'post',
data: data
});
return request({
url: `/api/realLine`,
method: 'post',
data: data
});
}
/** 删除皮肤*/
export function delSkinCode(id) {
return request({
url: `/api/mapSkin/${id}`,
method: 'delete'
});
return request({
url: `/api/realLine/${id}`,
method: 'delete'
});
}
/** 查询地图皮肤 */
export function querySkinCode(id) {
return request({
url: `/api/mapSkin/${id}`,
method: 'get'
});
return request({
url: `/api/realLine/${id}`,
method: 'get'
});
}
/** 修改地图皮肤*/
export function updateSkinCode(data) {
return request({
url: `/api/mapSkin/${data.id}`,
method: 'put',
data: data
});
return request({
url: `/api/realLine/${data.id}`,
method: 'put',
data: data
});
}
/** 通过皮肤Code更新地图皮肤*/
export function updateSkinCodeByCode(data) {
return request({
url: `/api/mapSkin/${data.code}/update`,
method: 'put',
data: data
});
return request({
url: `/api/realLine/${data.code}/update`,
method: 'put',
data: data
});
}
/** 查询皮肤是否存在*/
export function querySkinCodeExistByCode(code) {
return request({
url: `/api/mapSkin/${code}/exist`,
method: 'get'
});
return request({
url: `/api/realLine/${code}/exist`,
method: 'get'
});
}
/** 获取皮肤列表*/
export function getSkinCodeList() {
return request({
url: `/api/mapSkin/list`,
method: 'get'
});
return request({
url: `/api/realLine/list`,
method: 'get'
});
}