25 lines
629 B
C#
25 lines
629 B
C#
|
|
namespace Meezi.API.Models.CustomRoles;
|
||
|
|
|
||
|
|
public record CustomRoleDto(
|
||
|
|
string Id,
|
||
|
|
string Name,
|
||
|
|
string? Description,
|
||
|
|
string? Color,
|
||
|
|
IReadOnlyList<string> Permissions,
|
||
|
|
int EmployeeCount,
|
||
|
|
DateTime CreatedAt);
|
||
|
|
|
||
|
|
public record CreateCustomRoleRequest(
|
||
|
|
string Name,
|
||
|
|
string? Description = null,
|
||
|
|
string? Color = null,
|
||
|
|
IReadOnlyList<string>? Permissions = null);
|
||
|
|
|
||
|
|
public record UpdateCustomRoleRequest(
|
||
|
|
string? Name = null,
|
||
|
|
string? Description = null,
|
||
|
|
string? Color = null,
|
||
|
|
IReadOnlyList<string>? Permissions = null);
|
||
|
|
|
||
|
|
public record AssignCustomRoleRequest(string? CustomRoleId);
|