refactor: 移除租户端简化登录接口及相关依赖

- 移除 /api/tenant/v1/auth/login/simple 接口
- 移除 IAdminAuthService.LoginSimpleAsync 方法
- 移除 AdminAuthService.LoginSimpleAsync 实现
- 移除 IsLikelyPhone 辅助方法
- 清理未使用的 ITenantContextAccessor 和 ITenantRepository 依赖
- 添加 CLAUDE.md 开发规范文件

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
MSuMshk
2026-02-02 11:38:32 +08:00
parent 5338eb5434
commit 286e6e9acb
4 changed files with 223 additions and 110 deletions

View File

@@ -34,24 +34,6 @@ public sealed class AuthController(IAdminAuthService authService) : BaseApiContr
return ApiResponse<TokenResponse>.Ok(response);
}
/// <summary>
/// 简化登录:支持使用“账号@手机号”自动解析租户后登录。
/// </summary>
/// <param name="request">登录请求。</param>
/// <param name="cancellationToken">取消标记。</param>
/// <returns>访问令牌与刷新令牌。</returns>
[HttpPost("login/simple")]
[AllowAnonymous]
[ProducesResponseType(typeof(ApiResponse<TokenResponse>), StatusCodes.Status200OK)]
public async Task<ApiResponse<TokenResponse>> LoginSimple([FromBody] AdminLoginRequest request, CancellationToken cancellationToken)
{
// 1. 调用认证服务完成简化登录
var response = await authService.LoginSimpleAsync(request, cancellationToken);
// 2. 返回令牌
return ApiResponse<TokenResponse>.Ok(response);
}
/// <summary>
/// 刷新 Token。
/// </summary>