revamp template

This commit is contained in:
fro1991
2025-02-01 16:44:51 +07:00
parent c432df568a
commit 276a289580
1212 changed files with 112762 additions and 0 deletions

34
src/auth/_models.ts Normal file
View File

@ -0,0 +1,34 @@
import { type TLanguageCode } from '@/i18n';
export interface AuthModel {
id: string;
access_token: string;
refresh_token: string;
role_name: string;
roles_list: [];
company: any;
user: any;
// api_token: string;
}
export interface UserModel {
id: number;
username: string;
name: string;
password: string | undefined;
email: string;
id_role: string;
role_name: string;
roles_list: [];
token: AuthModel;
first_name: string;
last_name: string;
fullname?: string;
occupation?: string;
companyName?: string;
phone?: string;
roles?: number[];
pic?: string;
language?: TLanguageCode;
}