105040 Fix 初始化表错误
This commit is contained in:
parent
1f0cd62488
commit
97bc99e853
|
|
@ -3,7 +3,7 @@ using SqlSugar;
|
|||
|
||||
namespace LFlow.Permission.Model
|
||||
{
|
||||
[SugarTable("T_U_USERINFO")]
|
||||
[SugarTable("T_U_PERMISSION")]
|
||||
public class PermissionModel : IDataModel
|
||||
{
|
||||
[SugarColumn(IsPrimaryKey = true)]
|
||||
|
|
@ -20,7 +20,7 @@ namespace LFlow.Permission.Model
|
|||
/// <summary>
|
||||
/// 权限对应程序ID
|
||||
/// </summary>
|
||||
public string PermissionProgID
|
||||
public string ProgID
|
||||
{
|
||||
get;
|
||||
set;
|
||||
|
|
@ -28,7 +28,7 @@ namespace LFlow.Permission.Model
|
|||
/// <summary>
|
||||
/// 权限对应程序名称
|
||||
/// </summary>
|
||||
public string PermissionProgName
|
||||
public string ProgName
|
||||
{
|
||||
get;
|
||||
set;
|
||||
|
|
|
|||
|
|
@ -1,8 +1,9 @@
|
|||
using System.Reflection;
|
||||
using LFlow.Base.Interfaces;
|
||||
using LFlow.Base.Interfaces;
|
||||
using LFlow.Base.Utils;
|
||||
using LFlow.Permission.Model;
|
||||
using Microsoft.Extensions.DependencyInjection;
|
||||
using Serilog;
|
||||
using System.Reflection;
|
||||
|
||||
namespace LFlow.Permission;
|
||||
|
||||
|
|
@ -11,7 +12,7 @@ public class PermissionModule : IModule
|
|||
|
||||
public void ConfigureModule(IServiceCollection services)
|
||||
{
|
||||
CodeFirst.AddType(typeof(PermissionModule));
|
||||
CodeFirst.AddType(typeof(PermissionModel));
|
||||
var assembly = Assembly.GetAssembly(typeof(PermissionModule))!;
|
||||
var types = assembly.GetTypes().ToList();
|
||||
RegisterModule.RegisterAllService(types, services);
|
||||
|
|
|
|||
|
|
@ -73,7 +73,7 @@ namespace LFlow.Permission.Service
|
|||
{
|
||||
return Task.FromResult(repo.Search(new PermissionModel
|
||||
{
|
||||
PermissionProgID = progID
|
||||
ProgID = progID
|
||||
}).Adapt<List<PermissionDto>>());
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@ using SqlSugar;
|
|||
|
||||
namespace LFlow.Role.Model
|
||||
{
|
||||
[SugarTable("T_U_USERINFO")]
|
||||
[SugarTable("T_U_ROLE")]
|
||||
public class RoleModel : IDataModel
|
||||
{
|
||||
[SugarColumn(IsPrimaryKey = true)]
|
||||
|
|
|
|||
|
|
@ -12,6 +12,7 @@
|
|||
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\LFlow.Base\LFlow.Base.csproj" />
|
||||
<ProjectReference Include="..\LFlow.Role\LFlow.Role.csproj" />
|
||||
</ItemGroup>
|
||||
|
||||
</Project>
|
||||
|
|
|
|||
|
|
@ -1,4 +1,5 @@
|
|||
using LFlow.Base.Interfaces;
|
||||
using LFlow.Role.Model;
|
||||
|
||||
namespace LFlow.UserManagement.Model
|
||||
{
|
||||
|
|
@ -23,5 +24,10 @@ namespace LFlow.UserManagement.Model
|
|||
{
|
||||
get; set;
|
||||
}
|
||||
|
||||
public RoleDto? UserRole
|
||||
{
|
||||
get; set;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue