remove put del

This commit is contained in:
2025-02-08 13:54:02 +08:00
parent 4a0a9b6471
commit 622fb0dc89
2 changed files with 12 additions and 15 deletions

View File

@@ -12,7 +12,7 @@ export function listApi(query) {
// 查询接口详细
export function getApi(id) {
return request({
url: '/test/api/' + id,
url: '/test/api/detail/' + id,
method: 'get'
})
}
@@ -20,7 +20,7 @@ export function getApi(id) {
// 新增接口
export function addApi(data) {
return request({
url: '/test/api',
url: '/test/api/add',
method: 'post',
data: data
})
@@ -29,8 +29,8 @@ export function addApi(data) {
// 修改接口
export function updateApi(data) {
return request({
url: '/test/api',
method: 'put',
url: '/test/api/edit',
method: 'post',
data: data
})
}
@@ -38,7 +38,7 @@ export function updateApi(data) {
// 删除接口
export function delApi(id) {
return request({
url: '/test/api/' + id,
method: 'delete'
url: '/test/api/del/' + id,
method: 'post'
})
}