This commit is contained in:
2025-05-04 22:11:28 +08:00
parent 09afa239a6
commit b7eb0f9a68
69 changed files with 344 additions and 178 deletions

View File

@@ -7,6 +7,7 @@ global using System.Text;
global using System.Text.RegularExpressions;
global using Markdig;
global using Microsoft.AspNetCore.Http;
global using Microsoft.EntityFrameworkCore;
global using Yes.Domain.Articles;
global using Yes.Domain.Categories;
global using Yes.Domain.Core.Enums;
@@ -15,4 +16,3 @@ global using Yes.Domain.Core.Extensions;
global using Yes.Domain.Core.Ioc;
global using Yes.Domain.Core.Models;
global using Yes.Domain.Users;
global using Microsoft.EntityFrameworkCore;

View File

@@ -0,0 +1,25 @@
namespace Yes.Domain.Logs
{
[Table("Log")]
public class LogEntity
{
[Key]
public int Id { get; set; }
public int UserId { get; set; }
public LogTypeEnum Type { get; set; }
public int RelatedId { get; set; }
public RelatedTypeEnum RelatedType { get; set; }
public string Content { get; set; }
public bool Success { get; set; }
public string Ip { get; set; }
public DateTime CreateDate { get; set; }
}
}