mirror of
https://github.com/nsnail/NetAdmin.git
synced 2025-12-29 00:55:48 +08:00
style: 💄 代码格式整理 (#105)
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user