put in ignore file

This commit is contained in:
2025-08-10 22:01:36 +10:00
parent c2bf5cad70
commit ba79e8f1c4
151 changed files with 21703 additions and 0 deletions
+18
View File
@@ -0,0 +1,18 @@
namespace FamilyTreeAPI.Entities;
public class AppSettings
{
public string Secret { get; set; }
public string SQLConnectionString { get; set; }
public string LoginWebAPI { get; set; }
public string ClientURL { get; set; }
}
/*
entity.HasOne(d => d.Staff)
.WithMany(p => p.Staffworks)
.HasForeignKey(d => d.Staffid)
.HasConstraintName("staffwork_staffid_fkey")
.OnDelete(DeleteBehavior.ClientCascade);
*/
@@ -0,0 +1,15 @@
using System.ComponentModel.DataAnnotations;
namespace FamilyTreeAPI.Entities;
public class AuthenticateRequest
{
[Required]
public string Username { get; set; }
[Required]
public string Password { get; set; }
// public string Lhd { get; set; }
}
@@ -0,0 +1,35 @@
namespace FamilyTreeAPI.Entities;
public class AuthenticateResponse
{
public int Id { get; set; }
public string FirstName { get; set; }
public string LastName { get; set; }
public string Username { get; set; }
public string Token { get; set; }
public string Email { get; set; }
public string? Department { get; set; }
public string? Phone { get; set; }
public string? Position { get; set; }
public string? ManagerEmail { get; set; }
public int Role { get; set; }
public AuthenticateResponse(UserDto user, string token, int role)
{
Id = user.Id;
FirstName = user.FirstName;
LastName = user.LastName;
Username = user.Username;
Email = user.Email;
Department = user.Department;
Position = user.Position;
ManagerEmail = user.ManagerEmail;
Role = role;
Token = token;
Phone = user.Phone;
}
}
+24
View File
@@ -0,0 +1,24 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace FamilyTreeAPI.Entities;
public class FileContent
{
public byte[] Content { get; set; }
public string FileName { get; set; }
}
public class UploadCriteria
{
public string FileName { get; set; }
public string FamilyId { get; set; }
public IFormFile File { get; set; }
}
public class DeleteFileCriteria
{
public int FamilyId { get; set; }
public string Filename { get; set; }
}
+16
View File
@@ -0,0 +1,16 @@
namespace FamilyTreeAPI.Entities;
public class LookupDto
{
public int Id { get; set; } = 0;
public string CodeId { get; set; }
public string Description { get; set; }
}
public class LookupEditDto
{
public int Id { get; set; } = 0;
public string CodeId { get; set; }
public string Description { get; set; }
public bool Active { get; set; }
public string Type { get; set; }
}
+53
View File
@@ -0,0 +1,53 @@
namespace FamilyTreeAPI.Entities;
public class ChildCriteria
{
public int FatherId { get; set; }
public int MotherId { get; set; }
}
public class FamilyCriteria
{
public bool UseFather { get; set; }
public bool UseMother { get; set; }
}
public class PersonCriteria
{
public int Id { get; set; }
public string FirstName { get; set; }
public string LastName { get; set; }
}
public class PersonForSave
{
public PersonDto Person { get; set; }
public string? FormData { get; set; }
public string? FileName { get; set; }
}
public partial class PersonDto
{
public PersonDto()
{
}
public int Id { get; set; }
public string? FirstName { get; set; }
public string? LastName { get; set; }
public string? Email { get; set; }
public string? Phone { get; set; }
public string? Image { get; set; }
public string? Sex { get; set; }
public string? Address { get; set; }
public bool? Alive { get; set; }
public string? dob { get; set; }
public int? FatherId { get; set; }
public int? MotherId { get; set; }
public List<RelationShipDto>? RelationShips { get; set; }
}
@@ -0,0 +1,16 @@
namespace FamilyTreeAPI.Entities;
public class RelationShiftContainer
{
public int familyId {get; set;}
public List<RelationShipDto> relationShips {get; set;}
}
public class RelationShipDto
{
public enumState State { get; set; }
public int Id { get; set; }
public int PersonId { get; set; }
public int RelatePersonId { get; set; }
}
+26
View File
@@ -0,0 +1,26 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace FamilyTreeAPI.Entities;
public enum enumState
{
Delete = -1,
NoChange = 0,
New = 1,
Modify = 2,
}
public class ResultModel<T>
{
public T Data { get; set; }
public int StatusCode { get; set; }
public string Message { get; set; }
}
public class DeleteCriteria<T>
{
public T Id { get; set; }
}
+37
View File
@@ -0,0 +1,37 @@
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
namespace FamilyTreeAPI.Entities;
public partial class StaffCriteria
{
public string Email { get; set; } = null!;
public string? FirstName { get; set; }
public string? LastName { get; set; }
}
public partial class StaffDto
{
public int Id { get; set; }
public string? Phone { get; set; } = null!;
public string? Firstname { get; set; }
public string? Lastname { get; set; }
public string? Password { get; set; }
public string? Email { get; set; }
public int? Type { get; set; }
public bool? Active { get; set; }
public int? RoleType { get; set; }
}
public partial class ResetPassDto
{
public int Id { get; set; }
public string Password { get; set; } = null!;
}
+15
View File
@@ -0,0 +1,15 @@
namespace FamilyTreeAPI.Entities;
public class TreeNode<T>
{
public string? Label { get; set; }
public T? Data { get; set; }
public List<TreeNode<T>>? Children { get; set; }
public string? Icon { get; set; }
public bool? Checked { get; set; }
public bool? Leaf { get; set; }
public bool? Expanded { get; set; }
public string? Type { get; set; }
public string? Key { get; set; }
public bool? Loading { get; set; }
}
+30
View File
@@ -0,0 +1,30 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace FamilyTreeAPI.Entities;
/*
* ROLE ID
* Normal = 1,
Admin = 2,
Manager =3,
*/
public class UserDto
{
public int Id { get; set; }
public string? FirstName { get; set; }
public string? LastName { get; set; }
public string? Email { get; set; }
public string? Username { get; set; }
public string? Department { get; set; }
public string? Phone { get; set; }
public string? Position { get; set; }
public string? ManagerEmail { get; set; }
public int Role { get; set; }
}