mirror of
https://github.com/LD-Reborn/Berufsschule_HAM.git
synced 2025-12-20 06:51:55 +00:00
32 lines
945 B
C#
32 lines
945 B
C#
using System.Text.Json.Serialization;
|
|
|
|
namespace Berufsschule_HAM.Models;
|
|
|
|
public class GroupsIndexRequestModel
|
|
{
|
|
public string? Cn { get; set; }
|
|
public bool GidNumber { get; set; } = true;
|
|
public bool Permissions { get; set; } = true;
|
|
}
|
|
|
|
public class GroupsCreateRequestModel
|
|
{
|
|
[JsonPropertyName("Cn")]
|
|
public required string Cn { get; set; }
|
|
[JsonPropertyName("DisplayName")]
|
|
public required string DisplayName { get; set; }
|
|
[JsonPropertyName("Permissions")]
|
|
public required List<GroupPermission> Permissions { get; set; }
|
|
}
|
|
|
|
public class GroupsModifyRequestModel
|
|
{
|
|
[JsonPropertyName("Cn")]
|
|
public required string Cn { get; set; }
|
|
[JsonPropertyName("NewCn")]
|
|
public string? NewCn { get; set; } = null;
|
|
[JsonPropertyName("GidNumber")]
|
|
public string? GidNumber { get; set; } = null;
|
|
[JsonPropertyName("Description")]
|
|
public GroupDescription? Description { get; set; } = null;
|
|
} |