chore: 🔨 资源文件拆分 (#73)

This commit is contained in:
2023-12-13 12:01:45 +08:00
committed by GitHub
parent 3e6b8e6c35
commit fe41974ed6
14 changed files with 190 additions and 413 deletions

View File

@ -12,7 +12,7 @@ public sealed class MobileAttribute : RegexAttribute
public MobileAttribute() //
: base(Chars.RGX_MOBILE)
{
ErrorMessageResourceName = nameof(Ln.);
ErrorMessageResourceName = nameof(Ln.);
ErrorMessageResourceType = typeof(Ln);
}
}

View File

@ -19,7 +19,7 @@ public static class HttpRequestMessageExtensions
/// </summary>
public static async Task<HttpRequestMessage> LogAsync<T>(this HttpRequestMessage me, ILogger<T> logger)
{
logger.Info($"{Ln.请求}: {await me.BuildJsonAsync().ConfigureAwait(false)}");
logger.Info($"HTTP Request: {await me.BuildJsonAsync().ConfigureAwait(false)}");
return me;
}
}

View File

@ -16,6 +16,6 @@ public sealed class ApiSynchronizer(ILogger<ApiSynchronizer> logger) : IEventSub
{
var logService = App.GetService<IApiService>();
await logService.SyncAsync().ConfigureAwait(false);
logger.Info($"{nameof(IApiService)}.{nameof(IApiService.SyncAsync)} {Ln.已完成}");
logger.Info($"{nameof(IApiService)}.{nameof(IApiService.SyncAsync)} {Ln.已处理完毕}");
}
}

View File

@ -28,6 +28,6 @@ public sealed class EmailCodeSender(ILogger<EmailCodeSender> logger) : IEventSub
Status = VerifyCodeStatues.Sent
})
.ConfigureAwait(false);
logger.Info($"{nameof(IVerifyCodeService)}.{nameof(IVerifyCodeService.UpdateAsync)} {Ln.已完成}");
logger.Info($"{nameof(IVerifyCodeService)}.{nameof(IVerifyCodeService.UpdateAsync)} {Ln.已处理完毕}");
}
}

View File

@ -28,6 +28,6 @@ public sealed class SmsCodeSender(ILogger<SmsCodeSender> logger) : IEventSubscri
Status = VerifyCodeStatues.Sent
})
.ConfigureAwait(false);
logger.Info($"{nameof(IVerifyCodeService)}.{nameof(IVerifyCodeService.UpdateAsync)} {Ln.已完成}");
logger.Info($"{nameof(IVerifyCodeService)}.{nameof(IVerifyCodeService.UpdateAsync)} {Ln.已处理完毕}");
}
}