shop-api.js
449 Bytes
const {CUSTOM_HEADER} = require('./vars');
module.exports = class extends global.yoho.BaseModel {
constructor(ctx) {
super(ctx);
}
getBrandListData(channel) {
let data = {
method: 'app.brand.allBrandList'
};
if (!isNaN(channel)) {
data.yh_channel = channel;
}
return this.get({
data: data,
param: Object.assign({
code: 200,
cache: true
}, CUSTOM_HEADER)
});
}
};