|
|
@ -1,5 +1,6 @@ |
|
|
using Microsoft.Data.SqlClient; |
|
|
using Microsoft.Data.SqlClient; |
|
|
using Microsoft.Extensions.Configuration; |
|
|
using Microsoft.Extensions.Configuration; |
|
|
|
|
|
using Microsoft.Extensions.Logging; |
|
|
using Newtonsoft.Json; |
|
|
using Newtonsoft.Json; |
|
|
using Newtonsoft.Json.Converters; |
|
|
using Newtonsoft.Json.Converters; |
|
|
using Newtonsoft.Json.Linq; |
|
|
using Newtonsoft.Json.Linq; |
|
|
@ -40,7 +41,7 @@ namespace Shentun.Peis.PlugIns |
|
|
protected Guid AsbitemColumnReferenceId; |
|
|
protected Guid AsbitemColumnReferenceId; |
|
|
protected Guid DepartmentColumnReferenceId; |
|
|
protected Guid DepartmentColumnReferenceId; |
|
|
protected Guid UserColumnReferenceId; |
|
|
protected Guid UserColumnReferenceId; |
|
|
|
|
|
|
|
|
|
|
|
protected ILogger<PlugInsBase> Logger; |
|
|
static PlugInsBase() |
|
|
static PlugInsBase() |
|
|
{ |
|
|
{ |
|
|
Dapper.DefaultTypeMap.MatchNamesWithUnderscores = true; |
|
|
Dapper.DefaultTypeMap.MatchNamesWithUnderscores = true; |
|
|
@ -71,6 +72,12 @@ namespace Shentun.Peis.PlugIns |
|
|
.GetSection("SelfUser").Value; |
|
|
.GetSection("SelfUser").Value; |
|
|
SelfPassword = AppConfig.GetSection("App") |
|
|
SelfPassword = AppConfig.GetSection("App") |
|
|
.GetSection("SelfPassword").Value; |
|
|
.GetSection("SelfPassword").Value; |
|
|
|
|
|
|
|
|
|
|
|
using var loggerFactory = LoggerFactory.Create(builder => |
|
|
|
|
|
{ |
|
|
|
|
|
|
|
|
|
|
|
}); |
|
|
|
|
|
Logger = loggerFactory.CreateLogger<PlugInsBase>(); |
|
|
} |
|
|
} |
|
|
public void Init(string parmValue) |
|
|
public void Init(string parmValue) |
|
|
{ |
|
|
{ |
|
|
|