[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,11 @@
namespace AMREZ.EOP.Contracts.DTOs.MasterData.Allergen;
public sealed record AllergenCreateRequest(
string Code,
string Name,
Dictionary<string, string>? NameI18n,
Dictionary<string, object>? Meta,
string Scope = "tenant",
Guid? OverridesGlobalId = null,
bool IsActive = true
);

View File

@@ -0,0 +1,9 @@
namespace AMREZ.EOP.Contracts.DTOs.MasterData.Allergen;
public sealed record AllergenListRequest(
int Page = 1,
int PageSize = 20,
string? Search = null,
bool IncludeInactive = false,
bool IncludeOverrides = true
);

View File

@@ -0,0 +1,13 @@
namespace AMREZ.EOP.Contracts.DTOs.MasterData.Allergen;
public sealed record AllergenResponse(
Guid Id,
string Scope,
string Code,
string Name,
Dictionary<string, string>? NameI18n,
Guid? OverridesGlobalId,
bool IsActive,
bool IsSystem,
Dictionary<string, object>? Meta
);

View File

@@ -0,0 +1,8 @@
namespace AMREZ.EOP.Contracts.DTOs.MasterData.Allergen;
public sealed record AllergenUpdateRequest(
string Name,
Dictionary<string, string>? NameI18n,
Dictionary<string, object>? Meta,
bool IsActive
);