pnkx-admin-mongo/pnkx-uniapp/api/px/life/bookkeeping/account.js

63 lines
1.2 KiB
JavaScript
Raw Normal View History

2024-01-13 13:29:20 +08:00
import request from '@/utils/request'
// 查询最近帐户列表
export function getLatelyAccountList(query) {
return request({
url: '/bookkeeping/account/getLatelyAccountList',
method: 'get',
params: query
})
}
// 查询账本用户列表
export function listAccount(query) {
return request({
url: '/bookkeeping/account/list',
method: 'get',
params: query
})
}
// 查询账本用户详细
export function getAccount(id) {
return request({
url: '/bookkeeping/account/' + id,
method: 'get'
})
}
// 新增账本用户
export function addAccount(data) {
return request({
url: '/bookkeeping/account',
method: 'post',
data: data
})
}
// 修改账本用户
export function updateAccount(data) {
return request({
url: '/bookkeeping/account',
method: 'put',
data: data
})
}
// 删除账本用户
export function delAccount(id) {
return request({
url: '/bookkeeping/account/' + id,
method: 'delete'
})
}
// 导出账本用户
export function exportAccount(query) {
return request({
url: '/bookkeeping/account/export',
method: 'get',
params: query
})
}