feature:区域权限实体数据
This commit is contained in:
30
Api/Ewide.Core/Entity/SysRoleArea.cs
Normal file
30
Api/Ewide.Core/Entity/SysRoleArea.cs
Normal file
@@ -0,0 +1,30 @@
|
|||||||
|
using Furion.DatabaseAccessor;
|
||||||
|
using Microsoft.EntityFrameworkCore;
|
||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.ComponentModel.DataAnnotations;
|
||||||
|
using System.ComponentModel.DataAnnotations.Schema;
|
||||||
|
using System.Linq;
|
||||||
|
using System.Text;
|
||||||
|
using System.Threading.Tasks;
|
||||||
|
|
||||||
|
namespace Ewide.Core.Entity
|
||||||
|
{
|
||||||
|
[Table("sys_role_area")]
|
||||||
|
[Comment("角色区域自定义数据")]
|
||||||
|
public class SysRoleArea: IEntity
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// 角色Id
|
||||||
|
/// </summary>
|
||||||
|
[Comment("角色Id")]
|
||||||
|
[Column("SysRoleId", TypeName = "varchar(36)")]
|
||||||
|
public string SysRoleId { get; set; }
|
||||||
|
public SysRole SysRole { get; set; }
|
||||||
|
[Comment("系统使用的区域代码")]
|
||||||
|
[MaxLength(10)]
|
||||||
|
public string AreaNumberCode { get; set; }
|
||||||
|
public AreaNumber AreaNumber { get; set; }
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
29
Api/Ewide.Core/Entity/SysUserArea.cs
Normal file
29
Api/Ewide.Core/Entity/SysUserArea.cs
Normal file
@@ -0,0 +1,29 @@
|
|||||||
|
using Furion.DatabaseAccessor;
|
||||||
|
using Microsoft.EntityFrameworkCore;
|
||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.ComponentModel.DataAnnotations;
|
||||||
|
using System.ComponentModel.DataAnnotations.Schema;
|
||||||
|
using System.Linq;
|
||||||
|
using System.Text;
|
||||||
|
using System.Threading.Tasks;
|
||||||
|
|
||||||
|
namespace Ewide.Core.Entity
|
||||||
|
{
|
||||||
|
[Table("sys_user_area")]
|
||||||
|
[Comment("用户授权区域信息")]
|
||||||
|
public class SysUserArea: IEntity
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// 用户Id
|
||||||
|
/// </summary>
|
||||||
|
[Comment("用户Id")]
|
||||||
|
[Column("SysUserId", TypeName = "varchar(36)")]
|
||||||
|
public string SysUserId { get; set; }
|
||||||
|
public SysUser SysUser { get; set; }
|
||||||
|
[Comment("系统使用的区域代码")]
|
||||||
|
[MaxLength(10)]
|
||||||
|
public string AreaNumberCode { get; set; }
|
||||||
|
public AreaNumber AreaNumber { get; set; }
|
||||||
|
}
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user