subjectManage.js
2.63 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
// exports.domain = "http://192.168.102.201:8082/platform";
exports.domain = require('../config/common.js').domain;
//exports.domain = "http://172.16.6.210:8083/platform";
exports.res = [
{
route: '/runManage/subjectManage/index',
method: 'GET',
view: 'pages/product/subjectManage',
src: '/product/subjectManage'
},
{
route: '/runManage/subjectManage/subjectList',//活动列表
method: 'POST',
isJsonRaw: true,
url: '/activity/querySpecialActivityPage',
params: [
{name: 'page', type: 'number'},
{name: 'size', type: 'number',def:10},
{name: 'sort', type: 'string'},
{name: 'title', type: 'string'},
{name: 'plateform', type: 'string'},
{name: 'status', type: 'number'}
]
},
{
route: '/runManage/subjectManage/addSubject',//添加活动
method: 'POST',
isJsonRaw: true,
url: '/activity/addSpecialActivity',
params: [
{name: 'sort', type: 'string'},
{name: 'title', type: 'string'},
{name: 'plateform', type: 'string'},
{name: 'promotionName', type: 'string'},
{name: 'startTime', type: 'number'},
{name: 'endTime', type: 'number'},
{name: 'startTime', type: 'number'},
{name: 'productPoolId', type: 'number'},
{name: 'coverUrl', type: 'string'},
{name: 'logoUrl', type: 'string'},
{name: 'webUrl', type: 'string'},
{name: 'orderNum', type: 'number'}
]
},
{
route: '/runManage/subjectManage/modify',//修改活动
method: 'POST',
isJsonRaw: true,
url: '/activity/updateByPrimaryKey',
params: [
{name: 'id', type: 'number'},
{name: 'sort', type: 'string'},
{name: 'title', type: 'string'},
{name: 'plateform', type: 'string'},
{name: 'promotionName', type: 'string'},
{name: 'startTime', type: 'number'},
{name: 'endTime', type: 'number'},
{name: 'startTime', type: 'number'},
{name: 'productPoolId', type: 'number'},
{name: 'coverUrl', type: 'string'},
{name: 'logoUrl', type: 'string'},
{name: 'webUrl', type: 'string'},
{name: 'orderNum', type: 'number'}
]
},
{
route: '/runManage/subjectManage/delSubject',//删除活动
method: 'POST',
isJsonRaw: true,
url: '/activity/deleteSpecialActivity',
params: [
{name: 'id', type: 'number'}
]
},
{
route: '/runManage/subjectManage/queryBaseProductPoolListByName',
method: 'POST',
isJsonRaw: true,
url: '/pool/queryBaseProductPoolList',
params: [
{name: 'poolName', type: 'string'}
]
},
{
route: '/runManage/subjectManage/queryBaseProductPoolListById',
method: 'POST',
isJsonRaw: true,
url: '/pool/queryBaseProductPoolList',
params: [
{name: 'id', type: 'number'}
]
}];