WIP: AI Validator

This commit is contained in:
2025-12-15 20:05:26 +01:00
parent 096ff5573e
commit f10dfe629e
16 changed files with 1686 additions and 9 deletions

View File

@@ -0,0 +1,21 @@
using DiunaBI.Domain.Entities;
using DiunaBI.Infrastructure.Interfaces;
namespace DiunaBI.Infrastructure.Plugins;
public abstract class BaseDataValidator : IDataValidator
{
public abstract string ValidatorType { get; }
public virtual bool CanValidate(string validatorType) => ValidatorType == validatorType;
public abstract void Validate(Layer validationWorker);
/// <summary>
/// Helper method to get record value by code from layer records
/// </summary>
protected string? GetRecordValue(ICollection<Record> records, string code)
{
return records.FirstOrDefault(x => x.Code == code)?.Desc1;
}
}