Split the backend into API host, Domain, Application and Infrastructure projects. Add Swagger/OpenAPI per API version, Asp.Versioning (query/header), ProblemDetails with a global exception handler and SurrealQL migrations applied at startup (namespace/database ensured). Infrastructure owns the SurrealDB client, settings and DI.
26 lines
548 B
C#
26 lines
548 B
C#
namespace TarninaHub.Application.Dtos;
|
|
|
|
public sealed class StorageProbe
|
|
{
|
|
public string Label { get; set; } = "probe";
|
|
|
|
public DateTimeOffset CreatedAt { get; set; }
|
|
}
|
|
|
|
public sealed record StorageInfo(
|
|
string Engine,
|
|
string DataDirectory,
|
|
string Namespace,
|
|
string Database);
|
|
|
|
public sealed record StorageStatusResponse(
|
|
string Engine,
|
|
string DataDirectory,
|
|
string Namespace,
|
|
string Database,
|
|
int ProbeCount);
|
|
|
|
public sealed record StorageProbeResponse(
|
|
string Label,
|
|
DateTimeOffset CreatedAt);
|