customService.promotion.js
6.16 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
module.exports={
namespace:"promotion",
apis:{
addPromotionInfo:{
title:"新增",
url:"/promotion/addPromotionInfo",
params:[
{name: 'title', type: 'string'},
{name: 'description', type: 'string'},
{name: 'fitChannel', type: 'string'},
{name: 'startTimeStr', type: 'string'},
{name: 'endTimeStr', type: 'string'},
{name: 'priority', type: 'Number'},
{name: 'status', type: 'Number'},
{name: 'erpPromotionType', type: 'Number'},
{name: 'erpPromotionId', type: 'Number'},
{name: 'noticeStatus', type: 'Number'},
{name: 'noticeDesc', type: 'string'},
{name: 'showStatus', type: 'Number'}
]
},
updatePromotionInfo:{
title:"修改",
url:"/promotion/updatePromotionInfo",
params:[
{name: 'id', type: 'Number'},
{name: 'title', type: 'string'},
{name: 'description', type: 'string'},
{name: 'fitChannel', type: 'string'},
{name: 'startTimeStr', type: 'string'},
{name: 'endTimeStr', type: 'string'},
{name: 'priority', type: 'Number'},
{name: 'status', type: 'Number'},
{name: 'erpPromotionType', type: 'Number'},
{name: 'erpPromotionId', type: 'Number'},
{name: 'noticeStatus', type: 'Number'},
{name: 'noticeDesc', type: 'string'},
{name: 'showStatus', type: 'Number'}
]
},
getPromotionInfo:{
title:"查询",
url:"/promotion/getPromotionInfo",
params:[
{name: 'param', type: 'Number'}
]
},
deletePromotionInfo:{
title:"删除",
url:"/promotion/deletePromotionInfo",
params:[
{name: 'param', type: 'Number'}
]
},
updatePromotionNoticeStatus:{
title:"开启促销预告",
url:"/promotion/updatePromotionNoticeStatus",
params:[
{name: 'id', type: 'Number'},
{name: 'noticeStatus', type: 'Number'}
]
},
updatePromotionStatus:{
title:"开启促销",
url:"/promotion/updatePromotionStatus",
params:[
{name: 'id', type: 'Number'},
{name: 'status', type: 'Number'}
]
},
getPromotionInfoList:{
title:"查询列表",
url:"/promotion/getPromotionInfoList",
params:[
{name: 'status', type: 'Number'},
{name:'is_valid',type:'Number'},
{name:'show_status',type:'Number'},
{name: 'sort_type', type: 'Number'},
{name: 'title', type: 'string'},
{name: 'description', type: 'string'},
{name: 'page',type: 'Number'},
{name: 'size',type: 'Number'}
]
},
getpromotionProductFlags:{
title:"查询促销标记列表",
url:"/promotionProductFlags/getAllPromotionProductFlags",
params:[]
},
setReject:{
title:"设置促销互斥",
url:"/promotion/setReject",
params:[
{name: 'promotionId', type: 'Number'},
{name: 'rejectParam', type: 'string'}
]
},
setCondition:{
title:"设置促销条件",
url:"/promotion/setCondition",
params:[
{name: 'promotionId', type: 'Number'},
{name: 'conditionParam', type: 'string'}
]
},
setLimit:{
title:"设置促销限制",
url:"/promotion/setLimit",
params:[
{name: 'promotionId', type: 'Number'},
{name: 'limitParam', type: 'string'}
]
},
setOperation:{
title:"设置促销操作",
url:"/promotion/setOperation",
params:[{name: 'promotionId', type: 'Number'},
{name: 'promotionType', type: 'string'},
{name: 'actionParam', type: 'string'}
]
},
setDisplay:{
title:"设置促销显示",
url:"/promotion/setDisplay",
params:[{name: 'id', type: 'Number'},
{name: 'promotionUrl', type: 'string'},
{name: 'commonBanner', type: 'string'},
{name: 'shoppingCartBanner', type: 'string'},
]
},
setMulti:{
title:"设置促销多档",
url:"/promotion/setMulti",
params:[{name:'promotionId',type:'Number'},
{name:'multiParam',type:'string'}]
},
getMultiPromotionPage:{
title:"促销多档列表",
url:"/promotion/getMultiPromotionPage",
params:[
{name: 'id',type: 'Number'},
{name: 'promotionType', type: 'string'},
{name: 'page',type: 'Number'},
{name: 'size',type: 'Number'}
]
},
getActivePromotionInfoList:{
title:"设置促销显示",
url:"/promotion/getActivePromotionInfoList",
params:[
{name: 'id', type: 'Number'},
{name: 'startTimeStr', type: 'string'},
{name: 'endTimeStr', type: 'string'},
{name: 'page',type: 'Number'},
{name: 'size',type: 'Number'}
]
},
getPromotionLogList:{
title:"促销日志",
url:"/promotionLog/getPromotionLogList",
params:[
{name: 'promotionId', type: 'Number'},
{name: 'startTimeStr', type: 'string'},
{name: 'endTimeStr', type: 'string'},
{name:'type',type:'Number'},
{name: 'page',type: 'Number'},
{name: 'size',type: 'Number'}
]
}
}
}