From 65f04450017ddae70f86e3ed116ce7696832c50c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E6=B7=B3?= <454313500@qq.com> Date: Thu, 7 Mar 2024 11:44:27 +0800 Subject: [PATCH] =?UTF-8?q?stlye:=20=E6=B7=BB=E5=8A=A0=E5=A4=87=E6=B3=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Services/AccessLogService.cs | 5 +++++ .../Services/Forum/AgreeService.cs | 1 + .../Services/Forum/CommentService.cs | 1 + .../Services/Integral/IntegralService.cs | 1 + .../Services/Integral/LuckyService.cs | 1 + .../Yi.Framework.Rbac.Application/Services/FileService.cs | 1 + 6 files changed, 10 insertions(+) diff --git a/Yi.Abp.Net8/module/bbs/Yi.Framework.Bbs.Application/Services/AccessLogService.cs b/Yi.Abp.Net8/module/bbs/Yi.Framework.Bbs.Application/Services/AccessLogService.cs index 2f1c387e..84d51ab4 100644 --- a/Yi.Abp.Net8/module/bbs/Yi.Framework.Bbs.Application/Services/AccessLogService.cs +++ b/Yi.Abp.Net8/module/bbs/Yi.Framework.Bbs.Application/Services/AccessLogService.cs @@ -90,6 +90,11 @@ namespace Yi.Framework.Bbs.Application.Services return WeekTimeHandler(lastSeven.ToArray()); } + /// + /// Todo: 可放入领域层 + /// + /// + /// private AccessLogDto[] WeekTimeHandler(AccessLogEntity[] data) { data = data.Where(x => x.CreationTime >= GetWeekFirst()).OrderByDescending(x => x.CreationTime).DistinctBy(x => x.CreationTime.DayOfWeek).ToArray(); diff --git a/Yi.Abp.Net8/module/bbs/Yi.Framework.Bbs.Application/Services/Forum/AgreeService.cs b/Yi.Abp.Net8/module/bbs/Yi.Framework.Bbs.Application/Services/Forum/AgreeService.cs index 2350f2d4..5e1d076e 100644 --- a/Yi.Abp.Net8/module/bbs/Yi.Framework.Bbs.Application/Services/Forum/AgreeService.cs +++ b/Yi.Abp.Net8/module/bbs/Yi.Framework.Bbs.Application/Services/Forum/AgreeService.cs @@ -26,6 +26,7 @@ namespace Yi.Framework.Bbs.Application.Services.Forum /// /// 点赞,返回true为点赞+1,返回false为点赞-1 + /// Todo: 可放入领域层 /// /// [UnitOfWork] diff --git a/Yi.Abp.Net8/module/bbs/Yi.Framework.Bbs.Application/Services/Forum/CommentService.cs b/Yi.Abp.Net8/module/bbs/Yi.Framework.Bbs.Application/Services/Forum/CommentService.cs index cdcae5e9..43793995 100644 --- a/Yi.Abp.Net8/module/bbs/Yi.Framework.Bbs.Application/Services/Forum/CommentService.cs +++ b/Yi.Abp.Net8/module/bbs/Yi.Framework.Bbs.Application/Services/Forum/CommentService.cs @@ -44,6 +44,7 @@ namespace Yi.Framework.Bbs.Application.Services.Forum private IDiscussService _discussService { get; set; } /// /// 获取改主题下的评论,结构为二维列表,该查询无分页 + /// Todo: 可放入领域层 /// /// /// diff --git a/Yi.Abp.Net8/module/bbs/Yi.Framework.Bbs.Application/Services/Integral/IntegralService.cs b/Yi.Abp.Net8/module/bbs/Yi.Framework.Bbs.Application/Services/Integral/IntegralService.cs index 10855742..7d192f8b 100644 --- a/Yi.Abp.Net8/module/bbs/Yi.Framework.Bbs.Application/Services/Integral/IntegralService.cs +++ b/Yi.Abp.Net8/module/bbs/Yi.Framework.Bbs.Application/Services/Integral/IntegralService.cs @@ -41,6 +41,7 @@ namespace Yi.Framework.Bbs.Application.Services.Integral /// /// 获取本月签到记录 + /// Todo: 可放入领域层 /// /// [Authorize] diff --git a/Yi.Abp.Net8/module/bbs/Yi.Framework.Bbs.Application/Services/Integral/LuckyService.cs b/Yi.Abp.Net8/module/bbs/Yi.Framework.Bbs.Application/Services/Integral/LuckyService.cs index 9add8bf3..9a2631c9 100644 --- a/Yi.Abp.Net8/module/bbs/Yi.Framework.Bbs.Application/Services/Integral/LuckyService.cs +++ b/Yi.Abp.Net8/module/bbs/Yi.Framework.Bbs.Application/Services/Integral/LuckyService.cs @@ -16,6 +16,7 @@ namespace Yi.Framework.Bbs.Application.Services.Integral /// /// 大转盘 + /// Todo: 可放入领域层 /// /// [Authorize] diff --git a/Yi.Abp.Net8/module/rbac/Yi.Framework.Rbac.Application/Services/FileService.cs b/Yi.Abp.Net8/module/rbac/Yi.Framework.Rbac.Application/Services/FileService.cs index 20a5c211..56487a81 100644 --- a/Yi.Abp.Net8/module/rbac/Yi.Framework.Rbac.Application/Services/FileService.cs +++ b/Yi.Abp.Net8/module/rbac/Yi.Framework.Rbac.Application/Services/FileService.cs @@ -71,6 +71,7 @@ namespace Yi.Framework.Rbac.Application.Services /// /// 上传文件 + /// Todo: 可放入领域层 /// /// public async Task> Post([FromForm] IFormFileCollection file)