Merge branch 'master' into net6.0

This commit is contained in:
不做码农 2022-04-10 10:55:53 +08:00
commit 66458d7ce1
24 changed files with 87 additions and 144 deletions

View File

@ -11,8 +11,6 @@ namespace Infrastructure
public static string ConnBus = "conn_bus"; public static string ConnBus = "conn_bus";
public static string ConnBusDbType = "conn_bus_type"; public static string ConnBusDbType = "conn_bus_type";
public static string DbKey = "DbKey";
public string Redis { get; set; } public string Redis { get; set; }
public string Database { get; set; } public string Database { get; set; }
/// <summary> /// <summary>

View File

@ -12,7 +12,7 @@
* 基于.NET5/.NET6实现的通用权限管理平台RBAC模式。整合最新技术高效快速开发前后端分离模式开箱即用。 * 基于.NET5/.NET6实现的通用权限管理平台RBAC模式。整合最新技术高效快速开发前后端分离模式开箱即用。
* 代码量少、学习简单、通俗易懂、功能强大、易扩展、轻量级让web开发更快速、简单高效从此告别996解决70%的重复工作,专注您的业务,轻松开发从现在开始! * 代码量少、学习简单、通俗易懂、功能强大、易扩展、轻量级让web开发更快速、简单高效从此告别996解决70%的重复工作,专注您的业务,轻松开发从现在开始!
* 前端采用Vue2.0、Element UI。 * 前端采用Vue2.0、Element UI。
* 后端采用Net5/Net6、Sqlsugar、MySQL。 * 后端采用Net5/Net6、Sqlsugar、MySQL等,可以自动分库分表
* 权限认证使用Jwt支持多终端认证系统。 * 权限认证使用Jwt支持多终端认证系统。
* 支持加载动态权限菜单,多方式轻松权限控制 * 支持加载动态权限菜单,多方式轻松权限控制
* 提供了技术栈(Ant Design Vue)版[Ant Design Vue](https://gitee.com/billzh/mc-dull.git) * 提供了技术栈(Ant Design Vue)版[Ant Design Vue](https://gitee.com/billzh/mc-dull.git)
@ -37,13 +37,13 @@
Vue版前端技术栈 基于vue、vuex、vue-router 、vue-cli 、axios 和 element-ui前端采用vscode工具开发 Vue版前端技术栈 基于vue、vuex、vue-router 、vue-cli 、axios 和 element-ui前端采用vscode工具开发
## 🍀后端技术 ## 🍀后端技术
核心框架:.Net5.0/.Net6 + Web API + sqlsugar + swagger + signalR 核心框架:.Net5.0/.Net6 + Web API + sqlsugar + swagger + signalR + IpRateLimit
定时计划任务Quartz.Net组件 定时计划任务Quartz.Net组件支持执行程序集或者http网络请求
安全支持过滤器、Sql注入、请求伪造 安全支持:过滤器(数据权限过滤)、Sql注入、请求伪造
日志管理NLog、登录日志、操作日志 日志管理NLog、登录日志、操作日志、定时任务日志
工具类:验证码、丰富公共功能、代码生成 工具类:验证码、丰富公共功能、代码生成
@ -63,9 +63,10 @@ Vue版前端技术栈 基于vue、vuex、vue-router 、vue-cli 、axios 和 e
11. 任务系统基于Quartz.NET可以在线添加、修改、删除、手动执行)任务调度包含执行结果日志。 11. 任务系统基于Quartz.NET可以在线添加、修改、删除、手动执行)任务调度包含执行结果日志。
12. 文章管理:可以写文章记录。 12. 文章管理:可以写文章记录。
13. 代码生成:可以一键生成前后端代码(.cs、.vue、.js、SQL文件等),支持下载,自定义配置前端展示控件、让开发更快捷高效。 13. 代码生成:可以一键生成前后端代码(.cs、.vue、.js、SQL文件等),支持下载,自定义配置前端展示控件、让开发更快捷高效。
14. 文件管理:可以上传文件 14. 文件管理:可以进行上传文件管理,目前支持上传到本地、阿里云
15. 通知管理系统通知公告信息发布维护使用signalr实现对用户实时通知。 15. 通知管理系统通知公告信息发布维护使用signalr实现对用户实时通知。
16. 参数管理:对系统动态配置常用参数。 16. 参数管理:对系统动态配置常用参数。
17. 发送邮件:可以对多个用户进行发送邮件
## 🍻项目结构 ## 🍻项目结构
@ -104,7 +105,7 @@ Vue版前端技术栈 基于vue、vuex、vue-router 、vue-cli 、axios 和 e
</tr> </tr>
<tr> <tr>
<td><img src="https://gitee.com/izory/ZrAdminNetCore/raw/master/document/images/11.png"/></td> <td><img src="https://gitee.com/izory/ZrAdminNetCore/raw/master/document/images/11.png"/></td>
<td><img src="https://gitee.com/izory/ZrAdminNetCore/raw/master/document/images/12.png"/></td> <td><img src="https://gitee.com/izory/ZrAdminNetCore/raw/master/document/images/12.jpeg"/></td>
</tr> </tr>
<tr> <tr>
<td><img src="https://gitee.com/izory/ZrAdminNetCore/raw/master/document/images/13.png"/></td> <td><img src="https://gitee.com/izory/ZrAdminNetCore/raw/master/document/images/13.png"/></td>
@ -115,9 +116,13 @@ Vue版前端技术栈 基于vue、vuex、vue-router 、vue-cli 、axios 和 e
<td><img src="https://gitee.com/izory/ZrAdminNetCore/raw/master/document/images/16.png"/></td> <td><img src="https://gitee.com/izory/ZrAdminNetCore/raw/master/document/images/16.png"/></td>
</tr> </tr>
<tr> <tr>
<td><img src="https://gitee.com/izory/ZrAdminNetCore/raw/master/document/images/17.png"/></td> <td><img src="https://gitee.com/izory/ZrAdminNetCore/raw/master/document/images/17.jpeg"/></td>
<td><img src="https://gitee.com/izory/ZrAdminNetCore/raw/master/document/images/18.png"/></td> <td><img src="https://gitee.com/izory/ZrAdminNetCore/raw/master/document/images/18.png"/></td>
</tr> </tr>
<tr>
<td><img src="https://gitee.com/izory/ZrAdminNetCore/raw/master/document/images/19.jpeg"/></td>
<td><img src="https://gitee.com/izory/ZrAdminNetCore/raw/master/document/images/20.jpeg"/></td>
</tr>
</table> </table>
## 🎉优势 ## 🎉优势

