stlye: 添加备注

This commit is contained in:
陈淳
2024-03-07 11:44:27 +08:00
parent a7a794c709
commit 65f0445001
6 changed files with 10 additions and 0 deletions

View File

@@ -90,6 +90,11 @@ namespace Yi.Framework.Bbs.Application.Services
return WeekTimeHandler(lastSeven.ToArray());
}
/// <summary>
/// Todo: 可放入领域层
/// </summary>
/// <param name="data"></param>
/// <returns></returns>
private AccessLogDto[] WeekTimeHandler(AccessLogEntity[] data)
{
data = data.Where(x => x.CreationTime >= GetWeekFirst()).OrderByDescending(x => x.CreationTime).DistinctBy(x => x.CreationTime.DayOfWeek).ToArray();

View File

@@ -26,6 +26,7 @@ namespace Yi.Framework.Bbs.Application.Services.Forum
/// <summary>
/// 点赞,返回true为点赞+1返回false为点赞-1
/// Todo: 可放入领域层
/// </summary>
/// <returns></returns>
[UnitOfWork]

View File

@@ -44,6 +44,7 @@ namespace Yi.Framework.Bbs.Application.Services.Forum
private IDiscussService _discussService { get; set; }
/// <summary>
/// 获取改主题下的评论,结构为二维列表,该查询无分页
/// Todo: 可放入领域层
/// </summary>
/// <param name="discussId"></param>
/// <param name="input"></param>

View File

@@ -41,6 +41,7 @@ namespace Yi.Framework.Bbs.Application.Services.Integral
/// <summary>
/// 获取本月签到记录
/// Todo: 可放入领域层
/// </summary>
/// <returns></returns>
[Authorize]

View File

@@ -16,6 +16,7 @@ namespace Yi.Framework.Bbs.Application.Services.Integral
/// <summary>
/// 大转盘
/// Todo: 可放入领域层
/// </summary>
/// <returns></returns>
[Authorize]

View File

@@ -71,6 +71,7 @@ namespace Yi.Framework.Rbac.Application.Services
/// <summary>
/// 上传文件
/// Todo: 可放入领域层
/// </summary>
/// <returns></returns>
public async Task<List<FileGetListOutputDto>> Post([FromForm] IFormFileCollection file)