detail-notify-api.js
983 Bytes
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
module.exports = class extends global.yoho.BaseModel {
constructor(ctx) {
super(ctx);
}
/**
* 获得商品是否已经设置过到货通知
*/
getNotifyStatusAsync(sku, uid) {
let data = {
method: 'app.arrivalNotice.query',
erp_sku_id: sku,
uid: uid
};
return this.get({data});
}
/**
* 取消到货通知
*/
cancelNotifyAsync(sku, uid) {
let data = {
method: 'app.arrivalNotice.cancel',
erp_sku_id: sku,
uid: uid
};
return this.get({data});
}
/**
* 增加到货通知
*/
addNotifyAsync(skn, sku, uid, mobile) {
let data = {
method: 'app.arrivalNotice.add',
product_skn: skn,
erp_sku_id: sku,
uid: uid
};
if (mobile) {
data.mobile = mobile;
}
return this.get({data});
}
};