refactor: adapt models to the new api
This commit is contained in:
8
src/shared/responses/v1/configuration/cacheResponse.ts
Normal file
8
src/shared/responses/v1/configuration/cacheResponse.ts
Normal file
@ -0,0 +1,8 @@
|
||||
import {CacheType} from "@model/cacheType";
|
||||
|
||||
export interface CacheResponse {
|
||||
type: CacheType;
|
||||
server?: string;
|
||||
port: number;
|
||||
password?: string;
|
||||
}
|
12
src/shared/responses/v1/configuration/databaseResponse.ts
Normal file
12
src/shared/responses/v1/configuration/databaseResponse.ts
Normal file
@ -0,0 +1,12 @@
|
||||
import {DatabaseType} from "@model/databaseType";
|
||||
|
||||
export interface DatabaseResponse {
|
||||
type: DatabaseType;
|
||||
server?: string;
|
||||
port: number;
|
||||
database?: string;
|
||||
user?: string;
|
||||
ssl: boolean;
|
||||
password?: string;
|
||||
pathToDatabase?: string;
|
||||
}
|
Reference in New Issue
Block a user