pnkx-admin-mongo/pnkx-uniapp/api/px/life/model.js
2024-01-13 13:29:20 +08:00

54 lines
1.1 KiB
JavaScript

import request from '@/utils/request'
// 查询账本记录模板列表
export function listModel(query) {
return request({
url: '/myTool/menstruationRecordModel/list',
method: 'get',
params: query
})
}
// 查询账本记录模板详细
export function getModel(id) {
return request({
url: '/myTool/menstruationRecordModel/' + id,
method: 'get'
})
}
// 新增账本记录模板
export function addModel(data) {
return request({
url: '/myTool/menstruationRecordModel',
method: 'post',
data: data
})
}
// 修改账本记录模板
export function updateModel(data) {
return request({
url: '/myTool/menstruationRecordModel',
method: 'put',
data: data
})
}
// 删除账本记录模板
export function delModel(id) {
return request({
url: '/myTool/menstruationRecordModel/' + id,
method: 'delete'
})
}
// 导出账本记录模板
export function exportModel(query) {
return request({
url: '/myTool/menstruationRecordModel/export',
method: 'get',
params: query
})
}