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

44 lines
1.0 KiB

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