加返回参数

he 2024-07-16 09:57:33 +08:00
parent 899ebf2a30
commit 1fa3a5a181
1 changed files with 6 additions and 2 deletions

View File

@ -23,6 +23,7 @@ using IRaCIS.Application.Contracts;
using IRaCIS.Core.Domain.Models;
using Microsoft.Extensions.Options;
using System.Linq;
using NPOI.SS.Formula.Functions;
namespace IRaCIS.Application.Services
{
@ -3045,7 +3046,7 @@ namespace IRaCIS.Application.Services
/// </summary>
/// <returns></returns>
[HttpPost]
public async Task VerifyReadingRestTime()
public async Task<bool> VerifyReadingRestTime()
{
var userTypeEnum = (UserTypeEnum)_userInfo.UserTypeEnumInt;
if (userTypeEnum != UserTypeEnum.IndependentReviewer)
@ -3095,6 +3096,8 @@ namespace IRaCIS.Application.Services
#endregion
}
return true;
}
/// <summary>
@ -3102,7 +3105,7 @@ namespace IRaCIS.Application.Services
/// </summary>
/// <returns></returns>
[HttpPost]
public async Task ResetReadingRestTime(Guid? userID)
public async Task<bool> ResetReadingRestTime(Guid? userID)
{
if (userID == null)
{
@ -3129,6 +3132,7 @@ namespace IRaCIS.Application.Services
{
_provider.Set(startReadingTimeKey, DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss"), TimeSpan.FromHours(48));
}
return true;
}
/// <summary>