diff --git a/Api/Ewide.Core/Const/CommonConst.cs b/Api/Ewide.Core/Const/CommonConst.cs
index 46315f3..418ad6e 100644
--- a/Api/Ewide.Core/Const/CommonConst.cs
+++ b/Api/Ewide.Core/Const/CommonConst.cs
@@ -31,5 +31,9 @@
/// 验证码缓存
///
public const string CACHE_KEY_CODE = "vercode_";
+ ///
+ /// 区域缓存
+ ///
+ public const string CACHE_AREA_NUMBER = "areaNumber";
}
}
diff --git a/Api/Ewide.Core/Controller/AreaNumberController.cs b/Api/Ewide.Core/Controller/AreaNumberController.cs
new file mode 100644
index 0000000..048f5f6
--- /dev/null
+++ b/Api/Ewide.Core/Controller/AreaNumberController.cs
@@ -0,0 +1,76 @@
+using Ewide.Core.Service.Area;
+using Ewide.Core.Service.Area.Dto;
+using Furion.DynamicApiController;
+using Mapster;
+using Microsoft.AspNetCore.Mvc;
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace Ewide.Core.Controller
+{
+ ///
+ /// 区域代码相关服务
+ ///
+ [ApiDescriptionSettings(Name = "AreaNumber", Order = 160)]
+ public class AreaNumberController : IDynamicApiController
+ {
+ private readonly IAreaNumberService _areaNumberService;
+
+ public AreaNumberController(IAreaNumberService areaNumberService)
+ {
+ _areaNumberService = areaNumberService;
+ }
+ ///
+ ///
+ ///
+ ///
+ ///
+ [HttpGet("/area/{code}")]
+ public async Task GetAreaNumber([FromRoute]string code)
+ {
+ return (await _areaNumberService.GetAreaNumber(code)).Adapt();
+ }
+ ///
+ /// 添加区域信息
+ ///
+ ///
+ ///
+ [HttpPost("/area/add")]
+ public async Task AddAreaNumber(AreaNumberInput input)
+ {
+ await _areaNumberService.AddAreaNumber(input);
+ }
+ ///
+ /// 更新区域信息
+ ///
+ ///
+ ///
+ [HttpPost("/area/edit")]
+ public async Task UpdateAreaNumber(AreaNumberInput input)
+ {
+ await _areaNumberService.UpdateAreaNumber(input);
+ }
+ ///
+ /// 删除区域
+ ///
+ ///
+ ///
+ [HttpPost("/area/delete")]
+ public async Task DeleteAreaNumber(DeleteAreaNumberInput input)
+ {
+ await _areaNumberService.DeleteAreaNumber(input);
+ }
+ ///
+ /// 获取目录树
+ ///
+ ///
+ [HttpGet("/area/tree")]
+ public async Task> GetAreaNumberTree()
+ {
+ return await _areaNumberService.GetAreaNumberTree();
+ }
+ }
+}
diff --git a/Api/Ewide.Core/Entity/AreaNumber.cs b/Api/Ewide.Core/Entity/AreaNumber.cs
index 46cd35e..7ca0293 100644
--- a/Api/Ewide.Core/Entity/AreaNumber.cs
+++ b/Api/Ewide.Core/Entity/AreaNumber.cs
@@ -34,13 +34,12 @@ namespace Ewide.Core.Entity
[Required]
public int LevelType { get; set; }
- [Comment("父级区域代码")]
- [MaxLength(10)]
- public string ParentCode { get; set; }
-
[Comment("排序")]
public int Sort { get; set; }
-
+ ///
+ /// 父节点就是去掉后面两位
+ ///
+ public string ParentCode => LevelType>1?Code[0..(Code.Length-2)]:string.Empty;
///
/// 多个区域有多个用户绑定自定义数据
///
diff --git a/Api/Ewide.Core/Ewide.Core.csproj b/Api/Ewide.Core/Ewide.Core.csproj
index 9518416..b69361a 100644
--- a/Api/Ewide.Core/Ewide.Core.csproj
+++ b/Api/Ewide.Core/Ewide.Core.csproj
@@ -28,6 +28,7 @@
+
@@ -41,6 +42,9 @@
+
+ PreserveNewest
+
PreserveNewest
diff --git a/Api/Ewide.Core/Ewide.Core.xml b/Api/Ewide.Core/Ewide.Core.xml
index 1970e58..c55c698 100644
--- a/Api/Ewide.Core/Ewide.Core.xml
+++ b/Api/Ewide.Core/Ewide.Core.xml
@@ -303,6 +303,55 @@
验证码缓存
+
+
+ 区域缓存
+
+
+
+
+ 区域代码相关服务
+
+
+
+
+
+
+
+
+
+
+
+ 添加区域信息
+
+
+
+
+
+
+ 更新区域信息
+
+
+
+
+
+
+ 删除区域
+
+
+
+
+
+
+ 获取目录树
+
+
+
+
+
+ 父节点就是去掉后面两位
+
+
多个区域有多个用户绑定自定义数据
@@ -2442,6 +2491,19 @@
+
+
+ 通用输入帮助类
+
+
+
+
+ 排序方式(默认降序)
+
+
+ 是否降序
+
+
通用输入扩展参数(带权限)
@@ -2497,6 +2559,21 @@
搜索结束时间
+
+
+ 排序字段
+
+
+
+
+ 排序方法,默认升序,否则降序(配合antd前端,约定参数为 Ascend,Dscend)
+
+
+
+
+ 降序排序(不要问我为什么是descend不是desc,前端约定参数就是这样)
+
+
小诺分页列表结果
@@ -3050,6 +3127,40 @@
+
+
+ 添加一个区域
+
+
+
+
+
+
+ 删除一个区域
+
+
+
+
+
+
+ 根据区域代码获取区域信息
+
+ 区域代码
+
+
+
+
+ 获取区域目录树
+
+
+
+
+
+ 更新区域信息
+
+
+
+
登录授权相关服务
@@ -5473,6 +5584,11 @@
状态(字典 0正常 1停用 2删除)
+
+
+ 机构所在区域
+
+
名称
@@ -5483,6 +5599,11 @@
编码
+
+
+ 机构所在区域
+
+
机构Id
@@ -7058,7 +7179,7 @@
-
+
顶级节点的父节点Id(默认0)
diff --git a/Api/Ewide.Core/Extension/PageInputOrder.cs b/Api/Ewide.Core/Extension/PageInputOrder.cs
new file mode 100644
index 0000000..62c789a
--- /dev/null
+++ b/Api/Ewide.Core/Extension/PageInputOrder.cs
@@ -0,0 +1,33 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace Ewide.Core.Extension
+{
+ ///
+ /// 通用输入帮助类
+ ///
+ public class PageInputOrder
+ {
+ ///
+ /// 排序方式(默认降序)
+ ///
+ ///
+ /// 是否降序
+ ///
+ public static string OrderBuilder(PageInputBase pageInput, bool descSort = true)
+ {
+ // 约定默认每张表都有Id排序
+ var orderStr = descSort ? "Id Desc" : "Id Asc";
+
+ // 排序是否可用-排序字段和排序顺序都为非空才启用排序
+ if (!string.IsNullOrEmpty(pageInput.SortField) && !string.IsNullOrEmpty(pageInput.SortOrder))
+ {
+ orderStr = $"{pageInput.SortField} {(pageInput.SortOrder == pageInput.DescStr ? "Desc" : "Asc")}";
+ }
+ return orderStr;
+ }
+ }
+}
diff --git a/Api/Ewide.Core/Extension/XnInputBase.cs b/Api/Ewide.Core/Extension/XnInputBase.cs
index aea246e..a0ab4ad 100644
--- a/Api/Ewide.Core/Extension/XnInputBase.cs
+++ b/Api/Ewide.Core/Extension/XnInputBase.cs
@@ -56,5 +56,20 @@ namespace Ewide.Core
/// 搜索结束时间
///
public virtual string SearchEndTime { get; set; }
+
+ ///
+ /// 排序字段
+ ///
+ public virtual string SortField { get; set; }
+
+ ///
+ /// 排序方法,默认升序,否则降序(配合antd前端,约定参数为 Ascend,Dscend)
+ ///
+ public virtual string SortOrder { get; set; }
+
+ ///
+ /// 降序排序(不要问我为什么是descend不是desc,前端约定参数就是这样)
+ ///
+ public virtual string DescStr { get; set; } = "descend";
}
}
diff --git a/Api/Ewide.Core/Service/Area/AreaNumberService.cs b/Api/Ewide.Core/Service/Area/AreaNumberService.cs
index 6f8987f..924ca08 100644
--- a/Api/Ewide.Core/Service/Area/AreaNumberService.cs
+++ b/Api/Ewide.Core/Service/Area/AreaNumberService.cs
@@ -3,7 +3,10 @@ using Ewide.Core.Service.Area.Dto;
using Furion.DatabaseAccessor;
using Furion.DatabaseAccessor.Extensions;
using Furion.DependencyInjection;
+using Furion.DynamicApiController;
+using Furion.FriendlyException;
using Mapster;
+using Microsoft.AspNetCore.Mvc;
using Microsoft.EntityFrameworkCore;
using System;
using System.Collections.Generic;
@@ -16,37 +19,103 @@ namespace Ewide.Core.Service.Area
public class AreaNumberService : IAreaNumberService, ITransient
{
private readonly IRepository _areaNumberRep;
+ private readonly IRepository _sysOrgRep;
private readonly ISysCacheService _sysCacheService;
- public AreaNumberService(IRepository areaNumberRep, ISysCacheService sysCacheService)
+ public AreaNumberService(IRepository areaNumberRep, ISysCacheService sysCacheService, IRepository sysOrgRep)
{
_areaNumberRep = areaNumberRep;
_sysCacheService = sysCacheService;
+ _sysOrgRep = sysOrgRep;
}
-
+ ///
+ /// 添加一个区域
+ ///
+ ///
+ ///
public async Task AddAreaNumber(AreaNumberInput input)
{
- await _areaNumberRep.InsertAsync(input.Adapt());
+ CheckInput(input);
+ await _areaNumberRep.InsertNowAsync(input.Adapt());
+ await _sysCacheService.SetAreaNumber(await _areaNumberRep.DetachedEntities.ToListAsync());
}
-
+ ///
+ /// 删除一个区域
+ ///
+ ///
+ ///
public async Task DeleteAreaNumber(DeleteAreaNumberInput input)
{
- var areaNumber= await _areaNumberRep.FirstOrDefaultAsync(p=>p.Code==input.Code);
- await areaNumber.DeleteAsync();
+ var areaNumber = await _areaNumberRep.FirstOrDefaultAsync(p => p.Code == input.Code);
+ if (await _sysOrgRep.DetachedEntities.AnyAsync(o => o.AreaNumberCode == input.Code))
+ {
+ throw Oops.Oh("不能删除已包含区域的组织");
+ }
+ await areaNumber.DeleteNowAsync();
+ await _sysCacheService.SetAreaNumber(await _areaNumberRep.DetachedEntities.ToListAsync());
}
-
+ ///
+ /// 根据区域代码获取区域信息
+ ///
+ /// 区域代码
+ ///
public async Task GetAreaNumber(string code)
{
- return await _areaNumberRep.DetachedEntities.FirstOrDefaultAsync(a => a.Code == code);
+ var cachedAreaNumbers = await _sysCacheService.GetAreaNumber();
+ if (cachedAreaNumbers == null || cachedAreaNumbers.Count < 0)
+ {
+ cachedAreaNumbers = await _areaNumberRep.DetachedEntities.ToListAsync();
+ await _sysCacheService.SetAreaNumber(cachedAreaNumbers);
+ }
+ return cachedAreaNumbers.FirstOrDefault(a => a.Code == code);
+ }
+ ///
+ /// 获取区域目录树
+ ///
+ ///
+ public async Task> GetAreaNumberTree()
+ {
+ var cachedAreaNumbers = await _sysCacheService.GetAreaNumber();
+ if (cachedAreaNumbers == null || cachedAreaNumbers.Count < 0)
+ {
+ cachedAreaNumbers = await _areaNumberRep.DetachedEntities.ToListAsync();
+ await _sysCacheService.SetAreaNumber(cachedAreaNumbers);
+ }
+ return new TreeBuildUtil().DoTreeBuild(cachedAreaNumbers.Select(u => new AreaTreeNode
+ {
+ Code = u.Code,
+ ParentCode = u.ParentCode,
+ Name = u.Name,
+ LevelType = u.LevelType,
+ Note = u.Note
+ }).ToList());
}
public async Task> GetAreaNumberWithChildren(string code)
{
return await _areaNumberRep.DetachedEntities.Where(a => a.Code.StartsWith(code)).ToListAsync();
}
+ ///
+ /// 更新区域信息
+ ///
+ ///
+ ///
public async Task UpdateAreaNumber(AreaNumberInput input)
{
- await _areaNumberRep.UpdateAsync(input.Adapt());
+ CheckInput(input);
+ var area = input.Adapt();
+ await area.UpdateNowAsync();
+ await _sysCacheService.SetAreaNumber(await _areaNumberRep.DetachedEntities.ToListAsync());
+ }
+ private bool CheckInput(AreaNumberInput input)
+ {
+ //检查level和区域长度
+ if (false)
+ {
+ throw Oops.Oh("数据异常");
+ }
+ //检查是否有子节点
+ return true;
}
}
}
diff --git a/Api/Ewide.Core/Service/Area/Dto/AreaNumberInput.cs b/Api/Ewide.Core/Service/Area/Dto/AreaNumberInput.cs
index 8f7fade..48dcf9c 100644
--- a/Api/Ewide.Core/Service/Area/Dto/AreaNumberInput.cs
+++ b/Api/Ewide.Core/Service/Area/Dto/AreaNumberInput.cs
@@ -16,6 +16,14 @@ namespace Ewide.Core.Service.Area.Dto
public string Note { get; set; }
public int Sort { get; set; }
}
+ public class UpdateAreaNumberInput
+ {
+ public string ShowCode { get; set; }
+ public string Name { get; set; }
+ public int LevelType { get; set; }
+ public string Note { get; set; }
+ public int Sort { get; set; }
+ }
public class DeleteAreaNumberInput
{
[Required(ErrorMessage ="区域代码不可为空")]
diff --git a/Api/Ewide.Core/Service/Area/Dto/AreaNumberOutput.cs b/Api/Ewide.Core/Service/Area/Dto/AreaNumberOutput.cs
new file mode 100644
index 0000000..9c59878
--- /dev/null
+++ b/Api/Ewide.Core/Service/Area/Dto/AreaNumberOutput.cs
@@ -0,0 +1,33 @@
+using System;
+using System.Collections;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace Ewide.Core.Service.Area.Dto
+{
+ public class AreaNumberOutput:AreaNumberInput
+ {
+ public string ParentCode { get; set; }
+ }
+ public class AreaTreeNode : AreaNumberOutput, ITreeNode
+ {
+ public List Children { get; set; } = new List();
+
+ public string GetId()
+ {
+ return Code;
+ }
+
+ public string GetPid()
+ {
+ return ParentCode;
+ }
+
+ public void SetChildren(IList children)
+ {
+ Children = (List)children;
+ }
+ }
+}
diff --git a/Api/Ewide.Core/Service/Area/IAreaNumberService.cs b/Api/Ewide.Core/Service/Area/IAreaNumberService.cs
index 2eba160..3f18f46 100644
--- a/Api/Ewide.Core/Service/Area/IAreaNumberService.cs
+++ b/Api/Ewide.Core/Service/Area/IAreaNumberService.cs
@@ -15,5 +15,7 @@ namespace Ewide.Core.Service.Area
Task UpdateAreaNumber(AreaNumberInput input);
Task GetAreaNumber(string code);
Task> GetAreaNumberWithChildren(string code);
+
+ Task> GetAreaNumberTree();
}
}
diff --git a/Api/Ewide.Core/Service/Cache/ISysCacheService.cs b/Api/Ewide.Core/Service/Cache/ISysCacheService.cs
index 0e66aeb..62ac0f0 100644
--- a/Api/Ewide.Core/Service/Cache/ISysCacheService.cs
+++ b/Api/Ewide.Core/Service/Cache/ISysCacheService.cs
@@ -1,4 +1,5 @@
-using System.Collections.Generic;
+using Ewide.Core.Entity;
+using System.Collections.Generic;
using System.Threading.Tasks;
namespace Ewide.Core.Service
@@ -14,6 +15,8 @@ namespace Ewide.Core.Service
Task SetDataScope(string userId, List dataScopes);
Task SetMenu(string userId, string appCode, List menus);
Task SetPermission(string userId, List permissions);
+ Task> GetAreaNumber();
+ Task SetAreaNumber(List areaNumbers);
Task SetAsync(string key, object value);
Task GetAsync(string key);
Task GetAsync(string key);
diff --git a/Api/Ewide.Core/Service/Cache/SysCacheService.cs b/Api/Ewide.Core/Service/Cache/SysCacheService.cs
index 203dcc0..89e3d8a 100644
--- a/Api/Ewide.Core/Service/Cache/SysCacheService.cs
+++ b/Api/Ewide.Core/Service/Cache/SysCacheService.cs
@@ -1,4 +1,5 @@
-using Furion.DependencyInjection;
+using Ewide.Core.Entity;
+using Furion.DependencyInjection;
using Furion.DynamicApiController;
using Microsoft.AspNetCore.Mvc;
using Microsoft.Extensions.Options;
@@ -165,5 +166,14 @@ namespace Ewide.Core.Service
{
return _cache.GetAsync(key);
}
+ public Task> GetAreaNumber()
+ {
+ return _cache.GetAsync>(CommonConst.CACHE_AREA_NUMBER);
+ }
+
+ public async Task SetAreaNumber(List areaNumbers)
+ {
+ await _cache.SetAsync(CommonConst.CACHE_AREA_NUMBER,areaNumbers);
+ }
}
}
diff --git a/Api/Ewide.Core/Service/Log/SysOpLogService.cs b/Api/Ewide.Core/Service/Log/SysOpLogService.cs
index fdf304e..0170b6c 100644
--- a/Api/Ewide.Core/Service/Log/SysOpLogService.cs
+++ b/Api/Ewide.Core/Service/Log/SysOpLogService.cs
@@ -1,4 +1,5 @@
-using Furion.DatabaseAccessor;
+using Ewide.Core.Extension;
+using Furion.DatabaseAccessor;
using Furion.DatabaseAccessor.Extensions;
using Furion.DependencyInjection;
using Furion.DynamicApiController;
@@ -7,6 +8,7 @@ using Microsoft.AspNetCore.Mvc;
using Microsoft.EntityFrameworkCore;
using System;
using System.Linq;
+using System.Linq.Dynamic.Core;
using System.Threading.Tasks;
namespace Ewide.Core.Service
@@ -41,7 +43,7 @@ namespace Ewide.Core.Service
.Where(success, u => u.Success == input.Success.Value)
.Where(searchBeginTime, u => u.OpTime >= DateTime.Parse(input.SearchBeginTime.Trim()) &&
u.OpTime <= DateTime.Parse(input.SearchEndTime.Trim()))
- .OrderByDescending(u => u.Id)
+ .OrderBy(PageInputOrder.OrderBuilder(input)) // 封装了任意字段排序示例
.Select(u => u.Adapt())
.ToPagedListAsync(input.PageNo, input.PageSize);
return XnPageResult.PageResult(opLogs);
diff --git a/Api/Ewide.Core/Service/Org/Dto/OrgInput.cs b/Api/Ewide.Core/Service/Org/Dto/OrgInput.cs
index a337516..4c48b7f 100644
--- a/Api/Ewide.Core/Service/Org/Dto/OrgInput.cs
+++ b/Api/Ewide.Core/Service/Org/Dto/OrgInput.cs
@@ -46,6 +46,10 @@ namespace Ewide.Core.Service
/// 状态(字典 0正常 1停用 2删除)
///
public int Status { get; set; }
+ ///
+ /// 机构所在区域
+ ///
+ public virtual string AreaNumberCode { get; set; }
}
public class AddOrgInput : OrgInput
@@ -61,6 +65,11 @@ namespace Ewide.Core.Service
///
[Required(ErrorMessage = "机构编码不能为空")]
public override string Code { get; set; }
+ ///
+ /// 机构所在区域
+ ///
+ [Required(ErrorMessage = "机构所在区域不能为空")]
+ public override string AreaNumberCode { get; set; }
}
public class DeleteOrgInput
diff --git a/Api/Ewide.Core/Service/Role/Dto/RoleInput.cs b/Api/Ewide.Core/Service/Role/Dto/RoleInput.cs
index b15ac48..0a0e7c5 100644
--- a/Api/Ewide.Core/Service/Role/Dto/RoleInput.cs
+++ b/Api/Ewide.Core/Service/Role/Dto/RoleInput.cs
@@ -83,5 +83,9 @@ namespace Ewide.Core.Service
public class GrantRoleDataInput : GrantRoleMenuInput
{
+ }
+ public class GrantAreaDataInput : GrantRoleMenuInput
+ {
+
}
}
diff --git a/Api/Ewide.Core/Service/Role/ISysRoleAreaService.cs b/Api/Ewide.Core/Service/Role/ISysRoleAreaService.cs
index 7dadd5c..462eb2a 100644
--- a/Api/Ewide.Core/Service/Role/ISysRoleAreaService.cs
+++ b/Api/Ewide.Core/Service/Role/ISysRoleAreaService.cs
@@ -11,6 +11,6 @@ namespace Ewide.Core.Service.Role
Task DeleteRoleAreaListByAreaCodeList(List areaCodeList);
Task DeleteRoleAreaListByRoleId(string roleId);
Task> GetRoleAreaCodeList(List roleIdList);
- Task GrantArea(UpdateRoleInput input);
+ Task GrantArea(GrantAreaDataInput input);
}
}
diff --git a/Api/Ewide.Core/Service/Role/SysRoleAreaService.cs b/Api/Ewide.Core/Service/Role/SysRoleAreaService.cs
index 6effa1a..a452eac 100644
--- a/Api/Ewide.Core/Service/Role/SysRoleAreaService.cs
+++ b/Api/Ewide.Core/Service/Role/SysRoleAreaService.cs
@@ -45,7 +45,7 @@ namespace Ewide.Core.Service.Role
}
- public async Task GrantArea(UpdateRoleInput input)
+ public async Task GrantArea(GrantAreaDataInput input)
{
var dataScopes = await _sysRoleAreaRep.Where(u => u.SysRoleId == input.Id).ToListAsync();
dataScopes.ForEach(u =>
diff --git a/Api/Ewide.Core/Service/Role/SysRoleDataScopeService.cs b/Api/Ewide.Core/Service/Role/SysRoleDataScopeService.cs
index 70d101d..8f56f61 100644
--- a/Api/Ewide.Core/Service/Role/SysRoleDataScopeService.cs
+++ b/Api/Ewide.Core/Service/Role/SysRoleDataScopeService.cs
@@ -1,6 +1,8 @@
-using Furion.DatabaseAccessor;
+using Ewide.Core.Service.Role;
+using Furion.DatabaseAccessor;
using Furion.DatabaseAccessor.Extensions;
using Furion.DependencyInjection;
+using Mapster;
using Microsoft.EntityFrameworkCore;
using System.Collections.Generic;
using System.Linq;
@@ -14,10 +16,11 @@ namespace Ewide.Core.Service
public class SysRoleDataScopeService : ISysRoleDataScopeService, ITransient
{
private readonly IRepository _sysRoleDataScopeRep; // 角色数据范围表仓储
-
- public SysRoleDataScopeService(IRepository sysRoleDataScopeRep)
+ private readonly ISysRoleAreaService _sysRoleAreaService;
+ public SysRoleDataScopeService(IRepository sysRoleDataScopeRep, ISysRoleAreaService sysRoleAreaService)
{
_sysRoleDataScopeRep = sysRoleDataScopeRep;
+ _sysRoleAreaService = sysRoleAreaService;
}
///
@@ -28,6 +31,11 @@ namespace Ewide.Core.Service
[UnitOfWork]
public async Task GrantDataScope(GrantRoleDataInput input)
{
+ if (new[] { (int)DataScopeType.AREA, (int)DataScopeType.AREA_WITH_CHILD }.Contains(input.DataScopeType))
+ {
+ await _sysRoleAreaService.GrantArea(input.Adapt());
+ return;
+ }
var dataScopes = await _sysRoleDataScopeRep.DetachedEntities.Where(u => u.SysRoleId == input.Id).ToListAsync();
dataScopes.ForEach(u =>
{
diff --git a/Api/Ewide.Core/Service/User/SysUserDataScopeService.cs b/Api/Ewide.Core/Service/User/SysUserDataScopeService.cs
index 06f1fb9..72ed189 100644
--- a/Api/Ewide.Core/Service/User/SysUserDataScopeService.cs
+++ b/Api/Ewide.Core/Service/User/SysUserDataScopeService.cs
@@ -46,6 +46,22 @@ namespace Ewide.Core.Service
SysOrgId = u
}.Insert();
});
+ var areas = await _sysUserAreaRep.Where(u => u.SysUserId == input.Id).ToListAsync();
+ areas.ForEach(u =>
+ {
+ u.Delete();
+ });
+
+ input.GrantAreaCodeList.ForEach(u =>
+ {
+ new SysUserArea
+ {
+ SysUserId = input.Id,
+ AreaNumberCode = u
+ }.Insert();
+ });
+
+
}
///
diff --git a/Api/Ewide.Core/Util/TreeBuildUtil.cs b/Api/Ewide.Core/Util/TreeBuildUtil.cs
index aefd91c..d68ab46 100644
--- a/Api/Ewide.Core/Util/TreeBuildUtil.cs
+++ b/Api/Ewide.Core/Util/TreeBuildUtil.cs
@@ -1,4 +1,5 @@
-using System.Collections;
+using System;
+using System.Collections;
using System.Collections.Generic;
namespace Ewide.Core
@@ -36,7 +37,7 @@ namespace Ewide.Core
///
/// 顶级节点的父节点Id(默认0)
///
- private readonly string _rootParentId = System.Guid.Empty.ToString().ToLower();
+ private readonly List _rootParentIds = new List {string.Empty,Guid.Empty.ToString() };
///
/// 构造树节点
@@ -50,7 +51,7 @@ namespace Ewide.Core
var results = new List();
nodes.ForEach(u =>
{
- if (_rootParentId == u.GetPid())
+ if (_rootParentIds.Contains(u.GetPid()))
results.Add(u);
});
return results;
diff --git a/Api/Ewide.Database.Migrations/Migrations/20210427093101_removeAreaNumberParent.Designer.cs b/Api/Ewide.Database.Migrations/Migrations/20210427093101_removeAreaNumberParent.Designer.cs
new file mode 100644
index 0000000..56bb248
--- /dev/null
+++ b/Api/Ewide.Database.Migrations/Migrations/20210427093101_removeAreaNumberParent.Designer.cs
@@ -0,0 +1,6986 @@
+//
+using System;
+using Ewide.EntityFramework.Core;
+using Microsoft.EntityFrameworkCore;
+using Microsoft.EntityFrameworkCore.Infrastructure;
+using Microsoft.EntityFrameworkCore.Migrations;
+using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
+
+namespace Ewide.Database.Migrations.Migrations
+{
+ [DbContext(typeof(DefaultDbContext))]
+ [Migration("20210427093101_removeAreaNumberParent")]
+ partial class removeAreaNumberParent
+ {
+ protected override void BuildTargetModel(ModelBuilder modelBuilder)
+ {
+#pragma warning disable 612, 618
+ modelBuilder
+ .HasAnnotation("Relational:MaxIdentifierLength", 64)
+ .HasAnnotation("ProductVersion", "5.0.5");
+
+ modelBuilder.Entity("Ewide.Application.CodeGenTest", b =>
+ {
+ b.Property("Id")
+ .HasColumnType("varchar(36)")
+ .HasColumnName("Id")
+ .HasComment("Id主键");
+
+ b.Property("Age")
+ .HasColumnType("int")
+ .HasComment("年龄");
+
+ b.Property("Birthday")
+ .HasColumnType("datetime")
+ .HasComment("生日");
+
+ b.Property("CreatedTime")
+ .HasColumnType("datetime")
+ .HasComment("创建时间");
+
+ b.Property("CreatedUserId")
+ .HasColumnType("varchar(36)")
+ .HasColumnName("CreatedUserId")
+ .HasComment("创建者Id");
+
+ b.Property("CreatedUserName")
+ .HasMaxLength(20)
+ .HasColumnType("varchar(20) CHARACTER SET utf8mb4")
+ .HasComment("创建者名称");
+
+ b.Property("IsDeleted")
+ .HasColumnType("bit")
+ .HasColumnName("IsDeleted")
+ .HasComment("软删除标记");
+
+ b.Property("Name")
+ .HasColumnType("longtext CHARACTER SET utf8mb4")
+ .HasComment("名称");
+
+ b.Property("NickName")
+ .HasColumnType("longtext CHARACTER SET utf8mb4")
+ .HasComment("昵称");
+
+ b.Property("UpdatedTime")
+ .HasColumnType("datetime")
+ .HasComment("更新时间");
+
+ b.Property("UpdatedUserId")
+ .HasColumnType("varchar(36)")
+ .HasColumnName("UpdatedUserId")
+ .HasComment("修改者Id");
+
+ b.Property("UpdatedUserName")
+ .HasMaxLength(20)
+ .HasColumnType("varchar(20) CHARACTER SET utf8mb4")
+ .HasComment("修改者名称");
+
+ b.HasKey("Id");
+
+ b.ToTable("code_gen_test");
+
+ b
+ .HasComment("代码生成业务");
+ });
+
+ modelBuilder.Entity("Ewide.Core.Entity.AreaNumber", b =>
+ {
+ b.Property("Code")
+ .HasMaxLength(10)
+ .HasColumnType("varchar(10) CHARACTER SET utf8mb4")
+ .HasComment("系统使用的区域代码");
+
+ b.Property("LevelType")
+ .HasColumnType("int")
+ .HasComment("类别");
+
+ b.Property("Name")
+ .IsRequired()
+ .HasMaxLength(10)
+ .HasColumnType("varchar(10) CHARACTER SET utf8mb4")
+ .HasComment("名称");
+
+ b.Property("Note")
+ .HasColumnType("longtext CHARACTER SET utf8mb4")
+ .HasComment("备注");
+
+ b.Property("ShowCode")
+ .HasMaxLength(10)
+ .HasColumnType("varchar(10) CHARACTER SET utf8mb4")
+ .HasComment("对外使用的区域代码");
+
+ b.Property("Sort")
+ .HasColumnType("int")
+ .HasComment("排序");
+
+ b.HasKey("Code");
+
+ b.ToTable("ewide_area_number");
+
+ b
+ .HasComment("区域表");
+ });
+
+ modelBuilder.Entity("Ewide.Core.Entity.SysRoleArea", b =>
+ {
+ b.Property("SysRoleId")
+ .HasColumnType("varchar(36)")
+ .HasColumnName("SysRoleId")
+ .HasComment("角色Id");
+
+ b.Property("AreaNumberCode")
+ .HasMaxLength(10)
+ .HasColumnType("varchar(10) CHARACTER SET utf8mb4")
+ .HasComment("系统使用的区域代码");
+
+ b.HasKey("SysRoleId", "AreaNumberCode");
+
+ b.HasIndex("AreaNumberCode");
+
+ b.ToTable("sys_role_area");
+
+ b
+ .HasComment("角色区域自定义数据");
+ });
+
+ modelBuilder.Entity("Ewide.Core.Entity.SysUserArea", b =>
+ {
+ b.Property("SysUserId")
+ .HasColumnType("varchar(36)")
+ .HasColumnName("SysUserId")
+ .HasComment("用户Id");
+
+ b.Property("AreaNumberCode")
+ .HasMaxLength(10)
+ .HasColumnType("varchar(10) CHARACTER SET utf8mb4")
+ .HasComment("系统使用的区域代码");
+
+ b.HasKey("SysUserId", "AreaNumberCode");
+
+ b.HasIndex("AreaNumberCode");
+
+ b.ToTable("sys_user_area");
+
+ b
+ .HasComment("用户授权区域信息");
+ });
+
+ modelBuilder.Entity("Ewide.Core.SysApp", b =>
+ {
+ b.Property("Id")
+ .HasColumnType("varchar(36)")
+ .HasColumnName("Id")
+ .HasComment("Id主键");
+
+ b.Property("Active")
+ .HasColumnType("bit")
+ .HasColumnName("Active")
+ .HasComment("是否默认激活");
+
+ b.Property("Code")
+ .HasColumnType("longtext CHARACTER SET utf8mb4")
+ .HasComment("编码");
+
+ b.Property("Color")
+ .HasColumnType("longtext CHARACTER SET utf8mb4")
+ .HasComment("图标颜色");
+
+ b.Property("CreatedTime")
+ .HasColumnType("datetime")
+ .HasComment("创建时间");
+
+ b.Property("CreatedUserId")
+ .HasColumnType("varchar(36)")
+ .HasColumnName("CreatedUserId")
+ .HasComment("创建者Id");
+
+ b.Property("CreatedUserName")
+ .HasMaxLength(20)
+ .HasColumnType("varchar(20) CHARACTER SET utf8mb4")
+ .HasComment("创建者名称");
+
+ b.Property("Icon")
+ .HasColumnType("longtext CHARACTER SET utf8mb4")
+ .HasComment("图标");
+
+ b.Property("IsDeleted")
+ .HasColumnType("bit")
+ .HasColumnName("IsDeleted")
+ .HasComment("软删除标记");
+
+ b.Property("Name")
+ .HasColumnType("longtext CHARACTER SET utf8mb4")
+ .HasComment("名称");
+
+ b.Property("Sort")
+ .HasColumnType("int")
+ .HasComment("排序");
+
+ b.Property("Status")
+ .HasColumnType("int")
+ .HasComment("状态");
+
+ b.Property("UpdatedTime")
+ .HasColumnType("datetime")
+ .HasComment("更新时间");
+
+ b.Property("UpdatedUserId")
+ .HasColumnType("varchar(36)")
+ .HasColumnName("UpdatedUserId")
+ .HasComment("修改者Id");
+
+ b.Property("UpdatedUserName")
+ .HasMaxLength(20)
+ .HasColumnType("varchar(20) CHARACTER SET utf8mb4")
+ .HasComment("修改者名称");
+
+ b.HasKey("Id");
+
+ b.ToTable("sys_app");
+
+ b
+ .HasComment("系统应用表");
+
+ b.HasData(
+ new
+ {
+ Id = "8b2aeb5e-09a6-4afd-bcae-8ee8e5a1e6ec",
+ Active = 0ul,
+ Code = "busapp",
+ IsDeleted = 0ul,
+ Name = "业务应用",
+ Sort = 100,
+ Status = 0
+ },
+ new
+ {
+ Id = "d781b8f1-0d08-48c8-b7a5-ed75ddfa676c",
+ Active = 1ul,
+ Code = "system",
+ IsDeleted = 0ul,
+ Name = "系统管理",
+ Sort = 100,
+ Status = 0
+ },
+ new
+ {
+ Id = "850ab86f-cd6a-4d49-b920-77dfa5d78813",
+ Active = 0ul,
+ Code = "system_tool",
+ IsDeleted = 0ul,
+ Name = "系统工具",
+ Sort = 100,
+ Status = 0
+ },
+ new
+ {
+ Id = "05a32be5-82e8-423f-affa-e17232a63ee1",
+ Active = 0ul,
+ Code = "advanced",
+ IsDeleted = 0ul,
+ Name = "高级功能",
+ Sort = 100,
+ Status = 0
+ });
+ });
+
+ modelBuilder.Entity("Ewide.Core.SysCodeGen", b =>
+ {
+ b.Property("Id")
+ .HasColumnType("varchar(36)")
+ .HasColumnName("Id")
+ .HasComment("Id主键");
+
+ b.Property("AuthorName")
+ .HasColumnType("longtext CHARACTER SET utf8mb4")
+ .HasComment("作者姓名");
+
+ b.Property("BusName")
+ .HasColumnType("longtext CHARACTER SET utf8mb4")
+ .HasComment("业务名");
+
+ b.Property("CreatedTime")
+ .HasColumnType("datetime")
+ .HasComment("创建时间");
+
+ b.Property("CreatedUserId")
+ .HasColumnType("varchar(36)")
+ .HasColumnName("CreatedUserId")
+ .HasComment("创建者Id");
+
+ b.Property("CreatedUserName")
+ .HasMaxLength(20)
+ .HasColumnType("varchar(20) CHARACTER SET utf8mb4")
+ .HasComment("创建者名称");
+
+ b.Property("GenerateType")
+ .HasColumnType("longtext CHARACTER SET utf8mb4")
+ .HasComment("生成方式");
+
+ b.Property("IsDeleted")
+ .HasColumnType("bit")
+ .HasColumnName("IsDeleted")
+ .HasComment("软删除标记");
+
+ b.Property("NameSpace")
+ .HasColumnType("longtext CHARACTER SET utf8mb4")
+ .HasComment("命名空间");
+
+ b.Property("TableName")
+ .HasColumnType("longtext CHARACTER SET utf8mb4")
+ .HasComment("数据库表名");
+
+ b.Property("TablePrefix")
+ .HasColumnType("longtext CHARACTER SET utf8mb4")
+ .HasComment("是否移除表前缀");
+
+ b.Property("UpdatedTime")
+ .HasColumnType("datetime")
+ .HasComment("更新时间");
+
+ b.Property("UpdatedUserId")
+ .HasColumnType("varchar(36)")
+ .HasColumnName("UpdatedUserId")
+ .HasComment("修改者Id");
+
+ b.Property("UpdatedUserName")
+ .HasMaxLength(20)
+ .HasColumnType("varchar(20) CHARACTER SET utf8mb4")
+ .HasComment("修改者名称");
+
+ b.HasKey("Id");
+
+ b.ToTable("sys_code_gen");
+
+ b
+ .HasComment("代码生成表");
+ });
+
+ modelBuilder.Entity("Ewide.Core.SysCodeGenConfig", b =>
+ {
+ b.Property("Id")
+ .HasColumnType("varchar(36)")
+ .HasColumnName("Id")
+ .HasComment("Id主键");
+
+ b.Property("CodeGenId")
+ .HasColumnType("varchar(36)")
+ .HasColumnName("CodeGenId")
+ .HasComment("代码生成主表ID");
+
+ b.Property("ColumnComment")
+ .HasColumnType("longtext CHARACTER SET utf8mb4")
+ .HasComment("字段描述");
+
+ b.Property("ColumnKey")
+ .HasColumnType("longtext CHARACTER SET utf8mb4")
+ .HasComment("主外键");
+
+ b.Property("ColumnName")
+ .HasColumnType("longtext CHARACTER SET utf8mb4")
+ .HasComment("数据库字段名");
+
+ b.Property("CreatedTime")
+ .HasColumnType("datetime")
+ .HasComment("创建时间");
+
+ b.Property("CreatedUserId")
+ .HasColumnType("varchar(36)")
+ .HasColumnName("CreatedUserId")
+ .HasComment("创建者Id");
+
+ b.Property("CreatedUserName")
+ .HasMaxLength(20)
+ .HasColumnType("varchar(20) CHARACTER SET utf8mb4")
+ .HasComment("创建者名称");
+
+ b.Property("DataType")
+ .HasColumnType("longtext CHARACTER SET utf8mb4")
+ .HasComment("数据库中类型");
+
+ b.Property("DictTypeCode")
+ .HasColumnType("longtext CHARACTER SET utf8mb4")
+ .HasComment("字典Code");
+
+ b.Property("EffectType")
+ .HasColumnType("longtext CHARACTER SET utf8mb4")
+ .HasComment("作用类型");
+
+ b.Property("IsDeleted")
+ .HasColumnType("bit")
+ .HasColumnName("IsDeleted")
+ .HasComment("软删除标记");
+
+ b.Property("NetType")
+ .HasColumnType("longtext CHARACTER SET utf8mb4")
+ .HasComment(".NET数据类型");
+
+ b.Property("QueryType")
+ .HasColumnType("longtext CHARACTER SET utf8mb4")
+ .HasComment("查询方式");
+
+ b.Property("QueryWhether")
+ .HasColumnType("longtext CHARACTER SET utf8mb4")
+ .HasComment("是否是查询条件");
+
+ b.Property("UpdatedTime")
+ .HasColumnType("datetime")
+ .HasComment("更新时间");
+
+ b.Property("UpdatedUserId")
+ .HasColumnType("varchar(36)")
+ .HasColumnName("UpdatedUserId")
+ .HasComment("修改者Id");
+
+ b.Property("UpdatedUserName")
+ .HasMaxLength(20)
+ .HasColumnType("varchar(20) CHARACTER SET utf8mb4")
+ .HasComment("修改者名称");
+
+ b.Property("WhetherAddUpdate")
+ .HasColumnType("longtext CHARACTER SET utf8mb4")
+ .HasComment("增改");
+
+ b.Property("WhetherCommon")
+ .HasColumnType("longtext CHARACTER SET utf8mb4")
+ .HasComment("是否通用字段");
+
+ b.Property("WhetherRequired")
+ .HasColumnType("longtext CHARACTER SET utf8mb4")
+ .HasComment("是否必填");
+
+ b.Property("WhetherRetract")
+ .HasColumnType("longtext CHARACTER SET utf8mb4")
+ .HasComment("列表是否缩进");
+
+ b.Property("WhetherTable")
+ .HasColumnType("longtext CHARACTER SET utf8mb4")
+ .HasComment("列表显示");
+
+ b.HasKey("Id");
+
+ b.ToTable("sys_code_gen_config");
+
+ b
+ .HasComment("代码生成字段配置表");
+ });
+
+ modelBuilder.Entity("Ewide.Core.SysConfig", b =>
+ {
+ b.Property("Id")
+ .HasColumnType("varchar(36)")
+ .HasColumnName("Id")
+ .HasComment("Id主键");
+
+ b.Property("Code")
+ .HasColumnType("longtext CHARACTER SET utf8mb4")
+ .HasComment("编码");
+
+ b.Property("CreatedTime")
+ .HasColumnType("datetime")
+ .HasComment("创建时间");
+
+ b.Property("CreatedUserId")
+ .HasColumnType("varchar(36)")
+ .HasColumnName("CreatedUserId")
+ .HasComment("创建者Id");
+
+ b.Property("CreatedUserName")
+ .HasMaxLength(20)
+ .HasColumnType("varchar(20) CHARACTER SET utf8mb4")
+ .HasComment("创建者名称");
+
+ b.Property("GroupCode")
+ .HasColumnType("longtext CHARACTER SET utf8mb4")
+ .HasComment("常量所属分类的编码");
+
+ b.Property("IsDeleted")
+ .HasColumnType("bit")
+ .HasColumnName("IsDeleted")
+ .HasComment("软删除标记");
+
+ b.Property("Name")
+ .HasColumnType("longtext CHARACTER SET utf8mb4")
+ .HasComment("名称");
+
+ b.Property("Remark")
+ .HasColumnType("longtext CHARACTER SET utf8mb4")
+ .HasComment("备注");
+
+ b.Property("Status")
+ .HasColumnType("int")
+ .HasComment("状态");
+
+ b.Property("SysFlag")
+ .HasColumnType("longtext CHARACTER SET utf8mb4")
+ .HasComment("是否是系统参数");
+
+ b.Property("UpdatedTime")
+ .HasColumnType("datetime")
+ .HasComment("更新时间");
+
+ b.Property("UpdatedUserId")
+ .HasColumnType("varchar(36)")
+ .HasColumnName("UpdatedUserId")
+ .HasComment("修改者Id");
+
+ b.Property("UpdatedUserName")
+ .HasMaxLength(20)
+ .HasColumnType("varchar(20) CHARACTER SET utf8mb4")
+ .HasComment("修改者名称");
+
+ b.Property("Value")
+ .HasColumnType("longtext CHARACTER SET utf8mb4")
+ .HasComment("属性值");
+
+ b.HasKey("Id");
+
+ b.ToTable("sys_config");
+
+ b
+ .HasComment("参数配置表");
+
+ b.HasData(
+ new
+ {
+ Id = "7c2765cd-d39b-4772-8d6c-0dbcdcfa1ff8",
+ Code = "DILON_JWT_SECRET",
+ GroupCode = "DEFAULT",
+ IsDeleted = 0ul,
+ Name = "jwt密钥",
+ Remark = "(重要)jwt密钥,默认为空,自行设置",
+ Status = 0,
+ SysFlag = "Y",
+ Value = "xiaonuo"
+ },
+ new
+ {
+ Id = "e3553657-14cf-4c26-ba7b-dbb4bfd4bc55",
+ Code = "DILON_DEFAULT_PASSWORD",
+ GroupCode = "DEFAULT",
+ IsDeleted = 0ul,
+ Name = "默认密码",
+ Remark = "默认密码",
+ Status = 0,
+ SysFlag = "Y",
+ Value = "123456"
+ },
+ new
+ {
+ Id = "2c677cd2-2a54-46c6-971d-f9fe20f101f3",
+ Code = "DILON_TOKEN_EXPIRE",
+ GroupCode = "DEFAULT",
+ IsDeleted = 0ul,
+ Name = "token过期时间",
+ Remark = "token过期时间(单位:秒)",
+ Status = 0,
+ SysFlag = "Y",
+ Value = "86400"
+ },
+ new
+ {
+ Id = "8938506d-2e00-44e0-8592-48453d43f9f5",
+ Code = "DILON_SESSION_EXPIRE",
+ GroupCode = "DEFAULT",
+ IsDeleted = 0ul,
+ Name = "session会话过期时间",
+ Remark = "session会话过期时间(单位:秒)",
+ Status = 0,
+ SysFlag = "Y",
+ Value = "7200"
+ },
+ new
+ {
+ Id = "beb2e9e7-f4d9-43b1-bfab-3557ea232f8d",
+ Code = "DILON_ALIYUN_SMS_ACCESSKEY_ID",
+ GroupCode = "ALIYUN_SMS",
+ IsDeleted = 0ul,
+ Name = "阿里云短信keyId",
+ Remark = "阿里云短信keyId",
+ Status = 0,
+ SysFlag = "Y",
+ Value = "你的keyId"
+ },
+ new
+ {
+ Id = "ead14cd0-9fd4-4fd6-b75c-239d8b2ebed8",
+ Code = "DILON_ALIYUN_SMS_ACCESSKEY_SECRET",
+ GroupCode = "ALIYUN_SMS",
+ IsDeleted = 0ul,
+ Name = "阿里云短信secret",
+ Remark = "阿里云短信secret",
+ Status = 0,
+ SysFlag = "Y",
+ Value = "你的secret"
+ },
+ new
+ {
+ Id = "beaaafc2-3fdf-42af-9b06-ead3a6dd6306",
+ Code = "DILON_ALIYUN_SMS_SIGN_NAME",
+ GroupCode = "ALIYUN_SMS",
+ IsDeleted = 0ul,
+ Name = "阿里云短信签名",
+ Remark = "阿里云短信签名",
+ Status = 0,
+ SysFlag = "Y",
+ Value = "你的签名"
+ },
+ new
+ {
+ Id = "e26a10cf-911a-4fe0-a113-76965be749a0",
+ Code = "DILON_ALIYUN_SMS_LOGIN_TEMPLATE_CODE",
+ GroupCode = "ALIYUN_SMS",
+ IsDeleted = 0ul,
+ Name = "阿里云短信-登录模板号",
+ Remark = "阿里云短信-登录模板号",
+ Status = 0,
+ SysFlag = "Y",
+ Value = "SMS_1877123456"
+ },
+ new
+ {
+ Id = "24d3f286-efca-49af-91b4-e3ce42cce36e",
+ Code = "DILON_ALIYUN_SMS_INVALIDATE_MINUTES",
+ GroupCode = "ALIYUN_SMS",
+ IsDeleted = 0ul,
+ Name = "阿里云短信默认失效时间",
+ Remark = "阿里云短信默认失效时间(单位:分钟)",
+ Status = 0,
+ SysFlag = "Y",
+ Value = "5"
+ },
+ new
+ {
+ Id = "c6540a07-ce32-47b4-ab83-b647bdb14491",
+ Code = "DILON_TENCENT_SMS_SECRET_ID",
+ GroupCode = "TENCENT_SMS",
+ IsDeleted = 0ul,
+ Name = "腾讯云短信secretId",
+ Remark = "腾讯云短信secretId",
+ Status = 0,
+ SysFlag = "Y",
+ Value = "你的secretId"
+ },
+ new
+ {
+ Id = "a0412212-d50b-42aa-9484-3cef8fe3cc59",
+ Code = "DILON_TENCENT_SMS_SECRET_KEY",
+ GroupCode = "TENCENT_SMS",
+ IsDeleted = 0ul,
+ Name = "腾讯云短信secretKey",
+ Remark = "腾讯云短信secretKey",
+ Status = 0,
+ SysFlag = "Y",
+ Value = "你的secretkey"
+ },
+ new
+ {
+ Id = "c928ca11-5137-4b71-bf1c-f3bc95bcd34d",
+ Code = "DILON_TENCENT_SMS_SDK_APP_ID",
+ GroupCode = "TENCENT_SMS",
+ IsDeleted = 0ul,
+ Name = "腾讯云短信sdkAppId",
+ Remark = "腾讯云短信sdkAppId",
+ Status = 0,
+ SysFlag = "Y",
+ Value = "1400375123"
+ },
+ new
+ {
+ Id = "16ce1b6e-c8ad-4299-9293-6caff0e5cb49",
+ Code = "DILON_TENCENT_SMS_SIGN",
+ GroupCode = "TENCENT_SMS",
+ IsDeleted = 0ul,
+ Name = "腾讯云短信签名",
+ Remark = "腾讯云短信签名",
+ Status = 0,
+ SysFlag = "Y",
+ Value = "你的签名"
+ },
+ new
+ {
+ Id = "66e63d64-b7eb-4e6a-b5b6-c87811c2e700",
+ Code = "DILON_EMAIL_HOST",
+ GroupCode = "EMAIL",
+ IsDeleted = 0ul,
+ Name = "邮箱host",
+ Remark = "邮箱host",
+ Status = 0,
+ SysFlag = "Y",
+ Value = "smtp.126.com"
+ },
+ new
+ {
+ Id = "997a9bc6-22ed-4fe6-a20c-c3c2a0b682a0",
+ Code = "DILON_EMAIL_USERNAME",
+ GroupCode = "EMAIL",
+ IsDeleted = 0ul,
+ Name = "邮箱用户名",
+ Remark = "邮箱用户名",
+ Status = 0,
+ SysFlag = "Y",
+ Value = "test@126.com"
+ },
+ new
+ {
+ Id = "633d1851-41d9-4ebd-b83b-3aa4501cd1a7",
+ Code = "DILON_EMAIL_PASSWORD",
+ GroupCode = "EMAIL",
+ IsDeleted = 0ul,
+ Name = "邮箱密码",
+ Remark = "邮箱密码",
+ Status = 0,
+ SysFlag = "Y",
+ Value = "你的邮箱密码"
+ },
+ new
+ {
+ Id = "67e468f7-e791-4e91-a896-62e9f7411635",
+ Code = "DILON_EMAIL_PORT",
+ GroupCode = "EMAIL",
+ IsDeleted = 0ul,
+ Name = "邮箱端口",
+ Remark = "邮箱端口",
+ Status = 0,
+ SysFlag = "Y",
+ Value = "465"
+ },
+ new
+ {
+ Id = "dc462c05-de23-4f90-bcdc-88de4abcdf22",
+ Code = "DILON_EMAIL_SSL",
+ GroupCode = "EMAIL",
+ IsDeleted = 0ul,
+ Name = "邮箱是否开启ssl",
+ Remark = "邮箱是否开启ssl",
+ Status = 0,
+ SysFlag = "Y",
+ Value = "true"
+ },
+ new
+ {
+ Id = "8beac2a0-4c67-4499-a7ce-27e989546ce9",
+ Code = "DILON_EMAIL_FROM",
+ GroupCode = "EMAIL",
+ IsDeleted = 0ul,
+ Name = "邮箱发件人",
+ Remark = "邮箱发件人",
+ Status = 0,
+ SysFlag = "Y",
+ Value = "test@126.com"
+ },
+ new
+ {
+ Id = "55756524-ecb8-444e-9cdd-a0fc767c4b96",
+ Code = "DILON_FILE_UPLOAD_PATH_FOR_WINDOWS",
+ GroupCode = "FILE_PATH",
+ IsDeleted = 0ul,
+ Name = "Win本地上传文件路径",
+ Remark = "Win本地上传文件路径",
+ Status = 0,
+ SysFlag = "Y",
+ Value = "D:/tmp"
+ },
+ new
+ {
+ Id = "d2db41ee-ce1f-46de-ac00-5860634afed9",
+ Code = "DILON_FILE_UPLOAD_PATH_FOR_LINUX",
+ GroupCode = "FILE_PATH",
+ IsDeleted = 0ul,
+ Name = "Linux/Mac本地上传文件路径",
+ Remark = "Linux/Mac本地上传文件路径",
+ Status = 0,
+ SysFlag = "Y",
+ Value = "/tmp"
+ },
+ new
+ {
+ Id = "ff8debdd-eca0-4f91-8213-e2080f76b35d",
+ Code = "DILON_UN_XSS_FILTER_URL",
+ GroupCode = "DEFAULT",
+ IsDeleted = 0ul,
+ Name = "放开XSS过滤的接口",
+ Remark = "多个url可以用英文逗号隔开",
+ Status = 0,
+ SysFlag = "Y",
+ Value = "/demo/xssfilter,/demo/unxss"
+ },
+ new
+ {
+ Id = "5584fb84-f580-463f-b06d-bbb80a4dfb72",
+ Code = "DILON_ENABLE_SINGLE_LOGIN",
+ GroupCode = "DEFAULT",
+ IsDeleted = 0ul,
+ Name = "单用户登陆的开关",
+ Remark = "true-打开,false-关闭,如果一个人登录两次,就会将上一次登陆挤下去",
+ Status = 0,
+ SysFlag = "Y",
+ Value = "false"
+ },
+ new
+ {
+ Id = "53b0afb2-4917-4b85-bcca-fe7c7723ae22",
+ Code = "DILON_CAPTCHA_OPEN",
+ GroupCode = "DEFAULT",
+ IsDeleted = 0ul,
+ Name = "登录验证码的开关",
+ Remark = "true-打开,false-关闭",
+ Status = 0,
+ SysFlag = "Y",
+ Value = "true"
+ },
+ new
+ {
+ Id = "974740d8-8647-4cf8-8102-542eea53e97f",
+ Code = "DILON_DRUID_USERNAME",
+ GroupCode = "DEFAULT",
+ IsDeleted = 0ul,
+ Name = "Druid监控登录账号",
+ Remark = "Druid监控登录账号",
+ Status = 0,
+ SysFlag = "Y",
+ Value = "superAdmin"
+ },
+ new
+ {
+ Id = "8cee44ea-ba4c-42db-a57d-69b8b5316ca5",
+ Code = "DILON_DRUID_PASSWORD",
+ GroupCode = "DEFAULT",
+ IsDeleted = 0ul,
+ Name = "Druid监控界面登录密码",
+ Remark = "Druid监控界面登录密码",
+ Status = 0,
+ SysFlag = "Y",
+ Value = "123456"
+ },
+ new
+ {
+ Id = "efc235ab-9b05-4820-afe4-32a1eb59e4de",
+ Code = "DILON_IP_GEO_API",
+ GroupCode = "DEFAULT",
+ IsDeleted = 0ul,
+ Name = "阿里云定位api接口地址",
+ Remark = "阿里云定位api接口地址",
+ Status = 0,
+ SysFlag = "Y",
+ Value = "http://api01.aliyun.venuscn.com/ip?ip=%s"
+ },
+ new
+ {
+ Id = "d3597d8a-562a-4b24-93c7-8655c5445d74",
+ Code = "DILON_IP_GEO_APP_CODE",
+ GroupCode = "DEFAULT",
+ IsDeleted = 0ul,
+ Name = "阿里云定位appCode",
+ Remark = "阿里云定位appCode",
+ Status = 0,
+ SysFlag = "Y",
+ Value = "461535aabeae4f34861884d392f5d452"
+ },
+ new
+ {
+ Id = "59c8a6f2-9e3c-4e9e-b9cf-8ecad5f0cb45",
+ Code = "DILON_ENABLE_OAUTH_LOGIN",
+ GroupCode = "OAUTH",
+ IsDeleted = 0ul,
+ Name = "Oauth用户登录的开关",
+ Remark = "Oauth用户登录的开关",
+ Status = 0,
+ SysFlag = "Y",
+ Value = "true"
+ },
+ new
+ {
+ Id = "ff502ee7-8129-4828-8d16-fb04562ef52c",
+ Code = "DILON_OAUTH_GITEE_CLIENT_ID",
+ GroupCode = "OAUTH",
+ IsDeleted = 0ul,
+ Name = "Oauth码云登录ClientId",
+ Remark = "Oauth码云登录ClientId",
+ Status = 0,
+ SysFlag = "Y",
+ Value = "你的clientId"
+ },
+ new
+ {
+ Id = "a1d957ef-2b70-456f-8eda-b70a4cf01535",
+ Code = "DILON_OAUTH_GITEE_CLIENT_SECRET",
+ GroupCode = "OAUTH",
+ IsDeleted = 0ul,
+ Name = "Oauth码云登录ClientSecret",
+ Remark = "Oauth码云登录ClientSecret",
+ Status = 0,
+ SysFlag = "Y",
+ Value = "你的clientSecret"
+ },
+ new
+ {
+ Id = "b32ee22b-671d-40bf-8070-32e1054fef96",
+ Code = "DILON_OAUTH_GITEE_REDIRECT_URI",
+ GroupCode = "OAUTH",
+ IsDeleted = 0ul,
+ Name = "Oauth码云登录回调地址",
+ Remark = "Oauth码云登录回调地址",
+ Status = 0,
+ SysFlag = "Y",
+ Value = "http://127.0.0.1:5566/oauth/callback/gitee"
+ },
+ new
+ {
+ Id = "38dda85c-2a98-4768-aebd-a60ab286052c",
+ Code = "DILON_DEMO_ENV_FLAG",
+ GroupCode = "DEFAULT",
+ IsDeleted = 0ul,
+ Name = "演示环境",
+ Remark = "演示环境的开关,true-打开,false-关闭,如果演示环境开启,则只能读数据不能写数据",
+ Status = 0,
+ SysFlag = "Y",
+ Value = "false"
+ });
+ });
+
+ modelBuilder.Entity("Ewide.Core.SysDictData", b =>
+ {
+ b.Property("Id")
+ .HasColumnType("varchar(36)")
+ .HasColumnName("Id")
+ .HasComment("Id主键");
+
+ b.Property("Code")
+ .HasColumnType("longtext CHARACTER SET utf8mb4")
+ .HasComment("编码");
+
+ b.Property("CreatedTime")
+ .HasColumnType("datetime")
+ .HasComment("创建时间");
+
+ b.Property("CreatedUserId")
+ .HasColumnType("varchar(36)")
+ .HasColumnName("CreatedUserId")
+ .HasComment("创建者Id");
+
+ b.Property("CreatedUserName")
+ .HasMaxLength(20)
+ .HasColumnType("varchar(20) CHARACTER SET utf8mb4")
+ .HasComment("创建者名称");
+
+ b.Property("IsDeleted")
+ .HasColumnType("bit")
+ .HasColumnName("IsDeleted")
+ .HasComment("软删除标记");
+
+ b.Property("Remark")
+ .HasColumnType("longtext CHARACTER SET utf8mb4")
+ .HasComment("备注");
+
+ b.Property("Sort")
+ .HasColumnType("int")
+ .HasComment("排序");
+
+ b.Property("Status")
+ .HasColumnType("int")
+ .HasComment("状态");
+
+ b.Property("TypeId")
+ .HasColumnType("varchar(36)")
+ .HasColumnName("TypeId")
+ .HasComment("字典类型Id");
+
+ b.Property("UpdatedTime")
+ .HasColumnType("datetime")
+ .HasComment("更新时间");
+
+ b.Property("UpdatedUserId")
+ .HasColumnType("varchar(36)")
+ .HasColumnName("UpdatedUserId")
+ .HasComment("修改者Id");
+
+ b.Property("UpdatedUserName")
+ .HasMaxLength(20)
+ .HasColumnType("varchar(20) CHARACTER SET utf8mb4")
+ .HasComment("修改者名称");
+
+ b.Property("Value")
+ .HasColumnType("longtext CHARACTER SET utf8mb4")
+ .HasComment("值");
+
+ b.HasKey("Id");
+
+ b.HasIndex("TypeId");
+
+ b.ToTable("sys_dict_data");
+
+ b
+ .HasComment("字典值表");
+
+ b.HasData(
+ new
+ {
+ Id = "99b965d3-1f2b-4f5b-a62a-6763b8d64a64",
+ Code = "1",
+ IsDeleted = 0ul,
+ Remark = "通知",
+ Sort = 100,
+ Status = 0,
+ TypeId = "d5b311fd-4b60-4b51-9156-b0e6d6cfa4d1",
+ Value = "通知"
+ },
+ new
+ {
+ Id = "2616e6c2-a504-4fc6-993e-72701b48e79a",
+ Code = "2",
+ IsDeleted = 0ul,
+ Remark = "公告",
+ Sort = 100,
+ Status = 0,
+ TypeId = "d5b311fd-4b60-4b51-9156-b0e6d6cfa4d1",
+ Value = "公告"
+ },
+ new
+ {
+ Id = "40d336cd-918a-4e90-8836-cba7c1bf6cdf",
+ Code = "0",
+ IsDeleted = 0ul,
+ Remark = "草稿",
+ Sort = 100,
+ Status = 0,
+ TypeId = "b30937e6-03cd-4d98-a413-10b06d605e5a",
+ Value = "草稿"
+ },
+ new
+ {
+ Id = "f5b49fa9-31a1-44c2-9df0-b28bf5daeee0",
+ Code = "1",
+ IsDeleted = 0ul,
+ Remark = "发布",
+ Sort = 100,
+ Status = 0,
+ TypeId = "b30937e6-03cd-4d98-a413-10b06d605e5a",
+ Value = "发布"
+ },
+ new
+ {
+ Id = "d2f73bb4-05a1-4aa5-9273-e9f3c393996d",
+ Code = "2",
+ IsDeleted = 0ul,
+ Remark = "撤回",
+ Sort = 100,
+ Status = 0,
+ TypeId = "b30937e6-03cd-4d98-a413-10b06d605e5a",
+ Value = "撤回"
+ },
+ new
+ {
+ Id = "6385916f-6ead-470e-889b-cfb9d2da6256",
+ Code = "3",
+ IsDeleted = 0ul,
+ Remark = "删除",
+ Sort = 100,
+ Status = 0,
+ TypeId = "b30937e6-03cd-4d98-a413-10b06d605e5a",
+ Value = "删除"
+ },
+ new
+ {
+ Id = "1f432e9d-f031-4787-a527-f37bb20ebe3a",
+ Code = "true",
+ IsDeleted = 0ul,
+ Remark = "是",
+ Sort = 100,
+ Status = 0,
+ TypeId = "80aea9e7-ad1b-4f57-b4db-9d15813707bd",
+ Value = "是"
+ },
+ new
+ {
+ Id = "0724636d-e870-46c6-8e1e-67f1ea5f58e5",
+ Code = "false",
+ IsDeleted = 0ul,
+ Remark = "否",
+ Sort = 100,
+ Status = 0,
+ TypeId = "80aea9e7-ad1b-4f57-b4db-9d15813707bd",
+ Value = "否"
+ },
+ new
+ {
+ Id = "881ebcf2-94a6-4938-81a4-55b81736f3b3",
+ Code = "1",
+ IsDeleted = 0ul,
+ Remark = "下载压缩包",
+ Sort = 100,
+ Status = 0,
+ TypeId = "430d0538-054a-4b37-a459-1095d0ccf4ae",
+ Value = "下载压缩包"
+ },
+ new
+ {
+ Id = "5bc8662d-b795-48f1-a88e-2f4be5279d37",
+ Code = "2",
+ IsDeleted = 0ul,
+ Remark = "生成到本项目",
+ Sort = 100,
+ Status = 0,
+ TypeId = "430d0538-054a-4b37-a459-1095d0ccf4ae",
+ Value = "生成到本项目"
+ },
+ new
+ {
+ Id = "b2a00b40-23e1-40e1-8995-60ab420eafe1",
+ Code = "1",
+ IsDeleted = 0ul,
+ Remark = "GET",
+ Sort = 100,
+ Status = 0,
+ TypeId = "bc0dc25b-b85e-4dd1-8368-e014fe1bf30b",
+ Value = "GET"
+ },
+ new
+ {
+ Id = "10070836-0c89-4b89-96e3-c65c7e33a86c",
+ Code = "2",
+ IsDeleted = 0ul,
+ Remark = "POST",
+ Sort = 100,
+ Status = 0,
+ TypeId = "bc0dc25b-b85e-4dd1-8368-e014fe1bf30b",
+ Value = "POST"
+ },
+ new
+ {
+ Id = "69a34c0b-85ce-4e53-9ad4-a592057dddd4",
+ Code = "3",
+ IsDeleted = 0ul,
+ Remark = "PUT",
+ Sort = 100,
+ Status = 0,
+ TypeId = "bc0dc25b-b85e-4dd1-8368-e014fe1bf30b",
+ Value = "PUT"
+ },
+ new
+ {
+ Id = "0e4dc1f1-8654-401b-800a-22b31f62ced1",
+ Code = "4",
+ IsDeleted = 0ul,
+ Remark = "DELETE",
+ Sort = 100,
+ Status = 0,
+ TypeId = "bc0dc25b-b85e-4dd1-8368-e014fe1bf30b",
+ Value = "DELETE"
+ },
+ new
+ {
+ Id = "443f965e-96b4-4fd2-93e9-07fe00a47205",
+ Code = "input",
+ IsDeleted = 0ul,
+ Remark = "输入框",
+ Sort = 100,
+ Status = 0,
+ TypeId = "5bdf9b7a-a483-4b61-8e22-e2b25b255b91",
+ Value = "输入框"
+ },
+ new
+ {
+ Id = "bf7be9a2-53fb-4250-87fe-49d7f741d159",
+ Code = "datepicker",
+ IsDeleted = 0ul,
+ Remark = "时间选择",
+ Sort = 100,
+ Status = 0,
+ TypeId = "5bdf9b7a-a483-4b61-8e22-e2b25b255b91",
+ Value = "时间选择"
+ },
+ new
+ {
+ Id = "cea10919-47e2-43ab-a19b-9d41fe648310",
+ Code = "select",
+ IsDeleted = 0ul,
+ Remark = "下拉框",
+ Sort = 100,
+ Status = 0,
+ TypeId = "5bdf9b7a-a483-4b61-8e22-e2b25b255b91",
+ Value = "下拉框"
+ },
+ new
+ {
+ Id = "7d534f44-cf66-472e-b0d3-20a4cc2ad432",
+ Code = "radio",
+ IsDeleted = 0ul,
+ Remark = "单选框",
+ Sort = 100,
+ Status = 0,
+ TypeId = "5bdf9b7a-a483-4b61-8e22-e2b25b255b91",
+ Value = "单选框"
+ },
+ new
+ {
+ Id = "d63b06d4-be11-4ab7-9905-87f6f2ca056f",
+ Code = "switch",
+ IsDeleted = 0ul,
+ Remark = "开关",
+ Sort = 100,
+ Status = 0,
+ TypeId = "5bdf9b7a-a483-4b61-8e22-e2b25b255b91",
+ Value = "开关"
+ },
+ new
+ {
+ Id = "46967f62-bac9-47fd-9278-b29c047b0c38",
+ Code = "checkbox",
+ IsDeleted = 0ul,
+ Remark = "多选框",
+ Sort = 100,
+ Status = 0,
+ TypeId = "5bdf9b7a-a483-4b61-8e22-e2b25b255b91",
+ Value = "多选框"
+ },
+ new
+ {
+ Id = "a8ac5009-93d3-4405-a6b9-81ed3e2811f2",
+ Code = "inputnumber",
+ IsDeleted = 0ul,
+ Remark = "数字输入框",
+ Sort = 100,
+ Status = 0,
+ TypeId = "5bdf9b7a-a483-4b61-8e22-e2b25b255b91",
+ Value = "数字输入框"
+ },
+ new
+ {
+ Id = "d00b3efa-2f9d-464c-8134-aa7013ef52bb",
+ Code = "textarea",
+ IsDeleted = 0ul,
+ Remark = "文本域",
+ Sort = 100,
+ Status = 0,
+ TypeId = "5bdf9b7a-a483-4b61-8e22-e2b25b255b91",
+ Value = "文本域"
+ },
+ new
+ {
+ Id = "ad759239-e34e-4fdf-a0d0-6b39eb41f880",
+ Code = "==",
+ IsDeleted = 0ul,
+ Remark = "等于",
+ Sort = 1,
+ Status = 0,
+ TypeId = "41bc31f6-cef5-400d-b03a-bf51d27b2432",
+ Value = "等于"
+ },
+ new
+ {
+ Id = "2c8e1240-f3ef-4df1-bd68-3047109ad5b4",
+ Code = "like",
+ IsDeleted = 0ul,
+ Remark = "模糊",
+ Sort = 2,
+ Status = 0,
+ TypeId = "41bc31f6-cef5-400d-b03a-bf51d27b2432",
+ Value = "模糊"
+ },
+ new
+ {
+ Id = "efc18513-c17b-4fc1-8e0e-2e79fb9b0107",
+ Code = ">",
+ IsDeleted = 0ul,
+ Remark = "大于",
+ Sort = 3,
+ Status = 0,
+ TypeId = "41bc31f6-cef5-400d-b03a-bf51d27b2432",
+ Value = "大于"
+ },
+ new
+ {
+ Id = "a6812d98-7785-4db2-b2f8-d476a459c5ed",
+ Code = "<",
+ IsDeleted = 0ul,
+ Remark = "小于",
+ Sort = 4,
+ Status = 0,
+ TypeId = "41bc31f6-cef5-400d-b03a-bf51d27b2432",
+ Value = "小于"
+ },
+ new
+ {
+ Id = "218b5bac-343e-4594-a9da-30e391c7735c",
+ Code = "!=",
+ IsDeleted = 0ul,
+ Remark = "不等于",
+ Sort = 5,
+ Status = 0,
+ TypeId = "41bc31f6-cef5-400d-b03a-bf51d27b2432",
+ Value = "不等于"
+ },
+ new
+ {
+ Id = "4825f15d-077b-4c16-8ee7-0205d653e14d",
+ Code = ">=",
+ IsDeleted = 0ul,
+ Remark = "大于等于",
+ Sort = 6,
+ Status = 0,
+ TypeId = "41bc31f6-cef5-400d-b03a-bf51d27b2432",
+ Value = "大于等于"
+ },
+ new
+ {
+ Id = "7c9e8270-db5a-45b7-acd7-f95c8ee31547",
+ Code = "<=",
+ IsDeleted = 0ul,
+ Remark = "小于等于",
+ Sort = 7,
+ Status = 0,
+ TypeId = "41bc31f6-cef5-400d-b03a-bf51d27b2432",
+ Value = "小于等于"
+ },
+ new
+ {
+ Id = "759ea7de-a18f-4ed7-9032-bbd1a4dadc9e",
+ Code = "isNotNull",
+ IsDeleted = 0ul,
+ Remark = "不为空",
+ Sort = 8,
+ Status = 0,
+ TypeId = "41bc31f6-cef5-400d-b03a-bf51d27b2432",
+ Value = "不为空"
+ },
+ new
+ {
+ Id = "a5cdf75e-6361-490d-a043-f5929ccf65a9",
+ Code = "int",
+ IsDeleted = 0ul,
+ Remark = "int",
+ Sort = 100,
+ Status = 0,
+ TypeId = "28f653d4-e573-4f54-8e5c-4e308780145a",
+ Value = "int"
+ },
+ new
+ {
+ Id = "cffdd4b5-d4e0-4196-81b9-02045de8b189",
+ Code = "long",
+ IsDeleted = 0ul,
+ Remark = "long",
+ Sort = 100,
+ Status = 0,
+ TypeId = "28f653d4-e573-4f54-8e5c-4e308780145a",
+ Value = "long"
+ },
+ new
+ {
+ Id = "25be90ea-b439-4e9d-993c-48a5ce3b9358",
+ Code = "string",
+ IsDeleted = 0ul,
+ Remark = "string",
+ Sort = 100,
+ Status = 0,
+ TypeId = "28f653d4-e573-4f54-8e5c-4e308780145a",
+ Value = "string"
+ },
+ new
+ {
+ Id = "496eef62-3849-4263-b274-a3e6090942e3",
+ Code = "bool",
+ IsDeleted = 0ul,
+ Remark = "bool",
+ Sort = 100,
+ Status = 0,
+ TypeId = "28f653d4-e573-4f54-8e5c-4e308780145a",
+ Value = "bool"
+ },
+ new
+ {
+ Id = "681c02ea-7570-4a97-85a7-957a77314df6",
+ Code = "double",
+ IsDeleted = 0ul,
+ Remark = "double",
+ Sort = 100,
+ Status = 0,
+ TypeId = "28f653d4-e573-4f54-8e5c-4e308780145a",
+ Value = "double"
+ },
+ new
+ {
+ Id = "259698cf-b25d-427a-8d22-33b9c1899eea",
+ Code = "DateTime",
+ IsDeleted = 0ul,
+ Remark = "DateTime",
+ Sort = 100,
+ Status = 0,
+ TypeId = "28f653d4-e573-4f54-8e5c-4e308780145a",
+ Value = "DateTime"
+ },
+ new
+ {
+ Id = "a30c682e-744a-468d-a74f-827928c96c01",
+ Code = "float",
+ IsDeleted = 0ul,
+ Remark = "float",
+ Sort = 100,
+ Status = 0,
+ TypeId = "28f653d4-e573-4f54-8e5c-4e308780145a",
+ Value = "float"
+ },
+ new
+ {
+ Id = "4b68cb83-f173-4864-bd10-a7a7d5248102",
+ Code = "decimal",
+ IsDeleted = 0ul,
+ Remark = "decimal",
+ Sort = 100,
+ Status = 0,
+ TypeId = "28f653d4-e573-4f54-8e5c-4e308780145a",
+ Value = "decimal"
+ },
+ new
+ {
+ Id = "134d4173-8d93-4c19-bf6b-a640d35da097",
+ Code = "Guid",
+ IsDeleted = 0ul,
+ Remark = "Guid",
+ Sort = 100,
+ Status = 0,
+ TypeId = "28f653d4-e573-4f54-8e5c-4e308780145a",
+ Value = "Guid"
+ },
+ new
+ {
+ Id = "c597306f-5fd0-4f75-9a46-12de340cd199",
+ Code = "DateTimeOffset",
+ IsDeleted = 0ul,
+ Remark = "DateTimeOffset",
+ Sort = 100,
+ Status = 0,
+ TypeId = "28f653d4-e573-4f54-8e5c-4e308780145a",
+ Value = "DateTimeOffset"
+ },
+ new
+ {
+ Id = "9b44b297-f6f0-4c31-b680-83baabf4c5b7",
+ Code = "1",
+ IsDeleted = 0ul,
+ Remark = "男性",
+ Sort = 100,
+ Status = 0,
+ TypeId = "301ed120-dfc5-4d7c-af59-b56a519581c9",
+ Value = "男"
+ },
+ new
+ {
+ Id = "46ba4c21-cbde-4561-8e57-19ed0f752c17",
+ Code = "2",
+ IsDeleted = 0ul,
+ Remark = "女性",
+ Sort = 100,
+ Status = 0,
+ TypeId = "301ed120-dfc5-4d7c-af59-b56a519581c9",
+ Value = "女"
+ },
+ new
+ {
+ Id = "150e04a6-3bf5-4604-98d5-14fbd1608bc5",
+ Code = "3",
+ IsDeleted = 0ul,
+ Remark = "未知性别",
+ Sort = 100,
+ Status = 0,
+ TypeId = "301ed120-dfc5-4d7c-af59-b56a519581c9",
+ Value = "未知"
+ },
+ new
+ {
+ Id = "b6ad194b-ccfb-4ee7-b402-7b78e8bb8680",
+ Code = "DEFAULT",
+ IsDeleted = 0ul,
+ Remark = "默认常量,都以XIAONUO_开头的",
+ Sort = 100,
+ Status = 0,
+ TypeId = "64afb5e7-9f00-4c4f-9ba6-6b41221bd862",
+ Value = "默认常量"
+ },
+ new
+ {
+ Id = "e2271e0a-17a3-41f3-81fa-dbe895ce0466",
+ Code = "ALIYUN_SMS",
+ IsDeleted = 0ul,
+ Remark = "阿里云短信配置",
+ Sort = 100,
+ Status = 0,
+ TypeId = "64afb5e7-9f00-4c4f-9ba6-6b41221bd862",
+ Value = "阿里云短信"
+ },
+ new
+ {
+ Id = "5e61f455-1975-438b-bd17-85a1f89abe84",
+ Code = "TENCENT_SMS",
+ IsDeleted = 0ul,
+ Remark = "腾讯云短信",
+ Sort = 100,
+ Status = 0,
+ TypeId = "64afb5e7-9f00-4c4f-9ba6-6b41221bd862",
+ Value = "腾讯云短信"
+ },
+ new
+ {
+ Id = "9cba05e7-495a-43fb-b86b-fa459da5b04d",
+ Code = "EMAIL",
+ IsDeleted = 0ul,
+ Remark = "邮件配置",
+ Sort = 100,
+ Status = 0,
+ TypeId = "64afb5e7-9f00-4c4f-9ba6-6b41221bd862",
+ Value = "邮件配置"
+ },
+ new
+ {
+ Id = "81d87a9c-a4ee-46dc-be69-71dcccb14d9d",
+ Code = "FILE_PATH",
+ IsDeleted = 0ul,
+ Remark = "文件上传路径",
+ Sort = 100,
+ Status = 0,
+ TypeId = "64afb5e7-9f00-4c4f-9ba6-6b41221bd862",
+ Value = "文件上传路径"
+ },
+ new
+ {
+ Id = "fdf38fa8-3d1e-4a43-84bc-785c0a394160",
+ Code = "OAUTH",
+ IsDeleted = 0ul,
+ Remark = "Oauth配置",
+ Sort = 100,
+ Status = 0,
+ TypeId = "64afb5e7-9f00-4c4f-9ba6-6b41221bd862",
+ Value = "Oauth配置"
+ },
+ new
+ {
+ Id = "e3c9ebce-bdae-45a3-92b1-fc2e35a23242",
+ Code = "0",
+ IsDeleted = 0ul,
+ Remark = "正常",
+ Sort = 100,
+ Status = 0,
+ TypeId = "b0cfa91c-1189-4f39-bc5a-f035885d0604",
+ Value = "正常"
+ },
+ new
+ {
+ Id = "22492650-a92b-43f0-9954-3d3891ec6e45",
+ Code = "1",
+ IsDeleted = 0ul,
+ Remark = "停用",
+ Sort = 100,
+ Status = 0,
+ TypeId = "b0cfa91c-1189-4f39-bc5a-f035885d0604",
+ Value = "停用"
+ },
+ new
+ {
+ Id = "297030a2-88d9-4646-b7c1-a17c9a8c0b98",
+ Code = "2",
+ IsDeleted = 0ul,
+ Remark = "删除",
+ Sort = 100,
+ Status = 0,
+ TypeId = "b0cfa91c-1189-4f39-bc5a-f035885d0604",
+ Value = "删除"
+ },
+ new
+ {
+ Id = "1159fc34-ef51-4e0f-b55b-0220d2445a1e",
+ Code = "N",
+ IsDeleted = 0ul,
+ Remark = "否",
+ Sort = 100,
+ Status = 0,
+ TypeId = "f2f0e8bf-04da-4a2f-9fb8-1d6549227302",
+ Value = "否"
+ },
+ new
+ {
+ Id = "7d3115a8-938a-4d09-a2c9-21ad65b8b65a",
+ Code = "Y",
+ IsDeleted = 0ul,
+ Remark = "是",
+ Sort = 100,
+ Status = 0,
+ TypeId = "f2f0e8bf-04da-4a2f-9fb8-1d6549227302",
+ Value = "是"
+ },
+ new
+ {
+ Id = "8204daac-b2ea-41f6-ab52-ef299a05fd94",
+ Code = "1",
+ IsDeleted = 0ul,
+ Remark = "登录",
+ Sort = 100,
+ Status = 0,
+ TypeId = "2cecf329-cf95-44eb-a8d7-3fb77b13e093",
+ Value = "登录"
+ },
+ new
+ {
+ Id = "934099f4-c1a6-4f63-8cff-a42356369dd9",
+ Code = "2",
+ IsDeleted = 0ul,
+ Remark = "登出",
+ Sort = 100,
+ Status = 0,
+ TypeId = "2cecf329-cf95-44eb-a8d7-3fb77b13e093",
+ Value = "登出"
+ },
+ new
+ {
+ Id = "a8cd8263-4397-4d68-91db-d92330c67632",
+ Code = "0",
+ IsDeleted = 0ul,
+ Remark = "目录",
+ Sort = 100,
+ Status = 0,
+ TypeId = "e973d383-c28e-42e0-9e23-5f2bd592fef5",
+ Value = "目录"
+ },
+ new
+ {
+ Id = "bb082602-57ea-4941-b68b-64460e7f63b6",
+ Code = "1",
+ IsDeleted = 0ul,
+ Remark = "菜单",
+ Sort = 100,
+ Status = 0,
+ TypeId = "e973d383-c28e-42e0-9e23-5f2bd592fef5",
+ Value = "菜单"
+ },
+ new
+ {
+ Id = "a4cba529-769a-4309-add6-b15b25ebf05a",
+ Code = "2",
+ IsDeleted = 0ul,
+ Remark = "按钮",
+ Sort = 100,
+ Status = 0,
+ TypeId = "e973d383-c28e-42e0-9e23-5f2bd592fef5",
+ Value = "按钮"
+ },
+ new
+ {
+ Id = "7ec98dee-8dc9-47fe-9276-f3312ed5dd24",
+ Code = "0",
+ IsDeleted = 0ul,
+ Remark = "未发送",
+ Sort = 100,
+ Status = 0,
+ TypeId = "058db370-3718-42c3-8ba7-095341b1fe13",
+ Value = "未发送"
+ },
+ new
+ {
+ Id = "83cf4407-dbe1-4da2-883d-a3e16a780f37",
+ Code = "1",
+ IsDeleted = 0ul,
+ Remark = "发送成功",
+ Sort = 100,
+ Status = 0,
+ TypeId = "058db370-3718-42c3-8ba7-095341b1fe13",
+ Value = "发送成功"
+ },
+ new
+ {
+ Id = "e1e71562-015e-466b-b98b-29f4b8966bce",
+ Code = "2",
+ IsDeleted = 0ul,
+ Remark = "发送失败",
+ Sort = 100,
+ Status = 0,
+ TypeId = "058db370-3718-42c3-8ba7-095341b1fe13",
+ Value = "发送失败"
+ },
+ new
+ {
+ Id = "13e71f10-539b-4016-9acf-e3541c0f04db",
+ Code = "3",
+ IsDeleted = 0ul,
+ Remark = "失效",
+ Sort = 100,
+ Status = 0,
+ TypeId = "058db370-3718-42c3-8ba7-095341b1fe13",
+ Value = "失效"
+ },
+ new
+ {
+ Id = "f965b257-b2ff-4a18-9084-6e805547e9e6",
+ Code = "0",
+ IsDeleted = 0ul,
+ Remark = "无",
+ Sort = 100,
+ Status = 0,
+ TypeId = "ff6202cb-25ce-4ab9-9c39-910c418b1d2d",
+ Value = "无"
+ },
+ new
+ {
+ Id = "75c40b12-07d1-4828-9b6c-132f4bca194c",
+ Code = "1",
+ IsDeleted = 0ul,
+ Remark = "组件",
+ Sort = 100,
+ Status = 0,
+ TypeId = "ff6202cb-25ce-4ab9-9c39-910c418b1d2d",
+ Value = "组件"
+ },
+ new
+ {
+ Id = "be3197fd-2fba-4e79-b252-793f05e51a21",
+ Code = "2",
+ IsDeleted = 0ul,
+ Remark = "内链",
+ Sort = 100,
+ Status = 0,
+ TypeId = "ff6202cb-25ce-4ab9-9c39-910c418b1d2d",
+ Value = "内链"
+ },
+ new
+ {
+ Id = "2a10adc6-b286-4fad-9719-7e7321c7a93e",
+ Code = "3",
+ IsDeleted = 0ul,
+ Remark = "外链",
+ Sort = 100,
+ Status = 0,
+ TypeId = "ff6202cb-25ce-4ab9-9c39-910c418b1d2d",
+ Value = "外链"
+ },
+ new
+ {
+ Id = "d3984ed0-29d5-416e-87c6-75364010677b",
+ Code = "1",
+ IsDeleted = 0ul,
+ Remark = "系统权重",
+ Sort = 100,
+ Status = 0,
+ TypeId = "b3235678-f7fe-442b-8fba-e792a89b78f2",
+ Value = "系统权重"
+ },
+ new
+ {
+ Id = "f4771570-e4a5-416f-b82f-1e3082c35ee8",
+ Code = "2",
+ IsDeleted = 0ul,
+ Remark = "业务权重",
+ Sort = 100,
+ Status = 0,
+ TypeId = "b3235678-f7fe-442b-8fba-e792a89b78f2",
+ Value = "业务权重"
+ },
+ new
+ {
+ Id = "a2d6bdfe-ee61-4425-94c9-7ece3de080fa",
+ Code = "1",
+ IsDeleted = 0ul,
+ Remark = "全部数据",
+ Sort = 100,
+ Status = 0,
+ TypeId = "a2068ed1-62a6-463c-b720-06111d994079",
+ Value = "全部数据"
+ },
+ new
+ {
+ Id = "d0b25877-165e-41b8-9034-7a8fea7e5776",
+ Code = "2",
+ IsDeleted = 0ul,
+ Remark = "本部门及以下数据",
+ Sort = 100,
+ Status = 0,
+ TypeId = "a2068ed1-62a6-463c-b720-06111d994079",
+ Value = "本部门及以下数据"
+ },
+ new
+ {
+ Id = "375362c8-d694-40d9-8c55-07669e472460",
+ Code = "3",
+ IsDeleted = 0ul,
+ Remark = "本部门数据",
+ Sort = 100,
+ Status = 0,
+ TypeId = "a2068ed1-62a6-463c-b720-06111d994079",
+ Value = "本部门数据"
+ },
+ new
+ {
+ Id = "70afe4c1-3495-483a-bdd0-3d4ea45136b3",
+ Code = "4",
+ IsDeleted = 0ul,
+ Remark = "仅本人数据",
+ Sort = 100,
+ Status = 0,
+ TypeId = "a2068ed1-62a6-463c-b720-06111d994079",
+ Value = "仅本人数据"
+ },
+ new
+ {
+ Id = "6f395e69-8add-40ae-a378-0881d64a4413",
+ Code = "5",
+ IsDeleted = 0ul,
+ Remark = "自定义数据",
+ Sort = 100,
+ Status = 0,
+ TypeId = "a2068ed1-62a6-463c-b720-06111d994079",
+ Value = "自定义数据"
+ },
+ new
+ {
+ Id = "a819d549-6107-43a2-99d2-377cf0a5681a",
+ Code = "1",
+ IsDeleted = 0ul,
+ Remark = "app",
+ Sort = 100,
+ Status = 0,
+ TypeId = "688f9a69-ec95-46f4-87bb-e19e3cc5c7fc",
+ Value = "app"
+ },
+ new
+ {
+ Id = "b1e821b3-4e7b-4e60-a67f-a40d327ab6d6",
+ Code = "2",
+ IsDeleted = 0ul,
+ Remark = "pc",
+ Sort = 100,
+ Status = 0,
+ TypeId = "688f9a69-ec95-46f4-87bb-e19e3cc5c7fc",
+ Value = "pc"
+ },
+ new
+ {
+ Id = "2bce5da0-b386-4412-935d-d081b7cf4391",
+ Code = "3",
+ IsDeleted = 0ul,
+ Remark = "其他",
+ Sort = 100,
+ Status = 0,
+ TypeId = "688f9a69-ec95-46f4-87bb-e19e3cc5c7fc",
+ Value = "其他"
+ },
+ new
+ {
+ Id = "35aac71b-9939-4b2e-8533-d087618c1dca",
+ Code = "0",
+ IsDeleted = 0ul,
+ Remark = "其它",
+ Sort = 100,
+ Status = 0,
+ TypeId = "8461bd1d-311b-487e-b579-d6049c6fb191",
+ Value = "其它"
+ },
+ new
+ {
+ Id = "e7585292-d6c6-475f-bf87-8ad473ce6be4",
+ Code = "1",
+ IsDeleted = 0ul,
+ Remark = "增加",
+ Sort = 100,
+ Status = 0,
+ TypeId = "8461bd1d-311b-487e-b579-d6049c6fb191",
+ Value = "增加"
+ },
+ new
+ {
+ Id = "387d403c-6af3-4bda-af05-d60472823480",
+ Code = "2",
+ IsDeleted = 0ul,
+ Remark = "删除",
+ Sort = 100,
+ Status = 0,
+ TypeId = "8461bd1d-311b-487e-b579-d6049c6fb191",
+ Value = "删除"
+ },
+ new
+ {
+ Id = "4656bf7b-df6a-4c71-b963-18d8af3f93a7",
+ Code = "3",
+ IsDeleted = 0ul,
+ Remark = "编辑",
+ Sort = 100,
+ Status = 0,
+ TypeId = "8461bd1d-311b-487e-b579-d6049c6fb191",
+ Value = "编辑"
+ },
+ new
+ {
+ Id = "9edba767-7008-4623-8dbf-75417f1a0c82",
+ Code = "4",
+ IsDeleted = 0ul,
+ Remark = "更新",
+ Sort = 100,
+ Status = 0,
+ TypeId = "8461bd1d-311b-487e-b579-d6049c6fb191",
+ Value = "更新"
+ },
+ new
+ {
+ Id = "d1334517-ddfa-47f3-b053-88ea999babc7",
+ Code = "5",
+ IsDeleted = 0ul,
+ Remark = "查询",
+ Sort = 100,
+ Status = 0,
+ TypeId = "8461bd1d-311b-487e-b579-d6049c6fb191",
+ Value = "查询"
+ },
+ new
+ {
+ Id = "fe6e46ee-208b-446f-8aaa-05bd5eaa459b",
+ Code = "6",
+ IsDeleted = 0ul,
+ Remark = "详情",
+ Sort = 100,
+ Status = 0,
+ TypeId = "8461bd1d-311b-487e-b579-d6049c6fb191",
+ Value = "详情"
+ },
+ new
+ {
+ Id = "bf8f818f-060b-4815-8fe9-11bb356cb2e6",
+ Code = "7",
+ IsDeleted = 0ul,
+ Remark = "树",
+ Sort = 100,
+ Status = 0,
+ TypeId = "8461bd1d-311b-487e-b579-d6049c6fb191",
+ Value = "树"
+ },
+ new
+ {
+ Id = "2b9cf0b8-74ba-4b36-8504-275a2387729a",
+ Code = "8",
+ IsDeleted = 0ul,
+ Remark = "导入",
+ Sort = 100,
+ Status = 0,
+ TypeId = "8461bd1d-311b-487e-b579-d6049c6fb191",
+ Value = "导入"
+ },
+ new
+ {
+ Id = "db13458a-22b4-4f5e-b6f9-c3c9e1400909",
+ Code = "9",
+ IsDeleted = 0ul,
+ Remark = "导出",
+ Sort = 100,
+ Status = 0,
+ TypeId = "8461bd1d-311b-487e-b579-d6049c6fb191",
+ Value = "导出"
+ },
+ new
+ {
+ Id = "e02d9274-aa68-4e2c-9211-b226f1e6423e",
+ Code = "10",
+ IsDeleted = 0ul,
+ Remark = "授权",
+ Sort = 100,
+ Status = 0,
+ TypeId = "8461bd1d-311b-487e-b579-d6049c6fb191",
+ Value = "授权"
+ },
+ new
+ {
+ Id = "023244cd-eb32-4a19-bb3c-97301be1e769",
+ Code = "11",
+ IsDeleted = 0ul,
+ Remark = "强退",
+ Sort = 100,
+ Status = 0,
+ TypeId = "8461bd1d-311b-487e-b579-d6049c6fb191",
+ Value = "强退"
+ },
+ new
+ {
+ Id = "beb773cd-a22a-44e2-ac4b-5ab6f21aa3c4",
+ Code = "12",
+ IsDeleted = 0ul,
+ Remark = "清空",
+ Sort = 100,
+ Status = 0,
+ TypeId = "8461bd1d-311b-487e-b579-d6049c6fb191",
+ Value = "清空"
+ },
+ new
+ {
+ Id = "b6f55ff4-6b6a-452a-b372-32ac2f1f2b30",
+ Code = "13",
+ IsDeleted = 0ul,
+ Remark = "修改状态",
+ Sort = 100,
+ Status = 0,
+ TypeId = "8461bd1d-311b-487e-b579-d6049c6fb191",
+ Value = "修改状态"
+ },
+ new
+ {
+ Id = "f86e19a0-8ba8-4588-91f6-be2af525f490",
+ Code = "1",
+ IsDeleted = 0ul,
+ Remark = "阿里云",
+ Sort = 100,
+ Status = 0,
+ TypeId = "b924e0c1-3f23-4e37-9f27-90e945381304",
+ Value = "阿里云"
+ },
+ new
+ {
+ Id = "91c522b5-4f6f-48a5-ba79-962d56821bdc",
+ Code = "2",
+ IsDeleted = 0ul,
+ Remark = "腾讯云",
+ Sort = 100,
+ Status = 0,
+ TypeId = "b924e0c1-3f23-4e37-9f27-90e945381304",
+ Value = "腾讯云"
+ },
+ new
+ {
+ Id = "cc64be62-3213-4442-a98a-c508bc35104b",
+ Code = "3",
+ IsDeleted = 0ul,
+ Remark = "minio",
+ Sort = 100,
+ Status = 0,
+ TypeId = "b924e0c1-3f23-4e37-9f27-90e945381304",
+ Value = "minio"
+ },
+ new
+ {
+ Id = "cdc4a9ee-7436-4807-87cd-4350a72745b0",
+ Code = "4",
+ IsDeleted = 0ul,
+ Remark = "本地",
+ Sort = 100,
+ Status = 0,
+ TypeId = "b924e0c1-3f23-4e37-9f27-90e945381304",
+ Value = "本地"
+ },
+ new
+ {
+ Id = "76e885e8-1b40-45b6-bb0f-5519c6839df2",
+ Code = "1",
+ IsDeleted = 0ul,
+ Remark = "运行",
+ Sort = 100,
+ Status = 0,
+ TypeId = "0f1b8660-d932-4a53-a681-a38bebae91e0",
+ Value = "运行"
+ },
+ new
+ {
+ Id = "6e3591ec-2902-4bf3-b5a2-7ebc94ebc08f",
+ Code = "2",
+ IsDeleted = 0ul,
+ Remark = "停止",
+ Sort = 100,
+ Status = 0,
+ TypeId = "0f1b8660-d932-4a53-a681-a38bebae91e0",
+ Value = "停止"
+ });
+ });
+
+ modelBuilder.Entity("Ewide.Core.SysDictType", b =>
+ {
+ b.Property("Id")
+ .HasColumnType("varchar(36)")
+ .HasColumnName("Id")
+ .HasComment("Id主键");
+
+ b.Property("Code")
+ .HasColumnType("longtext CHARACTER SET utf8mb4")
+ .HasComment("编码");
+
+ b.Property("CreatedTime")
+ .HasColumnType("datetime")
+ .HasComment("创建时间");
+
+ b.Property("CreatedUserId")
+ .HasColumnType("varchar(36)")
+ .HasColumnName("CreatedUserId")
+ .HasComment("创建者Id");
+
+ b.Property("CreatedUserName")
+ .HasMaxLength(20)
+ .HasColumnType("varchar(20) CHARACTER SET utf8mb4")
+ .HasComment("创建者名称");
+
+ b.Property("IsDeleted")
+ .HasColumnType("bit")
+ .HasColumnName("IsDeleted")
+ .HasComment("软删除标记");
+
+ b.Property("Name")
+ .HasColumnType("longtext CHARACTER SET utf8mb4")
+ .HasComment("名称");
+
+ b.Property("Remark")
+ .HasColumnType("longtext CHARACTER SET utf8mb4")
+ .HasComment("备注");
+
+ b.Property("Sort")
+ .HasColumnType("int")
+ .HasComment("排序");
+
+ b.Property("Status")
+ .HasColumnType("int")
+ .HasComment("状态");
+
+ b.Property("UpdatedTime")
+ .HasColumnType("datetime")
+ .HasComment("更新时间");
+
+ b.Property("UpdatedUserId")
+ .HasColumnType("varchar(36)")
+ .HasColumnName("UpdatedUserId")
+ .HasComment("修改者Id");
+
+ b.Property("UpdatedUserName")
+ .HasMaxLength(20)
+ .HasColumnType("varchar(20) CHARACTER SET utf8mb4")
+ .HasComment("修改者名称");
+
+ b.HasKey("Id");
+
+ b.ToTable("sys_dict_type");
+
+ b
+ .HasComment("字典类型表");
+
+ b.HasData(
+ new
+ {
+ Id = "b0cfa91c-1189-4f39-bc5a-f035885d0604",
+ Code = "common_status",
+ IsDeleted = 0ul,
+ Name = "通用状态",
+ Remark = "通用状态",
+ Sort = 100,
+ Status = 0
+ },
+ new
+ {
+ Id = "301ed120-dfc5-4d7c-af59-b56a519581c9",
+ Code = "sex",
+ IsDeleted = 0ul,
+ Name = "性别",
+ Remark = "性别字典",
+ Sort = 100,
+ Status = 0
+ },
+ new
+ {
+ Id = "64afb5e7-9f00-4c4f-9ba6-6b41221bd862",
+ Code = "consts_type",
+ IsDeleted = 0ul,
+ Name = "常量的分类",
+ Remark = "常量的分类,用于区别一组配置",
+ Sort = 100,
+ Status = 0
+ },
+ new
+ {
+ Id = "f2f0e8bf-04da-4a2f-9fb8-1d6549227302",
+ Code = "yes_or_no",
+ IsDeleted = 0ul,
+ Name = "是否",
+ Remark = "是否",
+ Sort = 100,
+ Status = 0
+ },
+ new
+ {
+ Id = "2cecf329-cf95-44eb-a8d7-3fb77b13e093",
+ Code = "vis_type",
+ IsDeleted = 0ul,
+ Name = "访问类型",
+ Remark = "访问类型",
+ Sort = 100,
+ Status = 0
+ },
+ new
+ {
+ Id = "e973d383-c28e-42e0-9e23-5f2bd592fef5",
+ Code = "menu_type",
+ IsDeleted = 0ul,
+ Name = "菜单类型",
+ Remark = "菜单类型",
+ Sort = 100,
+ Status = 0
+ },
+ new
+ {
+ Id = "058db370-3718-42c3-8ba7-095341b1fe13",
+ Code = "send_type",
+ IsDeleted = 0ul,
+ Name = "发送类型",
+ Remark = "发送类型",
+ Sort = 100,
+ Status = 0
+ },
+ new
+ {
+ Id = "ff6202cb-25ce-4ab9-9c39-910c418b1d2d",
+ Code = "open_type",
+ IsDeleted = 0ul,
+ Name = "打开方式",
+ Remark = "打开方式",
+ Sort = 100,
+ Status = 0
+ },
+ new
+ {
+ Id = "b3235678-f7fe-442b-8fba-e792a89b78f2",
+ Code = "menu_weight",
+ IsDeleted = 0ul,
+ Name = "菜单权重",
+ Remark = "菜单权重",
+ Sort = 100,
+ Status = 0
+ },
+ new
+ {
+ Id = "a2068ed1-62a6-463c-b720-06111d994079",
+ Code = "data_scope_type",
+ IsDeleted = 0ul,
+ Name = "数据范围类型",
+ Remark = "数据范围类型",
+ Sort = 100,
+ Status = 0
+ },
+ new
+ {
+ Id = "688f9a69-ec95-46f4-87bb-e19e3cc5c7fc",
+ Code = "sms_send_source",
+ IsDeleted = 0ul,
+ Name = "短信发送来源",
+ Remark = "短信发送来源",
+ Sort = 100,
+ Status = 0
+ },
+ new
+ {
+ Id = "8461bd1d-311b-487e-b579-d6049c6fb191",
+ Code = "op_type",
+ IsDeleted = 0ul,
+ Name = "操作类型",
+ Remark = "操作类型",
+ Sort = 100,
+ Status = 0
+ },
+ new
+ {
+ Id = "b924e0c1-3f23-4e37-9f27-90e945381304",
+ Code = "file_storage_location",
+ IsDeleted = 0ul,
+ Name = "文件存储位置",
+ Remark = "文件存储位置",
+ Sort = 100,
+ Status = 0
+ },
+ new
+ {
+ Id = "0f1b8660-d932-4a53-a681-a38bebae91e0",
+ Code = "run_status",
+ IsDeleted = 0ul,
+ Name = "运行状态",
+ Remark = "定时任务运行状态",
+ Sort = 100,
+ Status = 0
+ },
+ new
+ {
+ Id = "d5b311fd-4b60-4b51-9156-b0e6d6cfa4d1",
+ Code = "notice_type",
+ IsDeleted = 0ul,
+ Name = "通知公告类型",
+ Remark = "通知公告类型",
+ Sort = 100,
+ Status = 0
+ },
+ new
+ {
+ Id = "b30937e6-03cd-4d98-a413-10b06d605e5a",
+ Code = "notice_status",
+ IsDeleted = 0ul,
+ Name = "通知公告状态",
+ Remark = "通知公告状态",
+ Sort = 100,
+ Status = 0
+ },
+ new
+ {
+ Id = "80aea9e7-ad1b-4f57-b4db-9d15813707bd",
+ Code = "yes_true_false",
+ IsDeleted = 0ul,
+ Name = "是否boolean",
+ Remark = "是否boolean",
+ Sort = 100,
+ Status = 0
+ },
+ new
+ {
+ Id = "430d0538-054a-4b37-a459-1095d0ccf4ae",
+ Code = "code_gen_create_type",
+ IsDeleted = 0ul,
+ Name = "代码生成方式",
+ Remark = "代码生成方式",
+ Sort = 100,
+ Status = 0
+ },
+ new
+ {
+ Id = "bc0dc25b-b85e-4dd1-8368-e014fe1bf30b",
+ Code = "request_type",
+ IsDeleted = 0ul,
+ Name = "请求方式",
+ Remark = "请求方式",
+ Sort = 100,
+ Status = 0
+ },
+ new
+ {
+ Id = "5bdf9b7a-a483-4b61-8e22-e2b25b255b91",
+ Code = "code_gen_effect_type",
+ IsDeleted = 0ul,
+ Name = "代码生成作用类型",
+ Remark = "代码生成作用类型",
+ Sort = 100,
+ Status = 0
+ },
+ new
+ {
+ Id = "41bc31f6-cef5-400d-b03a-bf51d27b2432",
+ Code = "code_gen_query_type",
+ IsDeleted = 0ul,
+ Name = "代码生成查询类型",
+ Remark = "代码生成查询类型",
+ Sort = 100,
+ Status = 0
+ },
+ new
+ {
+ Id = "28f653d4-e573-4f54-8e5c-4e308780145a",
+ Code = "code_gen_net_type",
+ IsDeleted = 0ul,
+ Name = "代码生成.NET类型",
+ Remark = "代码生成.NET类型",
+ Sort = 100,
+ Status = 0
+ });
+ });
+
+ modelBuilder.Entity("Ewide.Core.SysEmp", b =>
+ {
+ b.Property("Id")
+ .HasColumnType("varchar(36)")
+ .HasColumnName("Id")
+ .HasComment("用户Id");
+
+ b.Property("JobNum")
+ .HasColumnType("longtext CHARACTER SET utf8mb4")
+ .HasComment("工号");
+
+ b.Property("OrgId")
+ .HasColumnType("varchar(36)")
+ .HasColumnName("OrgId")
+ .HasComment("机构Id");
+
+ b.Property("OrgName")
+ .HasColumnType("longtext CHARACTER SET utf8mb4")
+ .HasComment("机构名称");
+
+ b.HasKey("Id");
+
+ b.ToTable("sys_emp");
+
+ b
+ .HasComment("员工表");
+
+ b.HasData(
+ new
+ {
+ Id = "d0ead3dc-5096-4e15-bc6d-f640be5301ec",
+ JobNum = "D1001",
+ OrgId = "12d888de-f55d-4c88-b0a0-7c3510664d97",
+ OrgName = "华夏集团"
+ },
+ new
+ {
+ Id = "5398fb9a-2209-4ce7-a2c1-b6a983e502b5",
+ JobNum = "D1002",
+ OrgId = "12d888de-f55d-4c88-b0a0-7c3510664d97",
+ OrgName = "华夏集团"
+ },
+ new
+ {
+ Id = "16a74726-e156-499f-9942-0e0e24ad0c3f",
+ JobNum = "D1003",
+ OrgId = "12d888de-f55d-4c88-b0a0-7c3510664d97",
+ OrgName = "华夏集团"
+ });
+ });
+
+ modelBuilder.Entity("Ewide.Core.SysEmpExtOrgPos", b =>
+ {
+ b.Property("SysEmpId")
+ .HasColumnType("varchar(36)")
+ .HasColumnName("SysEmpId")
+ .HasComment("员工Id");
+
+ b.Property("SysOrgId")
+ .HasColumnType("varchar(36)")
+ .HasColumnName("SysOrgId")
+ .HasComment("机构Id");
+
+ b.Property("SysPosId")
+ .HasColumnType("varchar(36)")
+ .HasColumnName("SysPosId")
+ .HasComment("职位Id");
+
+ b.HasKey("SysEmpId", "SysOrgId", "SysPosId");
+
+ b.HasIndex("SysOrgId");
+
+ b.HasIndex("SysPosId");
+
+ b.ToTable("sys_emp_ext_org_pos");
+
+ b
+ .HasComment("员工附属机构职位表");
+
+ b.HasData(
+ new
+ {
+ SysEmpId = "d0ead3dc-5096-4e15-bc6d-f640be5301ec",
+ SysOrgId = "12d888de-f55d-4c88-b0a0-7c3510664d97",
+ SysPosId = "269236c4-d74e-4e54-9d50-f6f61580a197"
+ },
+ new
+ {
+ SysEmpId = "d0ead3dc-5096-4e15-bc6d-f640be5301ec",
+ SysOrgId = "8a2271d6-5bda-4544-bdd3-27e53a8b418e",
+ SysPosId = "46c68a62-f119-4ff7-b621-0bbd77504538"
+ },
+ new
+ {
+ SysEmpId = "d0ead3dc-5096-4e15-bc6d-f640be5301ec",
+ SysOrgId = "127c0a5d-43ac-4370-b313-082361885aca",
+ SysPosId = "5bd8c466-2bca-4386-a551-daac78e3cee8"
+ },
+ new
+ {
+ SysEmpId = "d0ead3dc-5096-4e15-bc6d-f640be5301ec",
+ SysOrgId = "f236ab2d-e1b5-4e9d-844f-a59ec32c20e4",
+ SysPosId = "d89a3afe-e6ba-4018-bdae-3c98bb47ad66"
+ },
+ new
+ {
+ SysEmpId = "16a74726-e156-499f-9942-0e0e24ad0c3f",
+ SysOrgId = "f236ab2d-e1b5-4e9d-844f-a59ec32c20e4",
+ SysPosId = "269236c4-d74e-4e54-9d50-f6f61580a197"
+ });
+ });
+
+ modelBuilder.Entity("Ewide.Core.SysEmpPos", b =>
+ {
+ b.Property("SysEmpId")
+ .HasColumnType("varchar(36)")
+ .HasColumnName("SysEmpId")
+ .HasComment("员工Id");
+
+ b.Property("SysPosId")
+ .HasColumnType("varchar(36)")
+ .HasColumnName("SysPosId")
+ .HasComment("职位Id");
+
+ b.HasKey("SysEmpId", "SysPosId");
+
+ b.HasIndex("SysPosId");
+
+ b.ToTable("sys_emp_pos");
+
+ b
+ .HasComment("员工职位表");
+
+ b.HasData(
+ new
+ {
+ SysEmpId = "d0ead3dc-5096-4e15-bc6d-f640be5301ec",
+ SysPosId = "269236c4-d74e-4e54-9d50-f6f61580a197"
+ },
+ new
+ {
+ SysEmpId = "d0ead3dc-5096-4e15-bc6d-f640be5301ec",
+ SysPosId = "46c68a62-f119-4ff7-b621-0bbd77504538"
+ },
+ new
+ {
+ SysEmpId = "5398fb9a-2209-4ce7-a2c1-b6a983e502b5",
+ SysPosId = "5bd8c466-2bca-4386-a551-daac78e3cee8"
+ },
+ new
+ {
+ SysEmpId = "16a74726-e156-499f-9942-0e0e24ad0c3f",
+ SysPosId = "269236c4-d74e-4e54-9d50-f6f61580a197"
+ });
+ });
+
+ modelBuilder.Entity("Ewide.Core.SysFile", b =>
+ {
+ b.Property("Id")
+ .HasColumnType("varchar(36)")
+ .HasColumnName("Id")
+ .HasComment("Id主键");
+
+ b.Property("CreatedTime")
+ .HasColumnType("datetime")
+ .HasComment("创建时间");
+
+ b.Property("CreatedUserId")
+ .HasColumnType("varchar(36)")
+ .HasColumnName("CreatedUserId")
+ .HasComment("创建者Id");
+
+ b.Property("CreatedUserName")
+ .HasMaxLength(20)
+ .HasColumnType("varchar(20) CHARACTER SET utf8mb4")
+ .HasComment("创建者名称");
+
+ b.Property("FileBucket")
+ .HasColumnType("longtext CHARACTER SET utf8mb4")
+ .HasComment("文件仓库");
+
+ b.Property("FileLocation")
+ .HasColumnType("int")
+ .HasComment("文件存储位置");
+
+ b.Property("FileObjectName")
+ .HasColumnType("longtext CHARACTER SET utf8mb4")
+ .HasComment("存储到bucket的名称");
+
+ b.Property("FileOriginName")
+ .HasColumnType("longtext CHARACTER SET utf8mb4")
+ .HasComment("文件名称");
+
+ b.Property("FilePath")
+ .HasColumnType("longtext CHARACTER SET utf8mb4")
+ .HasComment("存储路径");
+
+ b.Property("FileSizeInfo")
+ .HasColumnType("longtext CHARACTER SET utf8mb4")
+ .HasComment("文件大小信息");
+
+ b.Property("FileSizeKb")
+ .HasColumnType("bigint")
+ .HasComment("文件大小kb");
+
+ b.Property("FileSuffix")
+ .HasColumnType("longtext CHARACTER SET utf8mb4")
+ .HasComment("文件后缀");
+
+ b.Property("IsDeleted")
+ .HasColumnType("bit")
+ .HasColumnName("IsDeleted")
+ .HasComment("软删除标记");
+
+ b.Property("UpdatedTime")
+ .HasColumnType("datetime")
+ .HasComment("更新时间");
+
+ b.Property("UpdatedUserId")
+ .HasColumnType("varchar(36)")
+ .HasColumnName("UpdatedUserId")
+ .HasComment("修改者Id");
+
+ b.Property("UpdatedUserName")
+ .HasMaxLength(20)
+ .HasColumnType("varchar(20) CHARACTER SET utf8mb4")
+ .HasComment("修改者名称");
+
+ b.HasKey("Id");
+
+ b.ToTable("sys_file");
+
+ b
+ .HasComment("文件信息表");
+ });
+
+ modelBuilder.Entity("Ewide.Core.SysLogAudit", b =>
+ {
+ b.Property("Id")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("int");
+
+ b.Property("ColumnName")
+ .HasColumnType("longtext CHARACTER SET utf8mb4")
+ .HasComment("列名");
+
+ b.Property("CreatedTime")
+ .HasColumnType("datetime")
+ .HasComment("操作时间");
+
+ b.Property("NewValue")
+ .HasColumnType("longtext CHARACTER SET utf8mb4")
+ .HasComment("新值");
+
+ b.Property("OldValue")
+ .HasColumnType("longtext CHARACTER SET utf8mb4")
+ .HasComment("旧值");
+
+ b.Property("Operate")
+ .HasColumnType("longtext CHARACTER SET utf8mb4")
+ .HasComment("操作方式");
+
+ b.Property("TableName")
+ .HasColumnType("longtext CHARACTER SET utf8mb4")
+ .HasComment("表名");
+
+ b.Property("UserId")
+ .HasColumnType("varchar(36)")
+ .HasColumnName("UserId")
+ .HasComment("操作人Id");
+
+ b.Property("UserName")
+ .HasColumnType("longtext CHARACTER SET utf8mb4")
+ .HasComment("操作人名称");
+
+ b.HasKey("Id");
+
+ b.ToTable("sys_log_audit");
+
+ b
+ .HasComment("审计日志表");
+ });
+
+ modelBuilder.Entity("Ewide.Core.SysLogOp", b =>
+ {
+ b.Property("Id")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("int");
+
+ b.Property("Account")
+ .HasColumnType("longtext CHARACTER SET utf8mb4")
+ .HasComment("操作人");
+
+ b.Property("Browser")
+ .HasColumnType("longtext CHARACTER SET utf8mb4")
+ .HasComment("浏览器");
+
+ b.Property("ClassName")
+ .HasColumnType("longtext CHARACTER SET utf8mb4")
+ .HasComment("类名称");
+
+ b.Property("ElapsedTime")
+ .HasColumnType("bigint")
+ .HasComment("耗时");
+
+ b.Property("Ip")
+ .HasColumnType("longtext CHARACTER SET utf8mb4")
+ .HasComment("IP");
+
+ b.Property("Location")
+ .HasColumnType("longtext CHARACTER SET utf8mb4")
+ .HasComment("地址");
+
+ b.Property("Message")
+ .HasColumnType("longtext CHARACTER SET utf8mb4")
+ .HasComment("具体消息");
+
+ b.Property("MethodName")
+ .HasColumnType("longtext CHARACTER SET utf8mb4")
+ .HasComment("方法名称");
+
+ b.Property("Name")
+ .HasColumnType("longtext CHARACTER SET utf8mb4")
+ .HasComment("名称");
+
+ b.Property("OpTime")
+ .HasColumnType("datetime")
+ .HasComment("操作时间");
+
+ b.Property("OpType")
+ .HasColumnType("int")
+ .HasComment("操作类型");
+
+ b.Property("Os")
+ .HasColumnType("longtext CHARACTER SET utf8mb4")
+ .HasComment("操作系统");
+
+ b.Property("Param")
+ .HasColumnType("longtext CHARACTER SET utf8mb4")
+ .HasComment("请求参数");
+
+ b.Property("ReqMethod")
+ .HasColumnType("longtext CHARACTER SET utf8mb4")
+ .HasComment("请求方式");
+
+ b.Property("Result")
+ .HasColumnType("longtext CHARACTER SET utf8mb4")
+ .HasComment("返回结果");
+
+ b.Property("Success")
+ .HasColumnType("tinyint(1)")
+ .HasComment("是否执行成功");
+
+ b.Property("Url")
+ .HasColumnType("longtext CHARACTER SET utf8mb4")
+ .HasComment("请求地址");
+
+ b.HasKey("Id");
+
+ b.ToTable("sys_log_op");
+
+ b
+ .HasComment("操作日志表");
+ });
+
+ modelBuilder.Entity("Ewide.Core.SysLogVis", b =>
+ {
+ b.Property("Id")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("int");
+
+ b.Property("Account")
+ .HasColumnType("longtext CHARACTER SET utf8mb4")
+ .HasComment("访问人");
+
+ b.Property("Browser")
+ .HasColumnType("longtext CHARACTER SET utf8mb4")
+ .HasComment("浏览器");
+
+ b.Property("Ip")
+ .HasColumnType("longtext CHARACTER SET utf8mb4")
+ .HasComment("IP");
+
+ b.Property("Location")
+ .HasColumnType("longtext CHARACTER SET utf8mb4")
+ .HasComment("地址");
+
+ b.Property("Message")
+ .HasColumnType("longtext CHARACTER SET utf8mb4")
+ .HasComment("具体消息");
+
+ b.Property("Name")
+ .HasColumnType("longtext CHARACTER SET utf8mb4")
+ .HasComment("名称");
+
+ b.Property("Os")
+ .HasColumnType("longtext CHARACTER SET utf8mb4")
+ .HasComment("操作系统");
+
+ b.Property("Success")
+ .HasColumnType("tinyint(1)")
+ .HasComment("是否执行成功");
+
+ b.Property("VisTime")
+ .HasColumnType("datetime")
+ .HasComment("访问时间");
+
+ b.Property("VisType")
+ .HasColumnType("int")
+ .HasComment("访问类型");
+
+ b.HasKey("Id");
+
+ b.ToTable("sys_log_vis");
+
+ b
+ .HasComment("访问日志表");
+ });
+
+ modelBuilder.Entity("Ewide.Core.SysMenu", b =>
+ {
+ b.Property("Id")
+ .HasColumnType("varchar(36)")
+ .HasColumnName("Id")
+ .HasComment("Id主键");
+
+ b.Property("Application")
+ .HasColumnType("longtext CHARACTER SET utf8mb4")
+ .HasComment("应用分类");
+
+ b.Property("Code")
+ .HasColumnType("longtext CHARACTER SET utf8mb4")
+ .HasComment("编码");
+
+ b.Property("Component")
+ .HasColumnType("longtext CHARACTER SET utf8mb4")
+ .HasComment("组件地址");
+
+ b.Property("CreatedTime")
+ .HasColumnType("datetime")
+ .HasComment("创建时间");
+
+ b.Property("CreatedUserId")
+ .HasColumnType("varchar(36)")
+ .HasColumnName("CreatedUserId")
+ .HasComment("创建者Id");
+
+ b.Property("CreatedUserName")
+ .HasMaxLength(20)
+ .HasColumnType("varchar(20) CHARACTER SET utf8mb4")
+ .HasComment("创建者名称");
+
+ b.Property("Icon")
+ .HasColumnType("longtext CHARACTER SET utf8mb4")
+ .HasComment("图标");
+
+ b.Property("IsDeleted")
+ .HasColumnType("bit")
+ .HasColumnName("IsDeleted")
+ .HasComment("软删除标记");
+
+ b.Property("Link")
+ .HasColumnType("longtext CHARACTER SET utf8mb4")
+ .HasComment("内链地址");
+
+ b.Property("Name")
+ .HasColumnType("longtext CHARACTER SET utf8mb4")
+ .HasComment("名称");
+
+ b.Property("OpenType")
+ .HasColumnType("int")
+ .HasComment("打开方式");
+
+ b.Property("Permission")
+ .HasColumnType("longtext CHARACTER SET utf8mb4")
+ .HasComment("权限标识");
+
+ b.Property("Pid")
+ .HasColumnType("varchar(36)")
+ .HasColumnName("Pid")
+ .HasComment("父Id");
+
+ b.Property("Pids")
+ .HasColumnType("longtext CHARACTER SET utf8mb4")
+ .HasComment("父Ids");
+
+ b.Property("Redirect")
+ .HasColumnType("longtext CHARACTER SET utf8mb4")
+ .HasComment("重定向地址");
+
+ b.Property("Remark")
+ .HasColumnType("longtext CHARACTER SET utf8mb4")
+ .HasComment("备注");
+
+ b.Property("Router")
+ .HasColumnType("longtext CHARACTER SET utf8mb4")
+ .HasComment("路由地址");
+
+ b.Property("Sort")
+ .HasColumnType("int")
+ .HasComment("排序");
+
+ b.Property("Status")
+ .HasColumnType("int");
+
+ b.Property("Type")
+ .HasColumnType("int")
+ .HasComment("菜单类型");
+
+ b.Property("UnbindParent")
+ .HasColumnType("int")
+ .HasComment("不关联菜单显示");
+
+ b.Property