first commit

This commit is contained in:
Dhananjaya99
2026-09-28 11:44:26 +05:30
parent 721743ae6b
commit bffc9b1686
424 changed files with 46474 additions and 0 deletions
+27
View File
@@ -0,0 +1,27 @@
using System.ComponentModel.DataAnnotations;
namespace Fitness_core_BE.DTOs.Staff
{
public class CreateStaffRequest
{
[Required]
public Guid ClientId { get; set; }
[Required]
public string UserName { get; set; } = string.Empty;
[Required]
[EmailAddress]
public string Email { get; set; } = string.Empty;
[Required]
[Phone]
public string PhoneNumber { get; set; } = string.Empty;
public string? StaffPosition { get; set; }
public string? Department { get; set; }
public DateTime? HireDate { get; set; }
}
}
+27
View File
@@ -0,0 +1,27 @@
namespace Fitness_core_BE.DTOs.Staff
{
public class StaffDto
{
public Guid StaffId { get; set; }
public Guid UserId { get; set; }
public string? UserName { get; set; }
public string? Email { get; set; }
public string? PhoneNumber { get; set; }
public Guid ClientId { get; set; }
public string? ClientName { get; set; }
public Guid? GymRoleId { get; set; }
public string? GymRoleName { get; set; }
public string? StaffPosition { get; set; }
public string? Department { get; set; }
public DateTime HireDate { get; set; }
public bool IsActive { get; set; }
public DateTime CreatedAt { get; set; }
public long? AccessProfileId { get; set; }
public string? AccessNumber { get; set; }
public string AccessProvisionStatus { get; set; } = "NotConfigured";
public string ActualAccessState { get; set; } = "Unknown";
public string DesiredAccessState { get; set; } = "Enabled";
public int FingerprintCount { get; set; }
public string? AccessLastError { get; set; }
}
}
+30
View File
@@ -0,0 +1,30 @@
namespace Fitness_core_BE.DTOs.Staff
{
public class StaffPayRateDto
{
public Guid Id { get; set; }
public string RateType { get; set; } = "Monthly";
public decimal Amount { get; set; }
public DateTime EffectiveFrom { get; set; }
}
public class UpsertStaffPayRateRequest
{
public string RateType { get; set; } = "Monthly"; // "Monthly" | "Hourly"
public decimal Amount { get; set; }
}
public class StaffPaymentDto
{
public Guid Id { get; set; }
public decimal Amount { get; set; }
public string? Note { get; set; }
public DateTime PaidAt { get; set; }
}
public class RecordStaffPaymentRequest
{
public decimal Amount { get; set; }
public string? Note { get; set; }
}
}
+24
View File
@@ -0,0 +1,24 @@
using System.ComponentModel.DataAnnotations;
namespace Fitness_core_BE.DTOs.Staff
{
public class UpdateStaffRequest
{
[Required]
public Guid StaffId { get; set; }
public string? UserName { get; set; }
[EmailAddress]
public string? Email { get; set; }
[Phone]
public string? PhoneNumber { get; set; }
public string? StaffPosition { get; set; }
public string? Department { get; set; }
public bool? IsActive { get; set; }
}
}