import request from '@/utils/request';
import { AxiosPromise } from 'axios';
import { LeaveApprovalVO, LeaveApprovalQuery } from './types';

export const getTableList = (query?: LeaveApprovalQuery): AxiosPromise<LeaveApprovalVO[]> => {
  return request({
    url: '/zjk/leave/splist',
    method: 'get',
    params: query
  });
};
