package com.lxzn.ucenter.service;
|
|
import com.baomidou.mybatisplus.extension.service.IService;
|
import com.lxzn.framework.domain.ucenter.UserRole;
|
|
import java.util.List;
|
|
public interface IUserRoleService extends IService<UserRole> {
|
/**
|
* 根据菜用户id删除用户角色权限
|
* @param userId
|
* @return
|
*/
|
boolean deleteByUserId(String userId);
|
|
/**
|
* 查询唯一
|
* @param userId
|
* @param roleId
|
* @return
|
*/
|
UserRole getByUserIdAndRoleId(String userId, String roleId);
|
|
/**
|
* 移除一组数据
|
* @param list
|
* @return
|
*/
|
boolean removeByCollection(List<UserRole> list);
|
|
/**
|
* 获取角色的关联数据
|
* @param roleId
|
* @return
|
*/
|
List<UserRole> findByRoleId(String roleId);
|
}
|