import { request } from 'umi';

export async function query() {
    return request<API.CurrentUser[]>('/api/users');
}
// 查询当前用户角色
export async function person_auth(params: any) {
    return request('/api/auth/personal_center/', { params });
}
// 查询当前用户基本信息
export async function person_auth_info() {
    return request('/api/auth/personal_home/');
}
export async function queryCurrent() {
    return request<API.CurrentUser>('/api/currentUser');
}

export async function queryNotices(): Promise<any> {
    return request<{ data: API.NoticeIconData[] }>('/api/notices');
}