2017-11-07 05:55:57 +00:00
|
|
|
import request from '@/utils/request'
|
2017-04-19 10:43:57 +00:00
|
|
|
|
2017-08-28 05:12:44 +00:00
|
|
|
export function fetchList(query) {
|
2017-11-07 05:55:57 +00:00
|
|
|
return request({
|
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-11-07 05:55:57 +00:00
|
|
|
return request({
|
2017-04-23 11:50:32 +00:00
|
|
|
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) {
|
2017-11-07 05:55:57 +00:00
|
|
|
return request({
|
2017-08-28 05:12:44 +00:00
|
|
|
url: '/article/pv',
|
|
|
|
method: 'get',
|
|
|
|
params: { pv }
|
|
|
|
})
|
|
|
|
}
|
|
|
|
|