guang.js
2.28 KB
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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
/**
* Created by wangqianjun on 16/3/22.
* Interface for Guang Model
*/
exports.domain =require('../config/common.js').domain;
//【资讯管理】
exports.res = [
{//逛-> 资讯管理 空白页
route:'/guang/article/index',
method:'GET',
view:'pages/guang/infoManager',
src: '/guang/infoManager',
data:{
iscreate:true
}
}, {
// 资讯管理列表数据
route:'/guang/article/list',
method:'POST',
url: '/guang/article/getList',
params:[
{name: 'articleTitle',type: 'String'},
{name: 'articleGender',type: 'String'},
{name: 'authorId',type: 'Number'},
{name: 'maxSortId',type: 'Number'},
{name: 'status',type: 'Number'},
{name: 'orderBy',type: 'String'},
{name: 'startTime',type: 'String'},
{name: 'endTime',type: 'String'}
]
}, {
// 资讯管理-列表操作(修改、发布、关闭、推荐、取消推荐)
route:'/guang/article/operation',
method:'POST',
url: '/guang/article/updateArticle',
params:[
{name: 'id',type: 'Number'},
{name: 'articleTitle',type: 'String'},
{name: 'articleGender',type: 'String'},
{name: 'authorId',type: 'Number'},
{name: 'maxSortId',type: 'Number'},
{name: 'minSortId',type: 'Number'},
{name: 'articleSummary',type: 'String'},
{name: 'coverImage',type: 'String'},
{name: 'status',type: 'Number'},
{name: 'coverImageType',type: 'Number'},
{name: 'articleType',type: 'Number'},
{name: 'adsImgSize',type: 'String'},
{name: 'isRecommend',type: 'Number'},
]
},
//【文章分类管理】
//【标签管理】
//【标签分类管理】
//【评论管理】
//【作者管理】
// [下拉框调用的接口]
{// 作者
route:'/guang/article/getAuthorList',
method:'POST',
url: '/guang/article/getAuthorList',
params:[
{name: 'idName',type: 'String'},
]
},
{// 所有分类
route:'/guang/article/getSortList',
method:'POST',
url: '/guang/article/getSortList',
},
];