package com.qmth.teachcloud.common.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.qmth.teachcloud.common.bean.dto.MenuDto;
import com.qmth.teachcloud.common.bean.result.MenuResult;
import com.qmth.teachcloud.common.entity.SysRole;
import com.qmth.teachcloud.common.entity.SysUserRole;

import java.util.List;

/**
 * <p>
 * 用户和角色关联表 服务类
 * </p>
 *
 * @author xf
 * @since 2021-03-23
 */
public interface SysUserRoleService extends IService<SysUserRole> {

    List<SysUserRole> listByRoleId(Long id);

    List<SysRole> listRoleByUserId(Long id);

    void removeByUserId(Long id);

    MenuResult listByUserId();

    void rebindPrivileges(Long id);
}
