service.ts 234 Bytes
Newer Older
duanledexianxianxian's avatar
duanledexianxianxian committed
1
import { get } from '@/utils/request';
duanledexianxianxian's avatar
duanledexianxianxian committed
2 3

export async function queryCurrent() {
duanledexianxianxian's avatar
duanledexianxianxian committed
4
  return get('/api/currentUser');
duanledexianxianxian's avatar
duanledexianxianxian committed
5 6 7
}

export async function queryFakeList(params: { count: number }) {
duanledexianxianxian's avatar
duanledexianxianxian committed
8
  return get('/api/fake_list', {
duanledexianxianxian's avatar
duanledexianxianxian committed
9 10 11
    params,
  });
}