forked from luyan/epmet-cloud-lingshan
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
48 lines
1008 B
48 lines
1008 B
/**
|
|
* Copyright (c) 2018 人人开源 All rights reserved.
|
|
*
|
|
* https://www.renren.io
|
|
*
|
|
* 版权所有,侵权必究!
|
|
*/
|
|
|
|
package com.epmet.service;
|
|
|
|
import com.epmet.commons.mybatis.service.BaseService;
|
|
import com.epmet.entity.SysRoleUserEntity;
|
|
|
|
import java.util.List;
|
|
|
|
/**
|
|
* 角色用户关系
|
|
*
|
|
* @author Mark sunlightcs@gmail.com
|
|
* @since 1.0.0
|
|
*/
|
|
public interface SysRoleUserService extends BaseService<SysRoleUserEntity> {
|
|
|
|
/**
|
|
* 保存或修改
|
|
* @param userId 用户ID
|
|
* @param roleIdList 角色ID列表
|
|
*/
|
|
void saveOrUpdate(Long userId, List<Long> roleIdList);
|
|
|
|
/**
|
|
* 根据角色ids,删除角色用户关系
|
|
* @param roleIds 角色ids
|
|
*/
|
|
void deleteByRoleIds(Long[] roleIds);
|
|
|
|
/**
|
|
* 根据用户id,删除角色用户关系
|
|
* @param userId 用户id
|
|
*/
|
|
void deleteByUserId(Long userId);
|
|
|
|
/**
|
|
* 角色ID列表
|
|
* @param userId 用户ID
|
|
*/
|
|
List<Long> getRoleIdList(Long userId);
|
|
}
|
|
|