diff --git a/ZR.Admin.WebApi/Startup.cs b/ZR.Admin.WebApi/Startup.cs
index 1d1340f..1d568c1 100644
--- a/ZR.Admin.WebApi/Startup.cs
+++ b/ZR.Admin.WebApi/Startup.cs
@@ -1,6 +1,7 @@
using Hei.Captcha;
using Infrastructure;
using Infrastructure.Extensions;
+using JinianNet.JNTemplate;
using Microsoft.AspNetCore.Authentication.Cookies;
using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.DataProtection;
@@ -84,6 +85,14 @@ namespace ZR.Admin.WebApi
c.IncludeXmlComments("ZRAdmin.xml", true);
}
});
+
+ //jntģȫֱ
+ Engine.Configure((options) =>
+ {
+ options.Data.Set("author", Configuration["gen:author"]);
+ options.Data.Set("time", DateTime.Now.ToString("yyyy-MM-dd"));
+ //...
+ });
}
// This method gets called by the runtime. Use this method to configure the HTTP request pipeline.
diff --git a/ZR.Admin.WebApi/wwwroot/CodeGenTemplate/InputDtoTemplate.txt b/ZR.Admin.WebApi/wwwroot/CodeGenTemplate/InputDtoTemplate.txt
index ded802d..e44f353 100644
--- a/ZR.Admin.WebApi/wwwroot/CodeGenTemplate/InputDtoTemplate.txt
+++ b/ZR.Admin.WebApi/wwwroot/CodeGenTemplate/InputDtoTemplate.txt
@@ -1,24 +1,24 @@
using System;
using System.Collections.Generic;
-using {ModelsNamespace}.Dto;
-using {ModelsNamespace}.Models;
+using ${ModelsNamespace}.Dto;
+using ${ModelsNamespace}.Models;
-namespace {DtosNamespace}.Dto
+namespace ${DtosNamespace}.Dto
{
///