xnzt/xnzt-h5/api/insurance/insuranceCompany.js

65 lines
1.3 KiB
JavaScript
Raw Normal View History

2024-11-11 10:27:27 +08:00
import request from '@/utils/request'
// 查询保险公司列表
export function listInsuranceCompany(query) {
return request({
url: '/insurance/insuranceCompany/list',
method: 'get',
params: query
})
}
// 查询保险公司详细
export function getInsuranceCompany(id) {
return request({
url: '/insurance/insuranceCompany/' + id,
method: 'get'
})
}
// 新增保险公司
export function addInsuranceCompany(data) {
return request({
url: '/insurance/insuranceCompany',
method: 'post',
data: data
})
}
// 修改保险公司
export function updateInsuranceCompany(data) {
return request({
url: '/insurance/insuranceCompany',
method: 'put',
data: data
})
}
// 删除保险公司
export function delInsuranceCompany(id) {
return request({
url: '/insurance/insuranceCompany/' + id,
method: 'delete'
})
}
// 获取所有信贷机构
export function getAllInsuranceCompany() {
return request({
url: '/insurance/insuranceCompany/getAll',
method: 'get'
})
}
// 状态修改
export function changeInsuranceEnable(id, status) {
const data = {}
data.id=id;
data.status=status;
return request({
url: '/insurance/insuranceCompany/changeInstitution',
method: 'post',
data: data
})
}