mirror of
https://gitee.com/dotnetchina/OpenAuth.Net.git
synced 2026-03-27 19:53:25 +08:00
统一处理多对多表映射
This commit is contained in:
@@ -1,14 +0,0 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace OpenAuth.Domain.Interface
|
||||
{
|
||||
public interface IUserModuleRepository : IRepository<UserModule>
|
||||
{
|
||||
void DeleteByUser(params int[] userIds);
|
||||
void AddUserModule(int userId, params int[] moduleIds);
|
||||
}
|
||||
}
|
||||
@@ -11,12 +11,5 @@ namespace OpenAuth.Domain.Interface
|
||||
int GetUserCntInOrgs(params int[] orgIds);
|
||||
IEnumerable<User> LoadInOrgs(int pageindex, int pagesize, params int[] orgIds);
|
||||
|
||||
void SetOrg(int userId, params int[] orgIds);
|
||||
|
||||
/// <summary>
|
||||
/// ɾ<><C9BE><EFBFBD>û<EFBFBD><C3BB><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>û<EFBFBD><C3BB><EFBFBD><EFBFBD>ص<EFBFBD><D8B5><EFBFBD>Ϣ
|
||||
/// </summary>
|
||||
void Delete(int id);
|
||||
|
||||
}
|
||||
}
|
||||
@@ -1,14 +0,0 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace OpenAuth.Domain.Interface
|
||||
{
|
||||
public interface IUserRoleRepository : IRepository<UserRole>
|
||||
{
|
||||
void DeleteByUser(params int[] userIds);
|
||||
void AddUserRole(int userId, params int[] roleIds);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user