RoleDictService.java 998 Bytes
package com.meishu.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.meishu.dto.role.AddPermissionDTO;
import com.meishu.dto.role.DeletePermissionDTO;
import com.meishu.dto.role.GetRoleTeachersDTO;
import com.meishu.dto.role.RoleTeacherDTO;
import com.meishu.model.RoleDictDO;
import com.baomidou.mybatisplus.extension.service.IService;
import com.meishu.vo.role.GetAllRolesVO;
import com.meishu.vo.role.GetRoleTeachersVO;

import java.util.List;

/**
 * <p>
 * 角色表 服务类
 * </p>
 *
 * @author Tuyp
 * @since 2021-04-26
 */
public interface RoleDictService extends IService<RoleDictDO> {

    List<GetAllRolesVO> getAllRoles();

    IPage<GetRoleTeachersVO> getRoleTeachers(GetRoleTeachersDTO getRoleTeachersDTO);

    String removeTeacher(RoleTeacherDTO roleTeacherDTO);

    String roleTeacher(RoleTeacherDTO roleTeacherDTO);

    String addPermission(AddPermissionDTO addPermissionDTO);

    String deletePermission(DeletePermissionDTO deletePermissionDTO);

}