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
+47
View File
@@ -0,0 +1,47 @@
namespace Fitness_core_BE.DTOs.Rbac
{
public class NavItemDto
{
public string Key { get; set; } = string.Empty;
public string Label { get; set; } = string.Empty;
public string? ShortLabel { get; set; }
public string Href { get; set; } = string.Empty;
public string Icon { get; set; } = string.Empty;
}
public class NavResponseDto
{
public bool IsOwner { get; set; }
public List<NavItemDto> Items { get; set; } = new();
}
public class GymRoleDto
{
public Guid GymRoleId { get; set; }
public string Name { get; set; } = string.Empty;
public bool IsActive { get; set; }
public List<string> NavKeys { get; set; } = new();
}
public class CreateGymRoleRequest
{
public string Name { get; set; } = string.Empty;
}
public class UpdateGymRoleRequest
{
public string? Name { get; set; }
public bool? IsActive { get; set; }
}
public class SetRolePermissionsRequest
{
public List<string> NavKeys { get; set; } = new();
}
public class AssignStaffRoleRequest
{
// Nullable to support unassigning a staff member's role.
public Guid? GymRoleId { get; set; }
}
}