View File

@ -106,7 +106,7 @@ namespace ZR.Admin.WebApi.Controllers
throw new CustomException("请求参数错误"); throw new CustomException("请求参数错误");
} }
//从 Dto 映射到 实体 //从 Dto 映射到 实体
var model = parm.Adapt<SysConfig>().ToCreate(); var model = parm.Adapt<SysConfig>().ToCreate(HttpContext);
return SUCCESS(_SysConfigService.Insert(model, it => new return SUCCESS(_SysConfigService.Insert(model, it => new
{ {

View File

@ -47,14 +47,14 @@ namespace ZR.Admin.WebApi.Extensions
}); });
SugarIocServices.ConfigurationSugar(db => SugarIocServices.ConfigurationSugar(db =>
{ {
FilterData(0);
//FilterData(1);
#region db0 #region db0
db.GetConnection(0).Aop.OnLogExecuting = (sql, pars) => db.GetConnection(0).Aop.OnLogExecuting = (sql, pars) =>
{ {
var param = db.Utilities.SerializeObject(pars.ToDictionary(it => it.ParameterName, it => it.Value)); var param = db.GetConnection(0).Utilities.SerializeObject(pars.ToDictionary(it => it.ParameterName, it => it.Value));
FilterData(db.GetConnection(0)); logger.Info($"【sql语句】{sql}{param}\n");
logger.Info($"【sql语句】{sql}{param}");
}; };
db.GetConnection(0).Aop.OnError = (e) => db.GetConnection(0).Aop.OnError = (e) =>
@ -72,7 +72,7 @@ namespace ZR.Admin.WebApi.Extensions
//Db1 //Db1
db.GetConnection(1).Aop.OnLogExecuting = (sql, pars) => db.GetConnection(1).Aop.OnLogExecuting = (sql, pars) =>
{ {
var param = DbScoped.SugarScope.Utilities.SerializeObject(pars.ToDictionary(it => it.ParameterName, it => it.Value)); var param = db.GetConnection(1).Utilities.SerializeObject(pars.ToDictionary(it => it.ParameterName, it => it.Value));
logger.Info($"【sql语句】{sql}, {param}"); logger.Info($"【sql语句】{sql}, {param}");
}; };
@ -88,7 +88,8 @@ namespace ZR.Admin.WebApi.Extensions
/// <summary> /// <summary>
/// 分页获取count 不会追加sql /// 分页获取count 不会追加sql
/// </summary> /// </summary>
private static void FilterData(ISqlSugarClient sqlSugarClient) /// <param name="configId">多库id</param>
private static void FilterData(int configId)
{ {
var u = App.User; var u = App.User;
if (u == null) return; if (u == null) return;
@ -97,8 +98,8 @@ namespace ZR.Admin.WebApi.Extensions
if (user == null) return; if (user == null) return;
//管理员不过滤 //管理员不过滤
if (user.RoleIds.Any(f => f.Equals("admin"))) return; if (user.RoleIds.Any(f => f.Equals("admin"))) return;
var db = DbScoped.SugarScope.GetConnection(configId);
foreach (var role in user.Roles) foreach (var role in user.Roles.OrderBy(f => f.DataScope))
{ {
string dataScope = role.DataScope; string dataScope = role.DataScope;
if (DATA_SCOPE_ALL.Equals(dataScope))//所有权限 if (DATA_SCOPE_ALL.Equals(dataScope))//所有权限
@ -107,28 +108,30 @@ namespace ZR.Admin.WebApi.Extensions
} }
else if (DATA_SCOPE_CUSTOM.Equals(dataScope))//自定数据权限 else if (DATA_SCOPE_CUSTOM.Equals(dataScope))//自定数据权限
{ {
//有问题 //" OR {}.dept_id IN ( SELECT dept_id FROM sys_role_dept WHERE role_id = {} ) ", deptAlias, role.getRoleId()));
//var roleDepts = db0.Queryable<SysRoleDept>() var filter1 = new TableFilterItem<SysUser>(it => SqlFunc.Subqueryable<SysRoleDept>().Where(f => f.DeptId == it.DeptId && f.RoleId == role.RoleId).Any());
//.Where(f => f.RoleId == role.RoleId).Select(f => f.DeptId).ToList(); db.QueryFilter.Add(filter1);
//var filter1 = new TableFilterItem<SysDept>(it => roleDepts.Contains(it.DeptId));
//DbScoped.SugarScope.GetConnection(0).QueryFilter.Add(filter1);
} }
else if (DATA_SCOPE_DEPT.Equals(dataScope))//本部门数据 else if (DATA_SCOPE_DEPT.Equals(dataScope))//本部门数据
{ {
//有问题添加后的SQL 语句 是 AND deptId = @deptId var filter1 = new TableFilterItem<SysUser>(it => it.DeptId == user.DeptId);
var exp = Expressionable.Create<SysDept>(); db.QueryFilter.Add(filter1);
exp.Or(it => it.DeptId == user.DeptId);
var filter1 = new TableFilterItem<SysDept>(exp.ToExpression());
sqlSugarClient.QueryFilter.Add(filter1);
} }
else if (DATA_SCOPE_DEPT_AND_CHILD.Equals(dataScope))//本部门及以下数据 else if (DATA_SCOPE_DEPT_AND_CHILD.Equals(dataScope))//本部门及以下数据
{ {
//SQl OR {}.dept_id IN ( SELECT dept_id FROM sys_dept WHERE dept_id = {} or find_in_set( {} , ancestors ) ) //SQl OR {}.dept_id IN ( SELECT dept_id FROM sys_dept WHERE dept_id = {} or find_in_set( {} , ancestors ) )
var allChildDepts = db.Queryable<SysDept>().ToChildList(it => it.ParentId, user.DeptId);
var filter1 = new TableFilterItem<SysUser>(it => allChildDepts.Select(f => f.DeptId).ToList().Contains(it.DeptId));
db.QueryFilter.Add(filter1);
var filter2 = new TableFilterItem<SysDept>(it => allChildDepts.Select(f => f.DeptId).ToList().Contains(it.DeptId));
db.QueryFilter.Add(filter2);
} }
else if (DATA_SCOPE_SELF.Equals(dataScope))//仅本人数据 else if (DATA_SCOPE_SELF.Equals(dataScope))//仅本人数据
{ {
var filter1 = new TableFilterItem<SysUser>(it => it.UserId == user.UserId, true); var filter1 = new TableFilterItem<SysUser>(it => it.UserId == user.UserId, true);
sqlSugarClient.QueryFilter.Add(filter1); db.QueryFilter.Add(filter1);
} }
} }
} }

View File

@ -121,7 +121,7 @@ namespace ZR.Admin.WebApi.Middleware
SysOperLogService.InsertOperlog(sysOperLog); SysOperLogService.InsertOperlog(sysOperLog);
} }
public static Endpoint? GetEndpoint(HttpContext context) public static Endpoint GetEndpoint(HttpContext context)
{ {
if (context == null) if (context == null)
{ {

View File

@ -1,70 +0,0 @@
using Common;
using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.Http;
using Microsoft.Extensions.Logging;
using NLog;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text.RegularExpressions;
using System.Threading.Tasks;
namespace ZR.Admin.WebApi.Middleware
{
public class RequestIPMiddleware
{
private readonly RequestDelegate _next;
static readonly Logger Logger = LogManager.GetCurrentClassLogger();//声明NLog变量
public RequestIPMiddleware(RequestDelegate next)
{
_next = next;
}
public async Task Invoke(HttpContext context)
{
var url = context.Request.Path.ToString().ToLower();
string userip = Tools.GetRealIP();
//string agent = HttpContextExtension.GetUserAgent(context);
string[] urls = new string[] { "/css", "/js", "/images", "/lib", "/home/error", "/api" };
var strRegex = "(.jpg|.png|.gif|.php|.cfg|.ico)$"; //用于验证图片扩展名的正则表达式
var re = new Regex(strRegex);
//阻止.php访问往下请求
if (new Regex("(.php)$").IsMatch(url))
{
await context.Response.WriteAsync("hello");
return;
}
//var ip_info = IpTool.Search(userip);
////bool flag = ((IList)urls).Contains(url);
//if (!re.IsMatch(url) )
//{
Logger.Debug($"IP中间件请求访问IP[{userip}]");
//}
//两种方式传递下去 一是invoke 一个直接next
//await _next.Invoke(context);
await _next(context);
}
}
public static class RequestIPMiddlewareExtensions
{
/// <summary>
/// 用于引用请求IP中间件
/// </summary>
/// <param name="builder">扩展类型</param>
/// <returns>IApplicationBuilder</returns>
public static IApplicationBuilder UseRequestIPMiddleware(this IApplicationBuilder builder)
{
return builder.UseMiddleware<RequestIPMiddleware>();
}
}
}

View File

@ -57,7 +57,7 @@
<rules> <rules>
<!-- 除非调试需要,把 .NET Core 程序集的 Debug 输出都屏蔽 Trace -> Debug-> Info ->Warn-> Error-> Critical--> <!-- 除非调试需要,把 .NET Core 程序集的 Debug 输出都屏蔽 Trace -> Debug-> Info ->Warn-> Error-> Critical-->
<!--跳过所有级别的Microsoft组件的日志记录--> <!--跳过所有级别的Microsoft组件的日志记录-->
<!--<logger name="Microsoft.*" writeTo="blackhole" final="true" />--> <logger name="Microsoft.*" writeTo="blackhole" final="true" />
<!-- 除非调试需要,把系统的 Debug 输出都屏蔽 --> <!-- 除非调试需要,把系统的 Debug 输出都屏蔽 -->
<!--<logger name="System.*" writeTo="blackhole" final="true" />--> <!--<logger name="System.*" writeTo="blackhole" final="true" />-->
<!-- Quartz --> <!-- Quartz -->

View File

@ -123,7 +123,7 @@ namespace ZR.Admin.WebApi
//2.再开启授权 //2.再开启授权
app.UseAuthorization(); app.UseAuthorization();
//开启session //开启session
app.UseSession(); //app.UseSession();
//开启缓存 //开启缓存
app.UseResponseCaching(); app.UseResponseCaching();
//恢复/启动任务 //恢复/启动任务

View File

@ -12,6 +12,6 @@
<ItemGroup> <ItemGroup>
<PackageReference Include="JinianNet.JNTemplate" Version="2.2.5" /> <PackageReference Include="JinianNet.JNTemplate" Version="2.2.5" />
<PackageReference Include="SqlSugarCoreNoDrive" Version="5.0.6" /> <PackageReference Include="SqlSugarCoreNoDrive" Version="5.0.6.6" />
</ItemGroup> </ItemGroup>
</Project> </Project>

View File

@ -7,7 +7,7 @@
<ItemGroup> <ItemGroup>
<PackageReference Include="EPPlus" Version="5.8.6" /> <PackageReference Include="EPPlus" Version="5.8.6" />
<PackageReference Include="Newtonsoft.Json" Version="13.0.1" /> <PackageReference Include="Newtonsoft.Json" Version="13.0.1" />
<PackageReference Include="SqlSugarCoreNoDrive" Version="5.0.6" /> <PackageReference Include="SqlSugarCoreNoDrive" Version="5.0.6.6" />
<PackageReference Include="System.ComponentModel.Annotations" Version="5.0.0" /> <PackageReference Include="System.ComponentModel.Annotations" Version="5.0.0" />
</ItemGroup> </ItemGroup>

View File

@ -1,12 +1,9 @@
using Infrastructure.Model; using SqlSugar;
using SqlSugar;
using SqlSugar.IOC; using SqlSugar.IOC;
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.Data; using System.Data;
using System.Linq;
using System.Linq.Expressions; using System.Linq.Expressions;
using System.Reflection;
using ZR.Model; using ZR.Model;
namespace ZR.Repository namespace ZR.Repository
@ -18,18 +15,24 @@ namespace ZR.Repository
public class BaseRepository<T> : SimpleClient<T> where T : class, new() public class BaseRepository<T> : SimpleClient<T> where T : class, new()
{ {
public ITenant itenant = null;//多租户事务 public ITenant itenant = null;//多租户事务
public BaseRepository(ISqlSugarClient client = null) : base(client) public BaseRepository(ISqlSugarClient context = null) : base(context)
{ {
//通过特性拿到ConfigId //通过特性拿到ConfigId
var configId = typeof(T).GetCustomAttribute<TenantAttribute>()?.configId; //var configId = typeof(T).GetCustomAttribute<TenantAttribute>()?.configId;
if (configId != null) //if (configId != null)
{ //{
Context = DbScoped.SugarScope.GetConnection(configId); // itenant = DbScoped.SugarScope;//设置租户接口
// Context = DbScoped.SugarScope.GetConnection(configId);
//}
//else
//{
// Context = context ?? DbScoped.SugarScope.GetConnection(1);//根据类传入的ConfigId自动选择
//}
Context = DbScoped.SugarScope.GetConnectionWithAttr<T>();
itenant = DbScoped.SugarScope;//设置租户接口 itenant = DbScoped.SugarScope;//设置租户接口
} if (Context == null)
else
{ {
Context = client ?? DbScoped.SugarScope.GetConnection(1);//根据类传入的ConfigId自动选择 Context = DbScoped.SugarScope.GetConnection(1);//根据类传入的ConfigId自动选择
} }
} }

View File

@ -13,7 +13,7 @@
<PackageReference Include="MySql.Data" Version="8.0.25" /> <PackageReference Include="MySql.Data" Version="8.0.25" />
<PackageReference Include="NETCore.Encrypt" Version="2.1.0" /> <PackageReference Include="NETCore.Encrypt" Version="2.1.0" />
<PackageReference Include="SqlSugar.IOC" Version="1.8.0" /> <PackageReference Include="SqlSugar.IOC" Version="1.8.0" />
<PackageReference Include="SqlSugarCoreNoDrive" Version="5.0.6" /> <PackageReference Include="SqlSugarCoreNoDrive" Version="5.0.6.6" />
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>

View File

@ -23,11 +23,11 @@ namespace ZR.Service.System
public class SysFileService : BaseService<SysFile>, ISysFileService public class SysFileService : BaseService<SysFile>, ISysFileService
{ {
private string domainUrl = AppSettings.GetConfig("ALIYUN_OSS:domainUrl"); private string domainUrl = AppSettings.GetConfig("ALIYUN_OSS:domainUrl");
private readonly SysFileRepository SysFileRepository; private readonly ISysConfigService SysConfigService;
private OptionsSetting OptionsSetting; private OptionsSetting OptionsSetting;
public SysFileService(SysFileRepository repository, IOptions<OptionsSetting> options) public SysFileService(ISysConfigService sysConfigService, IOptions<OptionsSetting> options)
{ {
SysFileRepository = repository; SysConfigService = sysConfigService;
OptionsSetting = options.Value; OptionsSetting = options.Value;
} }
@ -53,7 +53,8 @@ namespace ZR.Service.System
{ {
await formFile.CopyToAsync(stream);//await 不能少 await formFile.CopyToAsync(stream);//await 不能少
} }
string accessPath = string.Concat(OptionsSetting.Upload.UploadUrl, "/", filePath.Replace("\\", "/"), "/", fileName); string uploadUrl = SysConfigService.GetSysConfigByKey("sys.file.uploadUrl")?.ConfigValue ?? OptionsSetting.Upload.UploadUrl;
string accessPath = string.Concat(uploadUrl, "/", filePath.Replace("\\", "/"), "/", fileName);
SysFile file = new(formFile.FileName, fileName, fileExt, fileSize + "kb", filePath, userName) SysFile file = new(formFile.FileName, fileName, fileExt, fileSize + "kb", filePath, userName)
{ {
StoreType = (int)Infrastructure.Enums.StoreType.LOCAL, StoreType = (int)Infrastructure.Enums.StoreType.LOCAL,

View File

@ -203,18 +203,18 @@ export default {
dictValue: '1', dictValue: '1',
dictLabel: '全部' dictLabel: '全部'
}, },
// { {
// dictValue: "2", dictValue: "2",
// dictLabel: "", dictLabel: "自定义",
// }, },
{ {
dictValue: '3', dictValue: '3',
dictLabel: '本部门' dictLabel: '本部门'
}, },
// { {
// dictValue: "4", dictValue: "4",
// dictLabel: "", dictLabel: "本部门及以下数据权限",
// }, },
{ {
dictValue: '5', dictValue: '5',
dictLabel: '仅本人' dictLabel: '仅本人'

View File

@ -679,6 +679,7 @@ insert into sys_config values(1, '主框架页-默认皮肤样式名称', 's
insert into sys_config values(2, '用户管理-账号初始密码', 'sys.user.initPassword', '123456', 'Y', 'admin', sysdate(), '', null, '初始化密码 123456' ); insert into sys_config values(2, '用户管理-账号初始密码', 'sys.user.initPassword', '123456', 'Y', 'admin', sysdate(), '', null, '初始化密码 123456' );
insert into sys_config values(3, '主框架页-侧边栏主题', 'sys.index.sideTheme', 'theme-dark', 'Y', 'admin', sysdate(), '', null, '深色主题theme-dark浅色主题theme-light' ); insert into sys_config values(3, '主框架页-侧边栏主题', 'sys.index.sideTheme', 'theme-dark', 'Y', 'admin', sysdate(), '', null, '深色主题theme-dark浅色主题theme-light' );
insert into sys_config values(4, '账号自助-验证码开关', 'sys.account.captchaOnOff', 'true', 'Y', 'admin', sysdate(), '', null, '是否开启验证码功能off、关闭1、动态验证码 2、动态gif泡泡 3、泡泡 4、静态验证码'); insert into sys_config values(4, '账号自助-验证码开关', 'sys.account.captchaOnOff', 'true', 'Y', 'admin', sysdate(), '', null, '是否开启验证码功能off、关闭1、动态验证码 2、动态gif泡泡 3、泡泡 4、静态验证码');
INSERT INTO `sys_config`(`configId`, `configName`, `configKey`, `configValue`, `configType`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES (5, '本地文件上传访问域名', 'sys.file.uploadurl', 'http://localhost:8888', 'Y', '', '2022-04-10 10:11:27', '', NULL, NULL);
-- ---------------------------- -- ----------------------------
-- 18、代码生成业务表 -- 18、代码生成业务表

View File

@ -697,6 +697,8 @@ insert into sys_config values('主框架页-默认皮肤样式名称', 'sys.
insert into sys_config values('用户管理-账号初始密码', 'sys.user.initPassword', '123456', 'Y', 'admin', GETDATE(), '', null, '初始化密码 123456' ); insert into sys_config values('用户管理-账号初始密码', 'sys.user.initPassword', '123456', 'Y', 'admin', GETDATE(), '', null, '初始化密码 123456' );
insert into sys_config values('主框架页-侧边栏主题', 'sys.index.sideTheme', 'theme-dark', 'Y', 'admin', GETDATE(), '', null, '深色主题theme-dark浅色主题theme-light' ); insert into sys_config values('主框架页-侧边栏主题', 'sys.index.sideTheme', 'theme-dark', 'Y', 'admin', GETDATE(), '', null, '深色主题theme-dark浅色主题theme-light' );
insert into sys_config values('账号自助-验证码开关', 'sys.account.captchaOnOff', '1', 'Y', 'admin', GETDATE(), '', null, '开启验证码功能off、关闭1、动态验证码 2、动态gif泡泡 3、泡泡 4、静态验证码'); insert into sys_config values('账号自助-验证码开关', 'sys.account.captchaOnOff', '1', 'Y', 'admin', GETDATE(), '', null, '开启验证码功能off、关闭1、动态验证码 2、动态gif泡泡 3、泡泡 4、静态验证码');
INSERT INTO sys_config VALUES('本地文件上传访问域名', 'sys.file.uploadurl', 'http://localhost:8888', 'Y', 'admin', GETDATE(), '', NULL, NULL);
GO GO
-- ---------------------------- -- ----------------------------

Binary file not shown.

Before

Width:  |  Height:  |  Size: 118 KiB

After

Width:  |  Height:  |  Size: 124 KiB

BIN
document/images/12.jpeg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 70 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 66 KiB

BIN
document/images/17.jpeg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 97 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 614 KiB

BIN
document/images/19.jpeg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 76 KiB

BIN
document/images/20.jpeg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 93 KiB

BIN
document/images/21.jpeg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 100 KiB