[Add] MasterData Services.
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
namespace AMREZ.EOP.Contracts.DTOs.MasterData.Category;
|
||||
|
||||
public sealed record CategoryCreateRequest(
|
||||
string Code,
|
||||
string Name,
|
||||
Dictionary<string, string>? NameI18n,
|
||||
Dictionary<string, object>? Meta,
|
||||
string Scope = "tenant",
|
||||
Guid? OverridesGlobalId = null,
|
||||
bool IsActive = true
|
||||
);
|
||||
@@ -0,0 +1,9 @@
|
||||
namespace AMREZ.EOP.Contracts.DTOs.MasterData.Category;
|
||||
|
||||
public sealed record CategoryListRequest(
|
||||
int Page = 1,
|
||||
int PageSize = 20,
|
||||
string? Search = null,
|
||||
bool IncludeInactive = false,
|
||||
bool IncludeOverrides = true
|
||||
);
|
||||
@@ -0,0 +1,13 @@
|
||||
namespace AMREZ.EOP.Contracts.DTOs.MasterData.Category;
|
||||
|
||||
public sealed record CategoryResponse(
|
||||
Guid Id,
|
||||
string Scope,
|
||||
string Code,
|
||||
string Name,
|
||||
Dictionary<string, string>? NameI18n,
|
||||
Guid? OverridesGlobalId,
|
||||
bool IsActive,
|
||||
bool IsSystem,
|
||||
Dictionary<string, object>? Meta
|
||||
);
|
||||
@@ -0,0 +1,8 @@
|
||||
namespace AMREZ.EOP.Contracts.DTOs.MasterData.Category;
|
||||
|
||||
public sealed record CategoryUpdateRequest(
|
||||
string Name,
|
||||
Dictionary<string, string>? NameI18n,
|
||||
Dictionary<string, object>? Meta,
|
||||
bool IsActive
|
||||
);
|
||||
Reference in New Issue
Block a user