提交rbac
提交设置右键错位的bug
This commit is contained in:
55
DH.RBAC/Models/Sys/SysRole.cs
Normal file
55
DH.RBAC/Models/Sys/SysRole.cs
Normal file
@ -0,0 +1,55 @@
|
||||
using SqlSugar;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace DH.RBAC.Model.Sys
|
||||
{
|
||||
[SugarTable("Sys_Role")]
|
||||
public partial class SysRole : BaseModelEntity
|
||||
{
|
||||
[SugarColumn(ColumnName = "Id", IsPrimaryKey = true)]
|
||||
public string Id { get; set; }
|
||||
|
||||
[SugarColumn(ColumnName = "OrganizeId")]
|
||||
public string OrganizeId { get; set; }
|
||||
|
||||
[SugarColumn(ColumnName = "EnCode")]
|
||||
public string EnCode { get; set; }
|
||||
|
||||
[SugarColumn(ColumnName = "Type")]
|
||||
public int? Type { get; set; }
|
||||
|
||||
[SugarColumn(ColumnName = "Name")]
|
||||
public string Name { get; set; }
|
||||
|
||||
|
||||
[SugarColumn(ColumnName = "AllowEdit")]
|
||||
public string AllowEdit { get; set; }
|
||||
|
||||
|
||||
[SugarColumn(ColumnName = "Remark")]
|
||||
public string Remark { get; set; }
|
||||
|
||||
[SugarColumn(ColumnName = "SortCode")]
|
||||
public int? SortCode { get; set; }
|
||||
|
||||
|
||||
[Navigate(NavigateType.OneToOne, nameof(OrganizeId), nameof(SysOrganize.Id))]
|
||||
public SysOrganize Organize { get; set; }
|
||||
|
||||
|
||||
[SugarColumn(IsIgnore = true)]
|
||||
public string DeptName
|
||||
{
|
||||
get
|
||||
{
|
||||
if (Organize == null)
|
||||
return "";
|
||||
return Organize.FullName;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user