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.
 
 
 
 
 
 
yanzong_qianduan/api/article/index.js

43 lines
1.0 KiB

import request from '@/utils/request'
// api地址
const api = {
list: 'article/list',
detail: 'article/detail',
del: 'storeKeeper/articleDelete',
edit: 'storeKeeper/articleEdit',
add: 'storeKeeper/articleAdd',
articleCatList: 'article.category/list',
articleCatAdd: 'storeKeeper/articleCatAdd',
articleCatDelete: 'storeKeeper/articleCatDelete',
articleCatEdit: 'storeKeeper/articleCatEdit'
}
// 文章分类列表
export function articleCatList(param, option) {
return request.get(api.articleCatList, param, option)
}
// 文章 编辑
export function edit(param, option) {
return request.post(api.edit, param, option)
}
// 文章 新增
export function add(param, option) {
return request.post(api.add, param, option)
}
// 文章 删除
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 })
}