package com.cyksj.mapper.manage.cms;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.cyksj.model.entity.CmsRole;
import com.cyksj.model.entity.CmsUser;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/*
 *项目名: netflix
 *文件名: CmsRoleMapper
 *创建者: JavaZou
 *创建时间:2023/1/11 15:11
 */
public interface CmsRoleMapper extends BaseMapper<CmsRole> {
	List<CmsRole> getCmsRolesByUserId(Long userId);

	List<CmsUser> getAllCmsUserByRoleId(Long roleId);

	List<String> getAllMenusByRoleIds(@Param("list") String[] roleIds);

	List<CmsRole> getCmsRolesByAccount(Long account);
}
