user.ts 400 Bytes
Newer Older
duanledexianxianxian's avatar
sync  
duanledexianxianxian committed
1
import { get } from '@/utils/request';
2

3
export async function query(): Promise<any> {
duanledexianxianxian's avatar
sync  
duanledexianxianxian committed
4
  return get('/api/users');
5 6
}

7
export async function queryCurrent(): Promise<any> {
duanledexianxianxian's avatar
sync  
duanledexianxianxian committed
8
  return get('/api/currentUser');
9
}
10

11
export async function queryNotices(): Promise<any> {
duanledexianxianxian's avatar
sync  
duanledexianxianxian committed
12
  return get('/api/notices');
13
}
duanledexianxianxian's avatar
sync  
duanledexianxianxian committed
14 15 16 17 18

/**
 * ζŸ₯ηœ‹ζ˜―ε¦ε·²η»η™»ε½•
 */
export const checkUserLoginStatus = () => get(`/api/v1/login/status`);