This commit is contained in:
张良(004796)
2024-02-02 19:03:41 +08:00
parent 7f818e2f50
commit feeb1557a2
5 changed files with 414 additions and 2 deletions

44
src/api/cai/version.js Normal file
View File

@@ -0,0 +1,44 @@
import request from '@/utils/request'
// 查询版本列表
export function listVersion(query) {
return request({
url: '/cai/version/list',
method: 'get',
params: query
})
}
// 查询版本详细
export function getVersion(id) {
return request({
url: '/cai/version/' + id,
method: 'get'
})
}
// 新增版本
export function addVersion(data) {
return request({
url: '/cai/version',
method: 'post',
data: data
})
}
// 修改版本
export function updateVersion(data) {
return request({
url: '/cai/version',
method: 'put',
data: data
})
}
// 删除版本
export function delVersion(id) {
return request({
url: '/cai/version/' + id,
method: 'delete'
})
}