UNPKG

leds-spark-lib

Version:

Biblioteca de geração de código

20 lines (19 loc) 724 B
import { expandToStringWithNL } from "../../../../../models/model.js"; import fs from "fs"; import path from "path"; export function generate(model, target_folder) { fs.writeFileSync(path.join(target_folder, "IService.cs"), genrateIservice(model)); } function genrateIservice(model) { return expandToStringWithNL ` using ${model.configuration?.name}.Domain.Security.Account.Entities; namespace ${model.configuration?.name}.Application.Security.Interfaces { public interface IService { Task SendVerificationEmailAsync(User user, CancellationToken cancellationToken); Task SendResetPasswordAsync(User user, CancellationToken cancellationToken); } }`; } //# sourceMappingURL=generate.js.map