package com.moral.api.service;
import com.moral.api.entity.ManageRole;
import com.baomidou.mybatisplus.extension.service.IService;
import org.springframework.transaction.annotation.Transactional;
import java.util.List;
import java.util.Map;
/**
*
* 后台角色表 服务类
*
*
* @author moral
* @since 2021-03-09
*/
@Transactional
public interface ManageRoleService extends IService {
/**
* @Description: 分页查询角色
* @Param: [Map]
* @return: Map
* @Author: 李子杰
* @Date: 2021/7/26
*/
Map getAllWithPagingQuery(Map map);
/**
* @Description: 添加角色
* @Param: [ManageRole, List]
* @return: Map
* @Author: 李子杰
* @Date: 2021/7/26
*/
@Transactional
Map insertOne(ManageRole manageRole,List list);
/**
* @Description: 更新角色
* @Param: [Map]
* @return: Map
* @Author: 李子杰
* @Date: 2021/7/26
*/
@Transactional
Map updateManageRole(Map map);
/**
* @Description: 模糊查询角色
* @Param: [Map]
* @return: Map
* @Author: 李子杰
* @Date: 2021/7/26
*/
Map getManageRoleByNameFuzzy(Map map);
/**
* @Description: 删除角色
* @Param: [Map]
* @return: Map
* @Author: 李子杰
* @Date: 2021/7/26
*/
@Transactional
Map deleteManageRole(Map map);
/**
* @Description: 通过用户id查询角色查询角色
* @Param: [Map]
* @return: Map
* @Author: 李子杰
* @Date: 2021/7/26
*/
ManageRole getRoleByAccountId(Integer accountId);
}