erp-platform/api/src/Kurs.Platform.Application.Contracts/FileManagement/FileManagementDtos.cs
Sedat Öztürk 697c7c1d65 Dosya Yöneticisi
File exists, Toolbar ve style güncellemeleri
2025-10-26 19:27:19 +03:00

69 lines
No EOL
1.3 KiB
C#

#nullable enable
using System.ComponentModel.DataAnnotations;
using System.Collections.Generic;
using Volo.Abp.Content;
namespace Kurs.Platform.FileManagement;
public class CreateFolderDto
{
[Required]
[StringLength(255)]
public string Name { get; set; } = string.Empty;
public string? ParentId { get; set; }
}
public class RenameItemDto
{
[Required]
[StringLength(255)]
public string Name { get; set; } = string.Empty;
}
public class MoveItemDto
{
public string? TargetFolderId { get; set; }
}
public class UploadFileDto
{
[Required]
public string FileName { get; set; } = string.Empty;
public string? ParentId { get; set; }
// ActivityModal pattern - Files array
public IRemoteStreamContent[]? Files { get; set; }
}
public class SearchFilesDto
{
[Required]
public string Query { get; set; } = string.Empty;
public string? ParentId { get; set; }
}
public class BulkDeleteDto
{
[Required]
public List<string> ItemIds { get; set; } = new();
}
public class CopyItemsDto
{
[Required]
public List<string> ItemIds { get; set; } = new();
public string? TargetFolderId { get; set; }
}
public class MoveItemsDto
{
[Required]
public List<string> ItemIds { get; set; } = new();
public string? TargetFolderId { get; set; }
}