- 配置AuthService使用OpenIddict reference tokens - 添加fengling-api客户端用于introspection验证 - 配置Console API通过OpenIddict验证reference tokens - 实现Tenant/Users/Roles/OAuthClients CRUD API - 添加GatewayController服务注册API - 重构Repository和Service层支持多租户 BREAKING CHANGE: API认证现在使用OpenIddict reference tokens
16 lines
665 B
C#
16 lines
665 B
C#
using Fengling.Console.Models.Entities;
|
|
|
|
namespace Fengling.Console.Repositories;
|
|
|
|
public interface IUserRepository
|
|
{
|
|
Task<ApplicationUser?> GetByIdAsync(long id);
|
|
Task<ApplicationUser?> GetByUserNameAsync(string userName);
|
|
Task<IEnumerable<ApplicationUser>> GetAllAsync();
|
|
Task<IEnumerable<ApplicationUser>> GetPagedAsync(int page, int pageSize, string? userName = null, string? email = null, string? tenantId = null);
|
|
Task<int> CountAsync(string? userName = null, string? email = null, string? tenantId = null);
|
|
Task AddAsync(ApplicationUser user);
|
|
Task UpdateAsync(ApplicationUser user);
|
|
Task DeleteAsync(ApplicationUser user);
|
|
}
|