package com.lxzn.nc.service;
|
|
import com.baomidou.mybatisplus.extension.service.IService;
|
import com.lxzn.framework.domain.nc.ComponentPermission;
|
import com.lxzn.framework.domain.ucenter.User;
|
import com.lxzn.framework.domain.ucenter.ext.UserDepartExt;
|
|
import java.util.List;
|
|
public interface IComponentPermissionService extends IService<ComponentPermission> {
|
|
/**
|
* 根据部件编号和人员编号查找部件权限
|
* @param componentId
|
* @param userId
|
* @return
|
*/
|
ComponentPermission getByComponentIdAndUserId(String componentId, String userId);
|
|
|
/**
|
* 根据部件id删除用户权限
|
* @param componentId
|
* @return
|
*/
|
boolean deleteByComponentId(String componentId);
|
|
/**
|
* 获取已分配的用户
|
* @param componentId
|
* @return
|
*/
|
List<UserDepartExt> getUserPermsByComponentId(String componentId);
|
|
/**
|
* 获取未分配的用户
|
* @param componentId
|
* @return
|
*/
|
List<User> getUserNonPermsByComponentId(String componentId);
|
|
/**
|
* 移除用户权限
|
* @param permissionList
|
* @return
|
*/
|
boolean removeByCollection(List<ComponentPermission> permissionList);
|
|
/**
|
* 获取部件用户权限
|
* @param componentId
|
* @return
|
*/
|
List<ComponentPermission> getByComponentId(String componentId);
|
|
/**
|
* 获取一组部件和用户的权限数据
|
* @param componentIds
|
* @param userIds
|
* @return
|
*/
|
List<ComponentPermission> getByComponentIdsAndUserIds(List<String> componentIds, List<String> userIds);
|
}
|