mirror of
https://gitee.com/dotnetchina/OpenAuth.Net.git
synced 2025-12-26 22:25:39 +08:00
添加角色处理
This commit is contained in:
16
OpenAuth.Domain/Interface/IRoleRepository.cs
Normal file
16
OpenAuth.Domain/Interface/IRoleRepository.cs
Normal file
@@ -0,0 +1,16 @@
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
|
||||
namespace OpenAuth.Domain.Interface
|
||||
{
|
||||
public interface IRoleRepository :IRepository<Role>
|
||||
{
|
||||
IEnumerable<Role> LoadRoles(int pageindex, int pagesize);
|
||||
|
||||
int GetRoleCntInOrgs(params int[] orgIds);
|
||||
IEnumerable<Role> LoadInOrgs(int pageindex, int pagesize, params int[] orgIds);
|
||||
|
||||
void Delete(int id);
|
||||
|
||||
}
|
||||
}
|
||||
@@ -44,6 +44,7 @@
|
||||
<ItemGroup>
|
||||
<Compile Include="Interface\IOrgRepository.cs" />
|
||||
<Compile Include="Interface\IRepository.cs" />
|
||||
<Compile Include="Interface\IRoleRepository.cs" />
|
||||
<Compile Include="Interface\IUserRepository.cs" />
|
||||
<Compile Include="Module.cs" />
|
||||
<Compile Include="ModuleElement.cs" />
|
||||
|
||||
@@ -17,7 +17,7 @@ namespace OpenAuth.Domain
|
||||
public int Id { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 组织名称
|
||||
/// 名称
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
public string Name { get; set; }
|
||||
@@ -47,16 +47,22 @@ namespace OpenAuth.Domain
|
||||
public string CreateId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 创建人所属部门流水号
|
||||
/// 所属部门流水号
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
public int CreateOrgId { get; set; }
|
||||
public int OrgId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 创建人所属部门节点语义ID
|
||||
/// 所属部门节点语义ID
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
public string CreateOrgCascadeId { get; set; }
|
||||
public string OrgCascadeId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 所属部门名称
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
public string OrgName { get; set; }
|
||||
|
||||
|
||||
public Role()
|
||||
@@ -67,8 +73,9 @@ namespace OpenAuth.Domain
|
||||
this.Type= 0;
|
||||
this.CreateTime= DateTime.Now;
|
||||
this.CreateId= string.Empty;
|
||||
this.CreateOrgId= 0;
|
||||
this.CreateOrgCascadeId= string.Empty;
|
||||
this.OrgId= 0;
|
||||
this.OrgCascadeId= string.Empty;
|
||||
this.OrgName= string.Empty;
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user