Initial version
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
using EonaCat.gRPC.Core.Entities;
|
||||
using EonaCat.Repositories;
|
||||
|
||||
namespace EonaCat.gRPC.Core.Interfaces.Repositories;
|
||||
|
||||
public interface IBaseRepository<T> : IRepository<T> where T : BaseEntity
|
||||
{
|
||||
/// <param name="acceptAllChangesOnSuccess">
|
||||
/// Indicates whether <see cref="Microsoft.EntityFrameworkCore.ChangeTracking.ChangeTracker.AcceptAllChanges" /> is called after
|
||||
/// the changes have been sent successfully to the database.
|
||||
/// </param>
|
||||
Task SaveChangesAsync(bool acceptAllChangesOnSuccess);
|
||||
Task SaveChangesAsync();
|
||||
void Save();
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
using EonaCat.gRPC.Core.Entities;
|
||||
|
||||
namespace EonaCat.gRPC.Core.Interfaces.Repositories;
|
||||
|
||||
public interface IUserRepository : IBaseRepository<UserEntity>
|
||||
{
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
namespace EonaCat.gRPC.Core.Interfaces.Services;
|
||||
|
||||
public interface IGreeterService
|
||||
{
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
using EonaCat.gRPC.Core.Entities;
|
||||
|
||||
namespace EonaCat.gRPC.Core.Interfaces.Services;
|
||||
|
||||
public interface IUserService
|
||||
{
|
||||
Task<long> CreateUser(UserEntity user);
|
||||
Task<IEnumerable<UserEntity>> GetAsync();
|
||||
Task<UserEntity> GetAsync(long id);
|
||||
}
|
||||
Reference in New Issue
Block a user