73 lines
1.2 KiB
JavaScript
73 lines
1.2 KiB
JavaScript
|
import request from '@/utils/request'
|
||
|
|
||
|
// 查询工商信息列表
|
||
|
export function listBaseInfo(query) {
|
||
|
return request({
|
||
|
url: '/baseInfo/list',
|
||
|
method: 'get',
|
||
|
params: query
|
||
|
})
|
||
|
}
|
||
|
|
||
|
// 查询工商信息详细
|
||
|
export function getBaseInfo(id) {
|
||
|
return request({
|
||
|
url: '/baseInfo/' + id,
|
||
|
method: 'get'
|
||
|
})
|
||
|
}
|
||
|
|
||
|
// 获取缓存的详细信息
|
||
|
export function selectBaseInfo() {
|
||
|
return request({
|
||
|
url: '/baseInfo/getBaseInfo',
|
||
|
method: 'get'
|
||
|
})
|
||
|
}
|
||
|
|
||
|
// 更新缓存的详细信息
|
||
|
export function cacheBaseInfo(baseId) {
|
||
|
return request({
|
||
|
url: '/baseInfo/setBaseInfo',
|
||
|
method: 'put',
|
||
|
data: baseId
|
||
|
})
|
||
|
}
|
||
|
|
||
|
// 新增工商信息
|
||
|
export function addBaseInfo(data) {
|
||
|
return request({
|
||
|
url: '/baseInfo/tianJiaBaseInfo',
|
||
|
method: 'post',
|
||
|
data: data
|
||
|
})
|
||
|
}
|
||
|
|
||
|
// 修改工商信息
|
||
|
export function updateBaseInfo(data) {
|
||
|
return request({
|
||
|
url: '/baseInfo/updateBaseInfo',
|
||
|
method: 'post',
|
||
|
data: data
|
||
|
})
|
||
|
}
|
||
|
|
||
|
// 删除工商信息
|
||
|
export function delBaseInfo(id) {
|
||
|
return request({
|
||
|
url: '/baseInfo/' + id,
|
||
|
method: 'delete'
|
||
|
})
|
||
|
}
|
||
|
|
||
|
// 获取经营主体经纬度
|
||
|
export function getAllLngLat(){
|
||
|
return request({
|
||
|
url: '/baseInfo/latAndLng',
|
||
|
method: 'get'
|
||
|
})
|
||
|
}
|
||
|
|
||
|
|
||
|
|