style: 💄 代码格式整理 (#105)

This commit is contained in:
2024-04-25 21:59:54 +08:00
committed by GitHub
parent 6bd6e62fb6
commit f005da8db3
48 changed files with 199 additions and 196 deletions

View File

@@ -144,8 +144,8 @@ public sealed class JobController(IJobCache cache) : ControllerBase<IJobCache, I
/// <summary>
/// 更新计划作业
/// </summary>
[Transaction]
[NonAction]
[Transaction]
public Task<QueryJobRsp> UpdateAsync(UpdateJobReq req)
{
return Cache.UpdateAsync(req);

View File

@@ -138,8 +138,8 @@ public sealed class UserController(IUserCache cache, IConfigCache configCache)
/// <summary>
/// 注册用户
/// </summary>
[Transaction]
[AllowAnonymous]
[Transaction]
public async Task<UserInfoRsp> RegisterAsync(RegisterUserReq req)
{
var config = await configCache.GetLatestConfigAsync().ConfigureAwait(false);

View File

@@ -89,8 +89,8 @@ public sealed class VerifyCodeController(IVerifyCodeCache cache, ICaptchaCache c
/// <summary>
/// 发送验证码
/// </summary>
[Transaction]
[AllowAnonymous]
[Transaction]
public async Task<SendVerifyCodeRsp> SendVerifyCodeAsync(SendVerifyCodeReq req)
{
await captchaCache.VerifyCaptchaAndRemoveAsync(req.VerifyCaptchaReq).ConfigureAwait(false);
@@ -109,8 +109,8 @@ public sealed class VerifyCodeController(IVerifyCodeCache cache, ICaptchaCache c
/// <summary>
/// 完成验证
/// </summary>
[Transaction]
[AllowAnonymous]
[Transaction]
public Task<bool> VerifyAsync(VerifyCodeReq req)
{
return Cache.VerifyAsync(req);