mirror of https://github.com/halo-dev/halo-admin
parent
ae5ffd9d3a
commit
a98566e4cd
@ -0,0 +1,23 @@
|
||||
import service from '@/utils/service'
|
||||
|
||||
const baseUrl = '/api/admin/journals'
|
||||
|
||||
const journalApi = {}
|
||||
|
||||
journalApi.query = params => {
|
||||
return service({
|
||||
url: baseUrl,
|
||||
params: params,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
journalApi.create = (journal) => {
|
||||
return service({
|
||||
url: baseUrl,
|
||||
data: journal,
|
||||
method: 'post'
|
||||
})
|
||||
}
|
||||
|
||||
export default journalApi
|
Loading…
Reference in new issue