You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
14 lines
401 B
14 lines
401 B
import { request } from '@umijs/max';
|
|
import type { CurrentUser, ListItemDataType } from './data.d';
|
|
|
|
export async function queryCurrent(): Promise<{ data: CurrentUser }> {
|
|
return request('/api/currentUserDetail');
|
|
}
|
|
|
|
export async function queryFakeList(params: {
|
|
count: number;
|
|
}): Promise<{ data: { list: ListItemDataType[] } }> {
|
|
return request('/api/fake_list_Detail', {
|
|
params,
|
|
});
|
|
}
|
|
|