修复清理vengine

This commit is contained in:
2023-09-19 10:55:14 +08:00
parent b9e9636d72
commit 0bf34fa215
31 changed files with 289 additions and 252 deletions

View File

@@ -3,15 +3,13 @@
// https://git.tuotong-tech.com/tnb/tnb-server //
/////////////////////////////////////////////////////////////////////////////////
using JNPF.Common.Configuration;
using JNPF;
using JNPF.ViewEngine;
using Mapster;
using Microsoft.AspNetCore.Mvc;
using SqlSugar;
using Tnb.Core;
using Tnb.Vengine.DataAccess;
using Tnb.Vengine.Domain;
using JNPF.ViewEngine;
namespace Tnb.Vengine.AppService;
@@ -22,11 +20,12 @@ namespace Tnb.Vengine.AppService;
[Route("api/[area]/[controller]/[action]")]
public class VmodelAppService : VengineAppService<Vmodel>, IVmodelAppService
{
private readonly ViewEngine _viewEngine;
private readonly IViewEngine _viewEngine;
/// <summary>
/// 构造函数
/// </summary>
public VmodelAppService(IDataAccess da, ViewEngine viewEngine) : base(da)
public VmodelAppService(IDataAccess da, IViewEngine viewEngine) : base(da)
{
_viewEngine = viewEngine;
}
@@ -221,8 +220,6 @@ public class VmodelAppService : VengineAppService<Vmodel>, IVmodelAppService
//code = CodeHelper.RunCompile($"{TemplateContext.KeyEntityPageVue}.cshtml", ctx, null, "SqlSugar");
//CodeHelper.SaveCodeToFile(code, filePath);
return code;
}
}
}