mirror of https://github.com/halo-dev/halo-admin
Add tag api
parent
ce70dcd199
commit
cccfe19ac7
|
@ -0,0 +1,28 @@
|
|||
import service from '@/utils/service'
|
||||
|
||||
const baseUrl = '/admin/api/tags'
|
||||
|
||||
const tagApi = {}
|
||||
|
||||
tagApi.listAll = () => {
|
||||
return service({
|
||||
url: baseUrl,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
tagApi.listAllAddition = () => {
|
||||
return service({
|
||||
url: `${baseUrl}/addition`,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
tagApi.create = tag => {
|
||||
return service({
|
||||
url: `${baseUrl}`,
|
||||
method: 'post'
|
||||
})
|
||||
}
|
||||
|
||||
export default tagApi
|
Loading…
Reference in New Issue