添加作者表

This commit is contained in:
wangxulei
2024-12-12 17:38:21 +08:00
parent ba18423232
commit 4e2938eee3
13 changed files with 1521 additions and 2 deletions

View File

@@ -0,0 +1,41 @@
import request from '@/utils/request'
export function getAuthorPage(params) {
return request({
url: '/admin/author/page',
method: 'get',
params
})
}
export function getAuthorList(params) {
return request({
url: '/admin/author/list',
method: 'get',
params
})
}
export function addAuthor(data) {
return request({
url: '/admin/author/add',
method: 'post',
data: data
})
}
export function editAuthor(data) {
return request({
url: '/admin/author/update',
method: 'post',
data: data
})
}
export function deleteAuthor(authorId) {
return request({
url: '/admin/author/delete/' + authorId,
method: 'get'
})
}