chore
This commit is contained in:
28
Atomx.Core/Jos/SendVerificationCodeJob.cs
Normal file
28
Atomx.Core/Jos/SendVerificationCodeJob.cs
Normal file
@@ -0,0 +1,28 @@
|
||||
using Atomx.Data;
|
||||
using Atomx.Data.CacheServices;
|
||||
using Microsoft.Extensions.Logging;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
|
||||
namespace Atomx.Core.Jos
|
||||
{
|
||||
public class SendVerificationCodeJob
|
||||
{
|
||||
readonly ILogger<SendVerificationCodeJob> _logger;
|
||||
readonly DataContext _dbContext;
|
||||
readonly ICacheService _cacheService;
|
||||
public SendVerificationCodeJob(ILogger<SendVerificationCodeJob> logger, DataContext dataContext, ICacheService cacheService)
|
||||
{
|
||||
_logger = logger;
|
||||
_dbContext = dataContext;
|
||||
_cacheService = cacheService;
|
||||
}
|
||||
|
||||
public void Execute(string email, string code)
|
||||
{
|
||||
_logger.LogInformation("SendVerificationCodeJob executed at: {time}", DateTimeOffset.Now);
|
||||
// 在这里添加发送验证码的具体任务逻辑
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user