mirror of
https://gitlab.com/MoonTestUse1/AdministrationItDepartmens.git
synced 2025-08-14 00:25:46 +02:00
change project
This commit is contained in:
36
frontend/src/types/auth.ts
Normal file
36
frontend/src/types/auth.ts
Normal file
@@ -0,0 +1,36 @@
|
||||
export interface User {
|
||||
id: string;
|
||||
firstName: string;
|
||||
lastName: string;
|
||||
department: string;
|
||||
createdAt: string;
|
||||
}
|
||||
|
||||
export interface LoginCredentials {
|
||||
lastName: string;
|
||||
password: string;
|
||||
}
|
||||
|
||||
export interface AdminCredentials {
|
||||
username: string;
|
||||
password: string;
|
||||
}
|
||||
|
||||
export interface Employee {
|
||||
id: number;
|
||||
first_name: string;
|
||||
last_name: string;
|
||||
department: string;
|
||||
office: string;
|
||||
}
|
||||
|
||||
export interface Request {
|
||||
id: number;
|
||||
employee_last_name: string;
|
||||
employee_first_name: string;
|
||||
employee_office: string;
|
||||
request_type: string;
|
||||
priority: 'low' | 'medium' | 'high' | 'critical';
|
||||
status: 'new' | 'in_progress' | 'resolved' | 'closed';
|
||||
created_at: string;
|
||||
}
|
||||
17
frontend/src/types/employee.ts
Normal file
17
frontend/src/types/employee.ts
Normal file
@@ -0,0 +1,17 @@
|
||||
export interface Employee {
|
||||
id: number;
|
||||
first_name: string;
|
||||
last_name: string;
|
||||
department: string;
|
||||
office: string;
|
||||
created_at?: string;
|
||||
}
|
||||
|
||||
export interface EmployeeFormData {
|
||||
first_name: string;
|
||||
last_name: string;
|
||||
department: string;
|
||||
office: string;
|
||||
password?: string; // Делаем password опциональным
|
||||
}
|
||||
|
||||
14
frontend/src/types/request.ts
Normal file
14
frontend/src/types/request.ts
Normal file
@@ -0,0 +1,14 @@
|
||||
export type RequestStatus = 'new' | 'in_progress' | 'resolved' | 'closed';
|
||||
|
||||
export interface Request {
|
||||
id: number;
|
||||
status: RequestStatus;
|
||||
created_at: string;
|
||||
employee_last_name: string;
|
||||
employee_first_name: string;
|
||||
employee_office: string;
|
||||
request_type: string;
|
||||
priority: 'low' | 'medium' | 'high' | 'critical';
|
||||
description: string;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user