Start der Backend Implementierung

Projekt für die Implementierung des Backends hinzugefügt. Klasse Logger --> Dient zum Loggen in die Datenbank. Klasse Ticket_System --> Hauptklasse für das die Backendanwendung. Auth Client hinzugefügt. Token stuff hinzugefügt.
This commit is contained in:
2026-01-28 12:48:40 +01:00
parent 1f38e7264b
commit 07b2a8ae0f
20 changed files with 354 additions and 0 deletions

29
Ticket_System/Token.cs Normal file
View File

@@ -0,0 +1,29 @@
using System;
using System.Collections.Generic;
using System.Text;
namespace Ticket_System
{
public sealed class ResponseToken
{
public string token { get; set; } = "";
}
public sealed class TokenIsValid
{
public bool is_valid { get; set; }
}
public sealed class SignInRequest
{
public string name { get; set; } = "";
public string password { get; set; } = "";
}
public sealed class SignInErrorResponse
{
public Dictionary<string, string[]>? errors { get; set; }
public ResponseToken? message { get; set; }
}
}