Import from internal git

This commit is contained in:
2025-10-11 13:08:09 +02:00
commit 97aaa715dc
175 changed files with 7014 additions and 0 deletions

View File

@@ -0,0 +1,23 @@
using Core;
using Core.Actions;
using Generator.DataSource.Settings;
using Generator.Mappers;
namespace Generator.Daos;
public class TemplateDao : AbstractDao
{
public TemplateDao(ConfigManager confManager) : base(confManager)
{ }
public PlantUmlExport PlantUml(ISpecFile file)
{
var config = ConfManager.Templates.Map();
return new PlantUmlExport
{
LocalRoot = ConfManager.GetBase().LocalRoot,
Template = config.PlantUml,
Output = ConfManager.GetGeneral().ApiFolder.ConcatenateWith([file.Folder, $"{file.Name}.puml"])
};
}
}