refactor: clean code

This commit is contained in:
2024-12-18 06:57:27 +03:00
parent 3af8c43cd9
commit a2d4151cc3
47 changed files with 181 additions and 150 deletions

View File

@ -1,5 +1,5 @@
export interface CacheRequest {
server: string;
port: number;
password?: string;
server: string;
port: number;
password?: string;
}

View File

@ -1,8 +1,8 @@
export interface DatabaseRequest {
server: string;
port: number;
database: string;
user: string;
ssl: boolean;
password?: string;
server: string;
port: number;
database: string;
user: string;
ssl: boolean;
password?: string;
}

View File

@ -1,8 +1,8 @@
export interface EmailRequest {
server: string;
from: string;
password: string;
port: number;
ssl: boolean;
user: string;
server: string;
from: string;
password: string;
port: number;
ssl: boolean;
user: string;
}

View File

@ -1,5 +1,5 @@
export interface LoggingRequest {
enableLogToFile: boolean;
logFileName?: string;
logFilePath?: string;
enableLogToFile: boolean;
logFileName?: string;
logFilePath?: string;
}

View File

@ -1,4 +1,4 @@
export interface ScheduleConfigurationRequest {
cronUpdateSchedule?: string;
startTerm: string;
cronUpdateSchedule?: string;
startTerm: string;
}

View File

@ -1,5 +1,5 @@
export interface CreateUserRequest {
email: string;
username: string;
password: string;
email: string;
username: string;
password: string;
}

View File

@ -1,4 +1,4 @@
export interface LoginRequest {
username: string;
password: string;
username: string;
password: string;
}

View File

@ -1,7 +1,7 @@
export interface ScheduleRequest {
groups?: Array<number>;
isEven?: boolean;
disciplines?: Array<number>;
professors?: Array<number>;
lectureHalls?: Array<number>;
groups?: Array<number>;
isEven?: boolean;
disciplines?: Array<number>;
professors?: Array<number>;
lectureHalls?: Array<number>;
}

View File

@ -1,6 +1,6 @@
import {TwoFactorAuthentication} from "@model/twoFactorAuthentication";
export interface TwoFactorAuthRequest {
code: string;
method: TwoFactorAuthentication;
code: string;
method: TwoFactorAuthentication;
}