feat: 添加访问统计模块

This commit is contained in:
陈淳
2023-09-15 15:05:14 +08:00
parent c2ca0b1f29
commit c988ed7988
10 changed files with 164 additions and 12 deletions

View File

@@ -0,0 +1,17 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Yi.Framework.Infrastructure.Helper;
namespace Yi.Furion.Core.Bbs.Dtos.AccessLog
{
public class AccessLogDto
{
public long Id { get; set; }
public long Number { get; set; }
public DateTime? LastModificationTime { get; set; }
public DateTime CreationTime { get; set; }
}
}

View File

@@ -0,0 +1,22 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using SqlSugar;
using Yi.Framework.Infrastructure.Data.Auditing;
using Yi.Framework.Infrastructure.Ddd.Entities;
using Yi.Framework.Infrastructure.Helper;
namespace Yi.Furion.Core.Bbs.Entities
{
[SugarTable("AccessLog")]
public class AccessLogEntity : IEntity<long>, IHasModificationTime, IHasCreationTime
{
[SugarColumn(IsPrimaryKey = true)]
public long Id { get; set; } = SnowflakeHelper.NextId;
public long Number { get; set; }
public DateTime? LastModificationTime { get; set; }
public DateTime CreationTime { get; set; }
}
}

View File

@@ -28,10 +28,4 @@
<ItemGroup>
<Folder Include="Bbs\Dtos\" />
</ItemGroup>
</Project>