Import from internal git
This commit is contained in:
21
Generator/Mappers/TemplateMapper.cs
Normal file
21
Generator/Mappers/TemplateMapper.cs
Normal file
@@ -0,0 +1,21 @@
|
||||
using Core;
|
||||
using Core.Dto.Settings;
|
||||
using Core.Settings;
|
||||
|
||||
namespace Generator.Mappers;
|
||||
|
||||
public static class TemplateMapper
|
||||
{
|
||||
public static TemplatesConfig Map(this TemplatesConfigDto dto)
|
||||
=> new()
|
||||
{
|
||||
Folder = new Location(dto.Folder),
|
||||
PlantUml = new Location([dto.Folder, dto.PlantUml]),
|
||||
DotnetServerGeneratorConfig = new Location(dto.DotnetServerGeneratorConfig),
|
||||
DotnetClientGeneratorConfig = new Location(dto.DotnetClientGeneratorConfig),
|
||||
JavaGeneratorConfig = new Location(dto.JavaGeneratorConfig),
|
||||
ServerIgnore = new Location(dto.ServerIgnore),
|
||||
ClientIgnore = new Location(dto.ClientIgnore),
|
||||
};
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user