17 lines
647 B
C#
17 lines
647 B
C#
using Fengling.AuthService.Models;
|
|
|
|
namespace Fengling.Console.Repositories;
|
|
|
|
public interface ITenantRepository
|
|
{
|
|
Task<Tenant?> GetByIdAsync(long id);
|
|
Task<Tenant?> GetByTenantIdAsync(string tenantId);
|
|
Task<IEnumerable<Tenant>> GetAllAsync();
|
|
Task<IEnumerable<Tenant>> GetPagedAsync(int page, int pageSize, string? name = null, string? tenantId = null, string? status = null);
|
|
Task<int> CountAsync(string? name = null, string? tenantId = null, string? status = null);
|
|
Task AddAsync(Tenant tenant);
|
|
Task UpdateAsync(Tenant tenant);
|
|
Task DeleteAsync(Tenant tenant);
|
|
Task<int> GetUserCountAsync(long tenantId);
|
|
}
|