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}); } };