import { useRequest } from 'umi';

const useUserFetch = () => {
  const user = useRequest((params) => {
    return {
      url: '/goapi/app/users',
      method: 'get',
      params: params,
    };
  });
  return {
    ...user,
  };
};

export default useUserFetch;
