fix: 🐛 低版本jetbrains.resharper.globaltools搞乱了代码 (#97)

This commit is contained in:
2024-03-02 23:23:18 +08:00
committed by GitHub
parent a37acc4b55
commit c117ddfe7a
4 changed files with 3 additions and 25 deletions

View File

@ -14,7 +14,7 @@ namespace NetAdmin.SysComponent.Application.Services.Sys;
public sealed class VerifyCodeService(DefaultRepository<Sys_VerifyCode> rpo, IEventPublisher eventPublisher) //
: RepositoryService<Sys_VerifyCode, IVerifyCodeService>(rpo), IVerifyCodeService
{
private static readonly int[] _randRange =
private static readonly int[] _randRange = [0, 10000];
/// <inheritdoc />
public async Task<int> BulkDeleteAsync(BulkReq<DelReq> req)
@ -163,8 +163,6 @@ public sealed class VerifyCodeService(DefaultRepository<Sys_VerifyCode> rpo, IEv
: await GetAsync(new QueryVerifyCodeReq { Id = req.Id }).ConfigureAwait(false);
}
[0, 10000];
private Task<Sys_VerifyCode> GetLastSentAsync(string destDevice)
{
return QueryInternal(new QueryReq<QueryVerifyCodeReq> {