2025-07-19 09:25:01 +08:00
|
|
|
using DMS.Core.Models;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
|
2025-07-19 11:11:01 +08:00
|
|
|
namespace DMS.Infrastructure.Interfaces
|
2025-07-19 09:25:01 +08:00
|
|
|
{
|
|
|
|
|
public interface IUserRepository
|
|
|
|
|
{
|
|
|
|
|
Task<User> GetByIdAsync(int id);
|
|
|
|
|
Task<List<User>> GetAllAsync();
|
|
|
|
|
Task<int> AddAsync(User user);
|
|
|
|
|
Task<int> UpdateAsync(User user);
|
|
|
|
|
Task<int> DeleteAsync(int id);
|
2025-07-19 22:29:50 +08:00
|
|
|
Task BeginTranAsync();
|
|
|
|
|
Task CommitTranAsync();
|
|
|
|
|
Task RollbackTranAsync();
|
2025-07-19 09:25:01 +08:00
|
|
|
}
|
|
|
|
|
}
|