[Add] MasterData Services.

This commit is contained in:
Thanakarn Klangkasame
2025-11-26 10:29:56 +07:00
parent d4ab1cb592
commit 1e636aa3d5
205 changed files with 7814 additions and 69 deletions

View File

@@ -0,0 +1,15 @@
using AMREZ.EOP.Contracts.DTOs.Common;
using AMREZ.EOP.Contracts.DTOs.MasterData.Language;
using AMREZ.EOP.Domain.Entities.MasterData;
namespace AMREZ.EOP.Abstractions.Infrastructures.Repositories;
public interface ILanguageRepository
{
Task<Language?> GetAsync(Guid id, CancellationToken ct = default);
Task<PagedResponse<Language>> SearchEffectiveAsync(Guid tenantId, LanguageListRequest req, CancellationToken ct = default);
Task<bool> CodeExistsAsync(Guid tenantId, string code, CancellationToken ct = default);
Task AddAsync(Language entity, CancellationToken ct = default);
Task UpdateAsync(Language entity, CancellationToken ct = default);
Task<int> SoftDeleteAsync(Guid id, Guid tenantId, CancellationToken ct = default);
}