productBatch.js
1.86 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
/**
* 商品量贩
*/
module.exports={
namespace:"productBatch",
apis:{
productBatchList:{
title: "单品列表 ajax 分页",
url: '/productBatchList',
params: [
{name: 'productSkn', type: 'String'},
{name: 'productName', type: 'String'},
{name: 'brand', type: 'Number'},
{name: 'minCount', type: 'Number'},
{name: 'page', type: 'Number'},
{name: 'size', type: 'Number'}
]
},
productBatchUpdate: {
title: "保存编辑",
url: '/productBatchUpdate',
params: [
{ name: 'id', type: 'Number'},
{ name: 'productSkn', type: 'String'},
{ name: 'discount', type: 'Number'},
{ name: 'status', type: 'Number'},
{ name: 'minCount', type: 'Number'},
{ name: 'promotionPhrase', type: 'String'}
]
},
productBatchTrigger: {
title: "开启关闭",
url: "/productBatchTrigger",
params: [
{ name: 'id', type: 'Number'},
{ name: 'status', type: 'Number'}
]
},
findProductBatchByID: {
title: "查询单个商品量贩",
url: "/findProductBatchByID",
params: [
{ name: 'id', type: 'Number'}
]
},
findBatchHistory: {
title: "查询操作历史记录",
url: "/findBatchHistory",
params: [
{ name: 'id', type: 'Number'}
]
},
syncProductBatchToFront: {
title: "同步到前台",
url: "/syncProductBatchToFront",
params: [
{ name: 'id', type: 'Number'}
]
}
}
}