23 lines
619 B
C#
23 lines
619 B
C#
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"])
|
|
};
|
|
}
|
|
} |