import { post } from "./api.js" import CustomGroup from './csGroup.js' export default { allCustom : new CustomGroup('customer/getallcustomer'), dealCustom : new CustomGroup('customer/getdealcustomer'), followCustom : new CustomGroup('customer/getfollowcustomer'), waitCustom : new CustomGroup('customer/getwaitcustomer'), /** * @param {Object} index 根据传递进来的索引,返回不同的CustomGroup */ getTargetGroupByIndex : function(index){ if(index == 0){ return this.allCustom; }else if(index == 1){ return this.dealCustom; }else if(index == 2){ return this.followCustom; } return this.waitCustom; } }