xnzt/xnzt-h5/api/financialCredit/institution.js

66 lines
1.2 KiB
JavaScript
Raw Permalink Normal View History

2024-11-11 10:27:27 +08:00
import request from '@/utils/request'
// 查询信贷机构列表
export function listInstitution(query) {
return request({
url: '/financialCredit/institution/list',
method: 'get',
params: query
})
}
// 查询信贷机构详细
export function getInstitution(id) {
return request({
url: '/financialCredit/institution/' + id,
method: 'get'
})
}
// 新增信贷机构
export function addInstitution(data) {
return request({
url: '/financialCredit/institution',
method: 'post',
data: data
})
}
// 修改信贷机构
export function updateInstitution(data) {
return request({
url: '/financialCredit/institution',
method: 'put',
data: data
})
}
// 删除信贷机构
export function delInstitution(id) {
return request({
url: '/financialCredit/institution/' + id,
method: 'delete'
})
}
// 获取所有信贷机构
export function getAllInstitution() {
return request({
url: '/financialCredit/institution/getAll',
method: 'get'
})
}
// 状态修改
export function changeProductEnable(id, status) {
const data = {}
data.id=id;
data.status=status;
return request({
url: '/financialCredit/institution/changeInstitution',
method: 'post',
data: data
})
}