check add person photo finish

This commit is contained in:
2025-10-27 16:23:06 +11:00
parent c62ae2cd42
commit cbb61b796f
28 changed files with 1084 additions and 86 deletions
+4 -2
View File
@@ -9,20 +9,22 @@ public class FileContent
{
public byte[] Content { get; set; }
public string FileName { get; set; }
public string ContentType { get; set; }
}
public class DownloadFileCriteria
{
public string FileName { get; set; }
public int Id { get; set; }
}
public class UploadCriteria
{
public string FileName { get; set; }
public string FamilyId { get; set; }
public int PersonId { get; set; }
public IFormFile File { get; set; }
}
public class DeleteFileCriteria
{
public int FamilyId { get; set; }
public int Id { get; set; }
public string Filename { get; set; }
}
+1
View File
@@ -49,5 +49,6 @@ public partial class PersonDto
public int? MotherId { get; set; }
public List<RelationShipDto>? RelationShips { get; set; }
public List<PersonPhotoDto>? PersonPhotos { get; set; }
}
@@ -0,0 +1,10 @@
namespace FamilyTreeAPI.Entities;
public class PersonPhotoDto
{
public int Id { get; set; }
public int PersonId { get; set; }
public string Photo { get; set; }
public string? PhotoType { get; set; }
}