增加单位

This commit is contained in:
2024-09-06 18:12:42 +08:00
parent ae40fe5877
commit cd89cf4048
2 changed files with 359 additions and 0 deletions
+44
View File
@@ -0,0 +1,44 @@
import request from '@/utils/request'
// 查询养护单位列表
export function listUnit(query) {
return request({
url: '/system/unit/list',
method: 'get',
params: query
})
}
// 查询养护单位详细
export function getUnit(id) {
return request({
url: '/system/unit/' + id,
method: 'get'
})
}
// 新增养护单位
export function addUnit(data) {
return request({
url: '/system/unit',
method: 'post',
data: data
})
}
// 修改养护单位
export function updateUnit(data) {
return request({
url: '/system/unit',
method: 'put',
data: data
})
}
// 删除养护单位
export function delUnit(id) {
return request({
url: '/system/unit/' + id,
method: 'delete'
})
}