search-api.js
424 Bytes
/**
* Created by TaoHuang on 2016/6/14.
*/
'use strict';
const {CUSTOM_HEADER} = require('./vars');
module.exports = class extends global.yoho.BaseModel {
constructor(ctx) {
super(ctx);
}
async getBrands(params) {
return this.get({
data: Object.assign({
method: 'web.regular.aggBrand'
}, params),
param: CUSTOM_HEADER
});
}
};