suggest.js
2.43 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
/**
* Created by jiangmin on 16/5/9.
*/
//接口主域
exports.domain = require('../config/common.js').domain;
//exports.domain = 'http://172.16.6.225:8080/platform';
//路由配置
exports.res = [
{
//页面渲染
route: '/suggest/suggest/index',
method: 'GET',
view: 'pages/suggest/index',
src: '/suggest/index'
},
//列表
{
route: '/suggest/suggest/getSuggestList',
method: 'POST',
url: '/suggest/suggest/getSuggestList',
params: [
{name: 'page', type: 'Number', def: '1'},
{name: 'size', type: 'Number', def: '10'},
{name: 'uid', type: 'String'},//uid
{name: 'startTime', type: 'String'},//开始时间
{name: 'endTime', type: 'String'},//结束时间
{name: 'isHot', type: 'String'},//是否热门(0:不热门,1:热门)
{name: 'status', type: 'String'},//状态(0:未回复,1:已回复,2:已发送)
{name: 'clientType', type: 'String'},//来源
{name: 'appVersion', type: 'String'},//版本号
{name: 'replyPersonId', type: 'String'}//反馈人
]
},
{
//回复APP意见
route: '/suggest/suggest/replySuggest',
method: 'POST',
url: '/suggest/suggest/replySuggest',
params: [
{name: 'id', type: 'String'},//id
{name: 'replyContent', type: 'String'}//回复内容
]
},
{
//设置热门/非热门接口
route: '/suggest/suggest/setHotSuggest',
method: 'POST',
url: '/suggest/suggest/setHotSuggest',
params: [
{name: 'id', type: 'String'},
{name: 'isHot', type: 'Number'}
]
},
{
//删除APP意见
route: '/suggest/suggest/deleteSuggest',
method: 'POST',
url: '/suggest/suggest/deleteSuggest',
params: [
{name: 'id', type: 'String'}
]
},
{
//发送APP意见
route: '/suggest/suggest/publishSuggest',
method: 'POST',
url: '/suggest/suggest/publishSuggest',
params: [
{name: 'id', type: 'String'}
]
},
{
//批量发送APP意见
route: '/suggest/suggest/batchPublishSuggest',
method: 'POST',
url: '/suggest/suggest/batchPublishSuggest',
params: [
{name: 'id', type: 'String'}
]
}
];