单表增删改查

This commit is contained in:
2025-07-18 10:05:56 +08:00
parent c933c655c1
commit 31dd4f4f12
13 changed files with 2679 additions and 0 deletions

View File

@@ -0,0 +1,44 @@
import request from '@/utils/request'
// 查询通用分类列表
export function listCategory(query) {
return request({
url: '/klp/category/list',
method: 'get',
params: query
})
}
// 查询通用分类详细
export function getCategory(categoryId) {
return request({
url: '/klp/category/' + categoryId,
method: 'get'
})
}
// 新增通用分类
export function addCategory(data) {
return request({
url: '/klp/category',
method: 'post',
data: data
})
}
// 修改通用分类
export function updateCategory(data) {
return request({
url: '/klp/category',
method: 'put',
data: data
})
}
// 删除通用分类
export function delCategory(categoryId) {
return request({
url: '/klp/category/' + categoryId,
method: 'delete'
})
}