2017-08-28 05:12:44 +00:00
|
|
|
import fetch from '@/utils/fetch'
|
2017-04-19 10:43:57 +00:00
|
|
|
|
2017-08-28 05:12:44 +00:00
|
|
|
export function fetchList(query) {
|
2017-04-22 13:44:36 +00:00
|
|
|
return fetch({
|
2017-04-19 10:43:57 +00:00
|
|
|
url: '/article/list',
|
2017-08-28 05:12:44 +00:00
|
|
|
method: 'get',
|
|
|
|
params: query
|
2017-08-22 07:43:34 +00:00
|
|
|
})
|
2017-04-19 10:43:57 +00:00
|
|
|
}
|
2017-04-23 11:50:32 +00:00
|
|
|
|
2017-08-28 05:12:44 +00:00
|
|
|
export function fetchArticle() {
|
2017-04-23 11:50:32 +00:00
|
|
|
return fetch({
|
|
|
|
url: '/article/detail',
|
|
|
|
method: 'get'
|
2017-08-22 07:43:34 +00:00
|
|
|
})
|
2017-04-23 11:50:32 +00:00
|
|
|
}
|
|
|
|
|
2017-08-28 05:12:44 +00:00
|
|
|
export function fetchPv(pv) {
|
|
|
|
return fetch({
|
|
|
|
url: '/article/pv',
|
|
|
|
method: 'get',
|
|
|
|
params: { pv }
|
|
|
|
})
|
|
|
|
}
|
|
|
|
|