put in signal for edit

This commit is contained in:
2025-09-25 17:21:13 +10:00
parent 4b85a90b71
commit ee19397f59
171 changed files with 12181 additions and 15 deletions
@@ -0,0 +1,13 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using FamilyTreeAPI.Entities;
namespace FamilyTreeAPI.Interface;
public interface IJwtUtils
{
public string GenerateJwtToken(UserDto user);
public UserDto? ValidateJwtToken(string token);
}
@@ -0,0 +1,16 @@
using FamilyTreeAPI.Entities;
namespace FamilyTreeAPI.Interface;
public interface ILookup
{
Task<ResultModel<int>> SaveLookupAsync(LookupEditDto lookup);
Task<ResultModel<List<LookupDto>>> GetLookupAsync(string type);
Task<ResultModel<Dictionary<string, LookupDto>>> GetLookupDicAsync(string type);
Task<ResultModel<List<LookupEditDto>>> GetLookupEditAsync(string type);
Task<ResultModel<LookupEditDto>> GetLookupEditByIdAsync(int codeId, string type);
Task<ResultModel<List<LookupDto>>> GetPersonsAsync();
Task<ResultModel<List<LookupDto>>> GetStaffAsync();
}
@@ -0,0 +1,18 @@
using FamilyTreeAPI.Entities;
namespace FamilyTreeAPI.Interface;
public interface IPerson
{
Task<ResultModel<TreeNode<string>>> GetByFamilyAsync(int id);
Task<ResultModel<List<TreeNode<string>>>> GetFamilyTreeBy(FamilyCriteria criteria);
Task<ResultModel<List<PersonDto>>> GetChildren(ChildCriteria criteria);
Task<ResultModel<List<PersonDto>>> GetPerson(PersonCriteria criteria);
Task<ResultModel<Dictionary<int,PersonDto>>> GetDicFamily();
Task<ResultModel<PersonDto>> GetByIdAsync(int id);
Task<ResultModel<int>> DeleteAsync(int id);
Task<ResultModel<string>> UploadImage(UploadCriteria criteria);
ResultModel<int> DeleteUploadFile(DeleteFileCriteria criteria);
Task<ResultModel<int>> SaveAsync(PersonForSave dto);
}
@@ -0,0 +1,13 @@
using FamilyTreeAPI.Entities;
namespace FamilyTreeAPI.Interface;
public interface IRelationShipd
{
Task<ResultModel<int>> SaveAsync(List<RelationShipDto> dto);
//load by personId
Task<ResultModel<List<RelationShipDto>>> GetByPersonIdAsync(int personId);
Task<ResultModel<RelationShipDto>> GetByIdAsync(int Id);
Task<ResultModel<int>> DeleteAsync(int personId);
}
@@ -0,0 +1,8 @@
using FamilyTreeAPI.Entities;
namespace FamilyTreeAPI.Interface;
public interface IReport
{
// Task<ResultModel<FileContent>> GetMotorVehicleReportAsync(MotorVehicleCriteria criteria);
// Task<ResultModel<FileContent>> GetStaffWorkReportAsync(StaffWorkCriteria criteria);
}
@@ -0,0 +1,20 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using FamilyTreeAPI.Entities;
namespace FamilyTreeAPI.Interface;
public interface IStaff
{
Task<ResultModel<Dictionary<int,StaffDto>>> GetDicStaffs();
Task<ResultModel<List<StaffDto>>> GetStaff(StaffCriteria criteria);
Task<ResultModel<StaffDto>> GetStaffById(int id);
Task<ResultModel<int>> SaveStaff(StaffDto code);
Task<ResultModel<int>> ResetPassword(ResetPassDto code);
Task<ResultModel<int>> SaveStaffNew(StaffDto adminUser);
Task<ResultModel<int>> Delete(int id);
}
@@ -0,0 +1,13 @@
using FamilyTreeAPI.Entities;
namespace FamilyTreeAPI.Interface;
public interface IUserService
{
Task<ResultModel<AuthenticateResponse>> LoginApiAD(AuthenticateRequest model, string remoteIpAddress);
Task<ResultModel<AuthenticateResponse>> Login(AuthenticateRequest model);
Task<ResultModel<int>> Logout(string token, UserDto user, string remoteIpAddress);
// Task<ResultModel<User>> SearchApiStaff(string staffLinkNo);
// Task<ResultModel<User>> SearchADStaff(string staffLinkNo);
}