guang.js
10.4 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
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
/**
* 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'},
{name: 'page', type: 'Number'},
{name: 'size', type: 'Number'},
]
}, {
// 资讯管理-列表操作(修改、发布、关闭、推荐、取消推荐)
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/timmer',
method: 'POST',
url: '/guang/article/timePublish',
params: [
{name: 'id', type: 'Number'},
{name: 'publishTime', type: 'String'}
]
},
{
// 资讯管理-删除
route: '/guang/article/del',
method: 'POST',
url: '/guang/article/delArticle',
params: [
{name: 'id', type: 'Number'}
]
},
//=================================【文章分类管理】
{//逛-> 文章分类管理 空白页
route: '/guang/article/sortindex',
method: 'GET',
view: 'pages/guang/articleCategoryManager',
src: '/guang/articleCategoryManager',
data: {
iscreate: true
}
}, {
// 文章分类管理列表数据
route: '/guang/article/categoryist',
method: 'POST',
url: '/guang/article/sort/getList',
params: [
{name: 'page', type: 'Number'},
{name: 'size', type: 'Number'},
]
}, {
// 文章分类管理-编辑
route: '/guang/article/sort/update',
method: 'POST',
url: '/guang/article/sort/updateSort',
params: [
{name: 'id', type: 'Number'},
{name: 'parentId', type: 'Number'},
{name: 'orderBy', type: 'Number'},
{name: 'status', type: 'Number'},
{name: 'name', type: 'String'},
{name: 'advertCode', type: 'String'},
]
}, {
// 文章分类管理-添加
route: '/guang/article/sort/add',
method: 'POST',
url: '/guang/article/sort/addSort',
params: [
{name: 'parentId', type: 'Number'},
{name: 'orderBy', type: 'Number'},
{name: 'status', type: 'Number'},
{name: 'name', type: 'String'},
{name: 'advertCode', type: 'String'},
]
},
{
// 文章分类管理-删除
route: '/guang/article/sort/del',
method: 'POST',
url: '/guang/article/sort/delSort',
params: [
{name: 'id', type: 'Number'}
]
},
//=================================【标签管理】
{//逛-> 标签管理 空白页
route: '/guang/tags/index',
method: 'GET',
view: 'pages/guang/tagManager',
src: '/guang/tagManager',
data: {
iscreate: true
}
},{
// 标签管理列表数据
route: '/guang/tags/getList',
method: 'POST',
url: '/guang/tags/getList',
params: [
{name: 'page', type: 'Number'},
{name: 'size', type: 'Number'},
{name: 'isHot', type: 'Number'},
{name: 'status', type: 'Number'},
{name: 'classifyId', type: 'Number'},
{name: 'tagName', type: 'String'},
]
}, {
// 标签管理-编辑
route: '/guang/tags/updateTag',
method: 'POST',
url: '/guang/tags/updateTag',
params: [
{name: 'id', type: 'Number'},
{name: 'tagName', type: 'String'},
{name: 'classifyId', type: 'Number'},
{name: 'isHot', type: 'Number'},
{name: 'status', type: 'Number'},
]
}, {
// 标签管理-添加
route: '/guang/tags/addTag',
method: 'POST',
url: '/guang/tags/addTag',
params: [
{name: 'tagName', type: 'String'},
{name: 'classifyId', type: 'Number'},
{name: 'isHot', type: 'Number'},
{name: 'status', type: 'Number'},
]
},
{
// 标签管理-删除
route: '/guang/tags/delTag',
method: 'POST',
url: '/guang/tags/delTag',
params: [
{name: 'id', type: 'Number'}
]
},
//=================================【标签分类管理】
{//逛-> 标签分类管理 空白页
route: '/guang/tags/sort',
method: 'GET',
view: 'pages/guang/tagCategoryManager',
src: '/guang/tagCategoryManager',
data: {
iscreate: true
}
}, {
// 标签分类管理列表数据
route: '/guang/tags/sort/list',
method: 'POST',
url: '/guang/tagSort/getList',
params: [
{name: 'page', type: 'Number'},
{name: 'size', type: 'Number'},
]
}, { // 标签分类管理-编辑
route: '/guang/tags/sort/update',
method: 'POST',
url: '/guang/tagSort/updateSort',
params: [
{name: 'id', type: 'Number'},
{name: 'status', type: 'Number'},
{name: 'orderBy', type: 'Number'},
{name: 'classifyName', type: 'String'},
]
}, {
// 标签分类管理-添加
route: '/guang/tags/sort/add',
method: 'POST',
url: '/guang/tagSort/addSort',
params: [
{name: 'status', type: 'Number'},
{name: 'orderBy', type: 'Number'},
{name: 'classifyName', type: 'String'},
]
},
{
// 标签分类管理-删除
route: '/guang/tags/sort/del',
method: 'POST',
url: '/guang/tagSort/delSort',
params: [
{name: 'id', type: 'Number'}
]
},
//=================================【评论管理】
{//逛-> 评论管理 空白页
route: '/guang/comments/index',
method: 'GET',
view: 'pages/guang/commentManager',
src: '/guang/commentManager',
data: {
iscreate: true
}
}, {
// 评论管理列表数据
route: '/guang/comment/getList',
method: 'POST',
url: '/guang/comment/getList',
params: [
{name: 'page', type: 'Number'},
{name: 'size', type: 'Number'},
{name: 'status', type: 'Number'},
{name: 'condContent', type: 'String'},
{name: 'condNum', type: 'Number'},
]
}, {
// 评论管理-审核
route: '/guang/comment/audit',
method: 'POST',
url: '/guang/comment/audit',
params: [
{name: 'id', type: 'String'},
{name: 'status', type: 'Number'},
]
}, {
// 评论管理-获取筛选条件
route: '/guang/comment/getItems',
method: 'POST',
url: '/guang/comment/getItems',
},
//=================================【作者管理】
{//逛-> 作者管理 空白页
route: '/guang/author/index',
method: 'GET',
view: 'pages/guang/authorManager',
src: '/guang/authorManager',
data: {
iscreate: true
}
}, {
// 作者管理列表数据
route: '/guang/author/getList',
method: 'POST',
url: '/guang/author/getList',
params: [
{name: 'page', type: 'Number'},
{name: 'size', type: 'Number'},
]
}, {
// 作者管理-添加
route: '/guang/author/addAuthor',
method: 'POST',
url: '/guang/author/addAuthor',
params: [
{name: 'username', type: 'String'},
{name: 'avatar', type: 'String'},
{name: 'authorDesc', type: 'String'},
]
}, {
// 作者管理-编辑
route: '/guang/author/updateAuthor',
method: 'POST',
url: '/guang/author/updateAuthor',
params: [
{name: 'uid', type: 'Number'},
{name: 'username', type: 'String'},
{name: 'avatar', type: 'String'},
{name: 'authorDesc', type: 'String'},
]
},
{
// 作者管理-删除
route: '/guang/author/delAuthor',
method: 'POST',
url: '/guang/author/delAuthor',
params: [
{name: 'uid', 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',
},
{// 根据是否启用获取标签分类列表
route: '/guang/tagSort/getTagItems',
method: 'POST',
url: '/guang/tagSort/getTagItems',
params: [
{name: 'status', type: 'Number'},
]
},
];