custom.js 895 Bytes
/**
 * 新增参数sign 判断接口是否需要sign签名
 */
/**
 * 用法 : this.$apis.demo.GETLISTDEVICEFILEUNSTOCK(...)
 * @param {*} params
 * @returns
 */
import { http } from '@/main'

const getStaffList = params => {
  params.method = 'entmicro.api.staff.findStaffByMerchantId'
  return http({
    url: '/rop-scrm-entmicro/router',
    method: 'GET',
    data: params,
    sign: true
  })
}
const listDepartmentTree = params => {
  params.method = 'entmicro.api.department.listDepartmentTree'
  return http({
    url: '/rop-scrm-entmicro/router',
    method: 'GET',
    data: params,
    sign: true
  })
}
const queryCrowdTree = params => {
  params.method = 'scrm.api.datahub.user.queryCrowdTree'
  return http({
    url: '/rop-scrm-datahub/router',
    method: 'POST',
    data: params,
    sign: true
  })
}

export default {
  getStaffList,
  listDepartmentTree,
  queryCrowdTree
}