添加注释 使扁平的代码可以折叠

190 阅读1分钟
  // #region 商户列表
  companySearch: (data) => common({ url: urls.light.companySearch, data, method: 'post' }),
  companyAdd: (data) => common({ url: urls.light.companyAdd, data, method: 'post' }),
  companyDelete: (data) => common({ url: urls.light.companyDelete, data, method: 'post' }),
  companyEdit: (data) => common({ url: urls.light.companyEdit, data, method: 'post' }),
  companyFastAdd: (data) => common({ url: urls.light.companyQuickAdd, data, method: 'post' }),
  companySetOperate: (data) => common({ url: urls.light.companySetOperate, data, method: 'post' }),
  relatedBrand: (data) => common({ url: urls.light.relatedBrand, data, method: 'post' }),
  companyBaiduCheck: (id) => common({ url: urls.light.companyBaiduCheck + id, data: {}, method: 'post' }),
  companyBaiduView: (id) => common({ url: urls.light.companyBaiduView + id, data: {}, method: 'post' }),
  companyBaiduResetCheck: (id) => common({ url: urls.light.companyBaiduResetCheck + id, data: {}, method: 'post' }),
  companyBaiduPhone: (id) => common({ url: urls.light.companyBaiduPhone + id, data: {}, method: 'post' }),
  // #endregion