feat: 添加bbs首页接口

This commit is contained in:
陈淳
2023-12-12 17:56:11 +08:00
parent 45b86761f6
commit 3461ae1fdf
5 changed files with 1046 additions and 6 deletions

View File

@@ -2,7 +2,6 @@
{ {
public class AccessLogDto public class AccessLogDto
{ {
public Guid Id { get; set; }
public long Number { get; set; } public long Number { get; set; }
public DateTime? LastModificationTime { get; set; } public DateTime? LastModificationTime { get; set; }
public DateTime CreationTime { get; set; } public DateTime CreationTime { get; set; }

View File

@@ -48,7 +48,7 @@ namespace Yi.Framework.Bbs.Application.Services
/// 触发 /// 触发
/// </summary> /// </summary>
/// <returns></returns> /// <returns></returns>
[HttpPost("")] [HttpPost("access-log")]
public async Task AccessAsync() public async Task AccessAsync()
{ {
//可判断http重复防止同一ip多次访问 //可判断http重复防止同一ip多次访问

File diff suppressed because it is too large Load Diff

View File

@@ -24,7 +24,7 @@ using Yi.Framework.Rbac.Domain.Shared.Options;
namespace Yi.Abp.Web namespace Yi.Abp.Web
{ {
[DependsOn( [DependsOn(
typeof(YiAbpSqlSugarCoreModule), typeof(YiAbpSqlSugarCoreModule),
typeof(YiAbpApplicationModule), typeof(YiAbpApplicationModule),
typeof(AbpAspNetCoreMvcModule), typeof(AbpAspNetCoreMvcModule),
@@ -142,7 +142,6 @@ namespace Yi.Abp.Web
var env = context.GetEnvironment(); var env = context.GetEnvironment();
var app = context.GetApplicationBuilder(); var app = context.GetApplicationBuilder();
app.UseRouting(); app.UseRouting();
//跨域 //跨域
@@ -154,8 +153,6 @@ namespace Yi.Abp.Web
//swagger //swagger
app.UseYiSwagger(); app.UseYiSwagger();
//工作单元 //工作单元
app.UseUnitOfWork(); app.UseUnitOfWork();