105040 Fix 初始化表错误

This commit is contained in:
lihanbo 2024-11-01 17:11:44 +08:00
parent 1f0cd62488
commit 97bc99e853
6 changed files with 16 additions and 8 deletions

View File

@ -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;

View File

@ -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);

View File

@ -73,7 +73,7 @@ namespace LFlow.Permission.Service
{
return Task.FromResult(repo.Search(new PermissionModel
{
PermissionProgID = progID
ProgID = progID
}).Adapt<List<PermissionDto>>());
}

View File

@ -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)]

View File

@ -12,6 +12,7 @@
<ItemGroup>
<ProjectReference Include="..\LFlow.Base\LFlow.Base.csproj" />
<ProjectReference Include="..\LFlow.Role\LFlow.Role.csproj" />
</ItemGroup>
</Project>

View File

@ -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;
}
}
}