init project

This commit is contained in:
林梓阳
2024-07-02 15:39:51 +08:00
commit aeba86bb91
33 changed files with 8946 additions and 0 deletions

22
src/api/common.ts Normal file
View 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' });