chore
This commit is contained in:
@@ -1,5 +1,7 @@
|
||||
using Hangfire;
|
||||
using Microsoft.Extensions.Logging;
|
||||
using System.IO;
|
||||
using System.Text.RegularExpressions;
|
||||
|
||||
namespace Atomx.Core.Jos
|
||||
{
|
||||
@@ -24,6 +26,13 @@ namespace Atomx.Core.Jos
|
||||
|
||||
|
||||
string SendSMSVerificationCode(string phoneNumber, string code, TimeSpan validDuration);
|
||||
|
||||
/// <summary>
|
||||
/// 更新调整区域树缓存数据,会更新州省缓存
|
||||
/// </summary>
|
||||
/// <param name="countryId"></param>
|
||||
/// <returns></returns>
|
||||
string ResetStateProvinceAndAreaTree(long countryId);
|
||||
}
|
||||
|
||||
public partial class BackgroundJobService : IBackgroundJobService
|
||||
@@ -68,5 +77,16 @@ namespace Atomx.Core.Jos
|
||||
return string.Empty;
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 更新调整区域树缓存数据,会更新州省缓存
|
||||
/// </summary>
|
||||
/// <param name="countryId"></param>
|
||||
/// <returns></returns>
|
||||
public string ResetStateProvinceAndAreaTree(long countryId)
|
||||
{
|
||||
var jobId = _backgroundJobClient.Enqueue<ResetCacheJob>(job => job.ResetStateProvinceAndAreaTree(countryId));
|
||||
return jobId;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user