69 lines
No EOL
1.3 KiB
C#
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; }
|
|
} |