mirror of https://github.com/halo-dev/halo-admin
refactor: post status update api
parent
58899d4486
commit
7fd5f91e15
|
@ -40,11 +40,8 @@ commentApi.updateStatus = (target, commentId, status) => {
|
|||
|
||||
commentApi.updateStatusInBatch = (target, ids, status) => {
|
||||
return service({
|
||||
url: `${baseUrl}/${target}/comments/status`,
|
||||
data: {
|
||||
ids: ids,
|
||||
status: status
|
||||
},
|
||||
url: `${baseUrl}/${target}/comments/status/${status}`,
|
||||
data: ids,
|
||||
method: 'put'
|
||||
})
|
||||
}
|
||||
|
|
|
@ -60,11 +60,8 @@ postApi.updateStatus = (postId, status) => {
|
|||
|
||||
postApi.updateStatusInBatch = (ids, status) => {
|
||||
return service({
|
||||
url: `${baseUrl}/status`,
|
||||
data: {
|
||||
ids: ids,
|
||||
status: status
|
||||
},
|
||||
url: `${baseUrl}/status/${status}`,
|
||||
data: ids,
|
||||
method: 'put'
|
||||
})
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue