feat: 添加bbs首页接口
This commit is contained in:
@@ -2,7 +2,6 @@
|
||||
{
|
||||
public class AccessLogDto
|
||||
{
|
||||
public Guid Id { get; set; }
|
||||
public long Number { get; set; }
|
||||
public DateTime? LastModificationTime { get; set; }
|
||||
public DateTime CreationTime { get; set; }
|
||||
|
||||
@@ -48,7 +48,7 @@ namespace Yi.Framework.Bbs.Application.Services
|
||||
/// 触发
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
[HttpPost("")]
|
||||
[HttpPost("access-log")]
|
||||
public async Task AccessAsync()
|
||||
{
|
||||
//可判断http重复,防止同一ip多次访问
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -24,7 +24,7 @@ using Yi.Framework.Rbac.Domain.Shared.Options;
|
||||
namespace Yi.Abp.Web
|
||||
{
|
||||
[DependsOn(
|
||||
typeof(YiAbpSqlSugarCoreModule),
|
||||
typeof(YiAbpSqlSugarCoreModule),
|
||||
typeof(YiAbpApplicationModule),
|
||||
|
||||
typeof(AbpAspNetCoreMvcModule),
|
||||
@@ -142,7 +142,6 @@ namespace Yi.Abp.Web
|
||||
var env = context.GetEnvironment();
|
||||
var app = context.GetApplicationBuilder();
|
||||
|
||||
|
||||
app.UseRouting();
|
||||
|
||||
//跨域
|
||||
@@ -154,8 +153,6 @@ namespace Yi.Abp.Web
|
||||
//swagger
|
||||
app.UseYiSwagger();
|
||||
|
||||
|
||||
|
||||
//工作单元
|
||||
app.UseUnitOfWork();
|
||||
|
||||
|
||||
Binary file not shown.
Reference in New Issue
Block a user