employee.js 1.57 KB
import { http } from '@/main'
var defaultPath = 'cn.com.glsx.merchants.'

const getListApi = params => {
  params.method = `${defaultPath}staff.findStaffByPage`
  return http({
    url: '/rop-merchants/router',
    method: 'POST',
    data: params,
    sign: true
  })
}

const getAllMerchantListApi = params => {
  params.method = `${defaultPath}menu.findAllMerchant`
  return http({
    url: '/rop-merchants/router',
    method: 'POST',
    data: params,
    sign: true
  })
}

const getRoleListApi = params => {
  params.method = 'org.ore.api.role.list'
  return http({
    url: '/rop-merchants/router',
    method: 'POST',
    data: params,
    sign: true
  })
}

const getAllDictApi = params => {
  params.method = `${defaultPath}menu.findAllDictData`
  return http({
    url: '/rop-merchants/router',
    method: 'POST',
    data: params,
    sign: true
  })
}

const getMerchantTreeApi = params => {
  params.method = `${defaultPath}merchant.findMerchantTree`
  return http({
    url: '/rop-merchants/router',
    method: 'POST',
    data: params,
    sign: true
  })
}

const getDetailInfoApi = params => {
  params.method = `${defaultPath}staff.staffSearchRequest`
  return http({
    url: '/rop-merchants/router',
    method: 'POST',
    data: params,
    sign: true
  })
}

const getDetailLogApi = params => {
  params.method = `${defaultPath}menu.findLog`
  return http({
    url: '/rop-merchants/router',
    method: 'POST',
    data: params,
    sign: true
  })
}

export { getListApi, getAllMerchantListApi, getRoleListApi, getAllDictApi, getMerchantTreeApi, getDetailInfoApi, getDetailLogApi }