mirror of
https://github.com/immich-app/immich.git
synced 2026-05-18 03:10:24 +03:00
feat: draft controller entry
chore: lint & format
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
import { MaintenanceAction } from 'src/enum';
|
||||
import { IsEnum } from 'class-validator';
|
||||
import { IntegrityReportType, MaintenanceAction } from 'src/enum';
|
||||
import { ValidateEnum, ValidateString } from 'src/validation';
|
||||
|
||||
export class SetMaintenanceModeDto {
|
||||
@@ -14,3 +15,22 @@ export class MaintenanceLoginDto {
|
||||
export class MaintenanceAuthDto {
|
||||
username!: string;
|
||||
}
|
||||
|
||||
export class MaintenanceGetIntegrityReportDto {
|
||||
// todo: paginate
|
||||
// @IsInt()
|
||||
// @Min(1)
|
||||
// @Type(() => Number)
|
||||
// @Optional()
|
||||
// page?: number;
|
||||
}
|
||||
|
||||
class MaintenanceIntegrityReportDto {
|
||||
@IsEnum(IntegrityReportType)
|
||||
type!: IntegrityReportType;
|
||||
path!: string;
|
||||
}
|
||||
|
||||
export class MaintenanceIntegrityReportResponseDto {
|
||||
items!: MaintenanceIntegrityReportDto[];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user