netSaleWq.js
2.1 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
exports.domain = require('../config/common.js').domain;
//exports.domain = 'http://172.16.6.227:8083/yohobuy-platform-web';
exports.res = [
//商品描述
{
route: '/netSale/saveProductDesc',
method: 'POST',
url: '/product/saveProductDesc',
params: [{
name: 'productSkn',
type: 'Number'
}, {
name: 'productDesc',
type: 'String'
}]
},
//小编推荐
{
route: '/netSale/saveNetSaleRecommend',
method: 'POST',
url: '/product/saveNetSaleRecommend',
params: [{
name: 'productSkn',
type: 'Number'
}, {
name: 'recommend',
type: 'String'
}]
},
{ //查询搭配列表
route: "/netSale/selectCollocationListBySkn",
method: 'POST',
url: '/collocation/selectCollocationListBySkn',
params: [{
name: 'productSkn',
type: 'Number'
}, {
name: 'page',
type: 'Number'
}, {
name: 'size',
type: 'Number'
}]
}, { //获取单个商品搭配信息
route: '/netSale/selectCollocationById',
method: 'POST',
url: '/collocation/selectCollocationById',
params: [{
name: 'param',
type: 'Number'
}]
}, { //添加单个搭配
route: '/netSale/insertCollocation',
method: 'POST',
url: '/collocation/insertCollocation',
params: [{
name: 'productSkn',
type: 'Number'
}, {
name: 'imageUrl',
type: 'String'
}, {
name: 'content',
type: 'String'
}, {
name: 'infoStr',
type: 'String'
}]
}, { //更新单个搭配
route: '/netSale/updateCollocation',
method: 'POST',
url: '/collocation/updateCollocation',
params: [{
name: 'id',
type: 'Number'
}, {
name: 'imageUrl',
type: 'String'
}, {
name: 'content',
type: 'String'
}, {
name: 'infoStr',
type: 'String'
}]
}, { //删除单个搭配
route: '/netSale/delCollocationById',
method: 'POST',
url: '/collocation/delCollocationById',
params: [{
name: 'param',
type: 'Number'
}]
}, { //单独维护封面信息
//http://172.16.6.227:8083/yohobuy-platform-web/product/manageProductImg
route: '/netSale/manageProductImg',
method: 'POST',
url: '/product/manageProductImg',
params: [{
name: 'goodsImagesReq',
type: 'string'
}]
}
];