Added diagnose frontend and backend implementation

This commit is contained in:
2025-12-27 23:32:36 +01:00
parent be3cdb8235
commit e1c0645428
11 changed files with 380 additions and 0 deletions

View File

@@ -0,0 +1,10 @@
namespace Moonlight.Shared.Http.Responses.Admin;
public record DiagnoseResultResponse(DiagnoseLevel Level, string Title, string[] Tags, string? Message, string? StackStrace, string? SolutionUrl, string? ReportUrl);
public enum DiagnoseLevel
{
Error = 0,
Warning = 1,
Healthy = 2
}

View File

@@ -11,6 +11,7 @@ namespace Moonlight.Shared.Http;
[JsonSerializable(typeof(UpdateUserRequest))]
[JsonSerializable(typeof(ClaimResponse[]))]
[JsonSerializable(typeof(SchemeResponse[]))]
[JsonSerializable(typeof(DiagnoseResultResponse[]))]
[JsonSerializable(typeof(UserResponse))]
[JsonSerializable(typeof(SystemInfoResponse))]
[JsonSerializable(typeof(PagedData<UserResponse>))]