xnzt/xnzt-h5/api/income/incomeCategory.js

54 lines
964 B
JavaScript
Raw Permalink Normal View History

2024-11-11 10:27:27 +08:00
import request from '@/utils/request'
// 查询收入分类列表
export function listIncomeCategory(query) {
return request({
url: '/incomeCategory/list',
method: 'get',
params: query
})
}
// 查询收入分类详细
export function getIncomeCategory(id) {
return request({
url: '/incomeCategory/' + id,
method: 'get'
})
}
// 新增收入分类
export function addIncomeCategory(data) {
return request({
url: '/incomeCategory',
method: 'post',
data: data
})
}
// 修改收入分类
export function updateIncomeCategory(data) {
return request({
url: '/incomeCategory',
method: 'put',
data: data
})
}
// 删除收入分类
export function delIncomeCategory(id) {
return request({
url: '/incomeCategory/' + id,
method: 'delete'
})
}
// 查询收入分类表列表
export function queryIncomeCategory() {
return request({
url: '/incomeCategory/queryList',
method: 'get',
})
}