feat: 租户列表 API 支持按状态过滤
- ListTenantsQuery 添加 Status 可选参数 - ITenantRepository.GetAllAsync 添加 status 参数 - EfTenantRepository 实现状态过滤逻辑 - TenantsController.List 添加 status 查询参数 Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
using TakeoutSaaS.Domain.Billings.Entities;
|
||||
using TakeoutSaaS.Domain.Tenants.Entities;
|
||||
using TakeoutSaaS.Domain.Tenants.Enums;
|
||||
|
||||
namespace TakeoutSaaS.Domain.Tenants.Repositories;
|
||||
|
||||
@@ -37,9 +38,10 @@ public interface ITenantRepository
|
||||
/// 获取所有租户列表(用于下拉选择器)。
|
||||
/// </summary>
|
||||
/// <param name="keyword">关键字(租户名称/编码)。</param>
|
||||
/// <param name="status">租户状态过滤(可选)。</param>
|
||||
/// <param name="cancellationToken">取消标记。</param>
|
||||
/// <returns>租户列表。</returns>
|
||||
Task<IReadOnlyList<Tenant>> GetAllAsync(string? keyword, CancellationToken cancellationToken = default);
|
||||
Task<IReadOnlyList<Tenant>> GetAllAsync(string? keyword, TenantStatus? status = null, CancellationToken cancellationToken = default);
|
||||
|
||||
/// <summary>
|
||||
/// 获取租户详情(包含认证、订阅、套餐信息)。
|
||||
|
||||
Reference in New Issue
Block a user