sozsoft-platform/api/src/Sozsoft.Platform.Application.Contracts/FileManagement/FileManagementDtos.cs

86 lines
1.6 KiB
C#
Raw Normal View History

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