You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
import request from '@/utils/request'
|
|
|
|
|
|
|
|
// api地址
|
|
|
|
const api = {
|
|
|
|
list: 'article/list',
|
|
|
|
detail: 'article/detail',
|
|
|
|
del: 'article/del'
|
|
|
|
}
|
|
|
|
// 文章列表
|
|
|
|
export function del(param, option) {
|
|
|
|
return request.post(api.del, param, option)
|
|
|
|
}
|
|
|
|
|
|
|
|
// 文章列表
|
|
|
|
export function list(param, option) {
|
|
|
|
return request.get(api.list, param, option)
|
|
|
|
}
|
|
|
|
|
|
|
|
// 文章详情
|
|
|
|
export function detail(articleId) {
|
|
|
|
return request.get(api.detail, { articleId })
|
|
|
|
}
|