1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
| import request from '@/utils/request'
|
| let ArticleApi = {
| /*文章列表*/
| articlelist(data, errorback) {
| return request._post('/operations/plus.article.article/index', data, errorback);
| },
| /*获取文章分类*/
| getCategory(data, errorback) {
| return request._post('/operations/plus.article.category/index', data, errorback);
| },
| /*添加文章*/
| toAddArticle(data, errorback) {
| return request._get('/operations/plus.article.article/add', data, errorback);
| },
| /*添加文章*/
| addArticle(data, errorback) {
| return request._post('/operations/plus.article.article/add', data, errorback);
| },
| /*文章详情*/
| toEditArticle(data, errorback) {
| return request._get('/operations/plus.article.article/edit', data, errorback);
| },
| /*编辑文章*/
| editArticle(data, errorback) {
| return request._post('/operations/plus.article.article/edit', data, errorback);
| },
| /*删除文章*/
| deleteArticle(data, errorback) {
| return request._post('/operations/plus.article.article/delete', data, errorback);
| },
| /*添加分类*/
| addCategiry(data, errorback) {
| return request._post('/operations/plus.article.category/add', data, errorback);
| },
| /*编辑分类*/
| editCategory(data, errorback) {
| return request._post('/operations/plus.article.category/edit', data, errorback);
| },
| /*删除分类*/
| deleteCategory(data, errorback) {
| return request._post('/operations/plus.article.category/delete', data, errorback);
| },
|
|
| }
| export default ArticleApi;
|
|