LogsController

This commit is contained in:
Michał Zieliński
2023-08-29 14:55:31 +02:00
parent 333de3c02a
commit 97fbfcb220
7 changed files with 204 additions and 37 deletions

22
WebAPI/Models/LogEntry.cs Normal file
View File

@@ -0,0 +1,22 @@
using System.ComponentModel.DataAnnotations;
namespace WebAPI.Models
{
public enum LogEntryType
{
info,
warning,
error,
}
public enum LogType {
import
}
public class LogEntry
{
public LogType LogType { get; set; }
public LogEntryType Type { get; set; }
public string? Message { get; set; }
public string? Title {get; set;}
public DateTime CreatedAt { get; set; }
}
}