import request from '@/utils/request';
import { AxiosPromise } from 'axios';
import { LeaveListVO, LeaveListQuery } from './types';

export const getListData = (query?: LeaveListQuery): AxiosPromise<LeaveListVO[]> => {
  return request({
    url: '/zjk/leave/adminList',
    method: 'get',
    params: query
  });
};
