check add person photo finish
This commit is contained in:
@@ -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; }
|
||||
}
|
||||
@@ -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; }
|
||||
}
|
||||
Reference in New Issue
Block a user