init project
This commit is contained in:
22
src/api/common.ts
Normal file
22
src/api/common.ts
Normal file
@@ -0,0 +1,22 @@
|
||||
import { get } from '@/utils/request';
|
||||
|
||||
export interface UserInfoType {
|
||||
alias: string;
|
||||
all_dept_name: string;
|
||||
avatar: string;
|
||||
dept: string;
|
||||
dept_id: number;
|
||||
email: string;
|
||||
job: string;
|
||||
job_name: string;
|
||||
job_type: string;
|
||||
mobile: string;
|
||||
user_id: number;
|
||||
username: string;
|
||||
}
|
||||
|
||||
export const getUserInfo = () => get<UserInfoType>({
|
||||
url: '/api/home/grade',
|
||||
});
|
||||
|
||||
export const logout = () => get({ url: '/api/common/logout' });
|
||||
Reference in New Issue
Block a user