1
0
mirror of https://gitlab.com/MoonTestUse1/AdministrationItDepartmens.git synced 2025-08-14 00:25:46 +02:00

change project

This commit is contained in:
MoonTestUse1
2024-12-23 22:53:05 +06:00
parent b898fd915d
commit 21c61ce8da
42 changed files with 13 additions and 16 deletions

View 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;
}

View 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 опциональным
}

View 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;
}