operations.limit.js
4.73 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
/**
* Created by ty on 2016/6/22.
* 限售商品管理
*/
module.exports={
namespace:"limit",
apis:{
getLimitProductList:{
title: "【限购商品】ajax分页",
url: '/limitProduct/getLimitProductList',
params: [
{name: 'hotFlag', type: 'Number'},
{name: 'saleFlag', type: 'Number'},
{name: 'showFlag', type: 'Number'},
{name: 'productName', type: 'String'},
{name: 'productSkn', type: 'String'},
{name: 'page', type: 'Number'},
{name: 'size', type: 'Number'}
]
},
addLimitProduct:{
title: "【限购商品】ajax添加",
url: '/limitProduct/addLimitProduct',
params: [
{name: 'productName', type: 'String'},
{name: 'attachmentContent', type: 'String'},
{name: 'batchNo', type: 'Number'},
{name: 'dayFlag', type: 'Number'},
{name: 'saleTimeStr', type: 'String'},
{name: 'hotFlag', type: 'Number'},
{name: 'orderBy', type: 'Number'},
{name: 'notSaleOrderBy', type: 'Number'},
{name: 'limitProductType', type: 'Number'},
{name: 'activityId', type: 'Number'}
]
},
updateLimitProduct:{
title: "【限购商品】ajax修改",
url: '/limitProduct/updateLimitProduct',
params: [
{name: 'id', type: 'Number'},
{name: 'productName', type: 'String'},
{name: 'attachmentContent', type: 'String'},
{name: 'batchNo', type: 'String'},
{name: 'saleTimeStr', type: 'String'},
{name: 'hotFlag', type: 'Number'},
{name: 'orderBy', type: 'Number'},
{name: 'notSaleOrderBy', type: 'Number'},
{name: 'dayFlag', type: 'Number'},
{name: 'showFlag', type: 'Number'},
{name: 'status', type: 'Number'},
{name: 'limitProductType', type: 'Number'},
{name: 'activityId', type: 'Number'}
]
},
getCountByStatus:{
title: "获取各状态数量",
url: '/limitProduct/getCountByStatus',
params: [
{name: 'hotFlag', type: 'Number'},
{name: 'saleFlag', type: 'Number'},
{name: 'showFlag', type: 'Number'},
{name: 'productName', type: 'String'},
{name: 'productSkn', type: 'String'}
]
},
auditLimitProduct:{
title: "更改商品状态",
url: '/limitProduct/auditLimitProduct',
params: [
{name: 'id', type: 'Number'},
{name: 'showFlag', type: 'Number'},
{name: 'hotFlag', type: 'Number'},
{name: 'orderBy', type: 'Number'},
{name: 'notSaleOrderBy', type: 'Number'}
]
},
deleteLimitProduct:{
title: "删除限购商品",
url: '/limitProduct/deleteLimitProduct',
params: [
{name: 'id', type: 'Number'}
]
},
checkBatchNoExist:{
title: "检查BatchNo是否存在",
url: '/limitProduct/checkBatchNoExist',
params: [
{name: 'batchNo', type: 'Number'},
{name: 'id', type: 'Number'}
]
},
checkLimitCodeByBatchNo:{
title: "根据BatchNo检查限购码是否正确",
url:'/limitCode/checkLimitCodeByBatchNo',
params:[
{name:"batchNo",type:'Number'},
{name:"id",type:"Number"}
]
},
export:{
title: "导出",
url: '/batch/export',
params: [
{name: 'queryConf', type: 'String'},
{name: 'type', type: 'String'}
]
},
checkActivityIdExists:{
title: "检查活动是否存在",
url:'/DrawlineActivityRest/checkActivityIdExists',
params:[
{name:"activityId",type:"Number"}
]
},
checkActivityIdNoExist:{
title: "检查活动是否存在",
url:'/limitProduct/checkActivityIdNoExist',
params:[
{name:"activityId",type:"Number"},
{name:"id",type:"Number"}
]
},
getLimitProduct:{
title: "根据id获取限购商品",
url: '/limitProduct/getLimitProduct',
params: [
{name: "id", type: "String"}
]
}
}
}