feat: 添加bbs首页接口
This commit is contained in:
@@ -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; }
|
||||||
|
|||||||
@@ -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
@@ -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();
|
||||||
|
|
||||||
|
|||||||
Binary file not shown.
Reference in New Issue
Block a user