import request from '@/utils/request';
import { AxiosPromise } from 'axios';
import { FormType } from './types';

export const getRule = (query?: FormType): AxiosPromise<FormType> => {
  return request({
    url: '/zjk/leave/getRule',
    method: 'get',
    params: query
  });
};
export const setRule = (data?: FormType): AxiosPromise<any> => {
  return request({
    url: '/zjk/leave/setRule',
    method: 'put',
    data
  });
};
