xnzt/xnzt-h5/api/financialCredit/loanProduct.js
2024-11-11 10:27:27 +08:00

66 lines
1.2 KiB
JavaScript

import request from '@/utils/request'
// 查询贷款产品列表
export function listLoanProduct(query) {
return request({
url: '/financialCredit/loanProduct/list',
method: 'get',
params: query
})
}
// 查询贷款产品详细
export function getLoanProduct(id) {
return request({
url: '/financialCredit/loanProduct/' + id,
method: 'get'
})
}
// 新增贷款产品
export function addLoanProduct(data) {
return request({
url: '/financialCredit/loanProduct',
method: 'post',
data: data
})
}
// 修改贷款产品
export function updateLoanProduct(data) {
return request({
url: '/financialCredit/loanProduct',
method: 'put',
data: data
})
}
// 删除贷款产品
export function delLoanProduct(id) {
return request({
url: '/financialCredit/loanProduct/' + id,
method: 'delete'
})
}
// 获取所有贷款产品简易只要id,name
export function getAllLoanProduct() {
return request({
url: '/financialCredit/loanProduct/getAllSimple',
method: 'get'
})
}
// 状态修改
export function changeProductEnable(id, status) {
const data = {}
data.id=id;
data.status=status;
return request({
url: '/financialCredit/loanProduct',
method: 'put',
data: data
})
}