package com.ruoyi.web.modules.role.mapper;

import java.util.List;
import org.apache.ibatis.annotations.Param;
import com.ruoyi.web.modules.role.domain.MerchantRoleQuery;
import com.ruoyi.web.modules.role.domain.MerchantRoleRow;

/**
 * 角色管理 Mapper
 */
public interface MerchantRoleMapper
{
    List<MerchantRoleRow> selectList(MerchantRoleQuery query);

    MerchantRoleRow selectByRoleId(@Param("shopId") Long shopId, @Param("roleId") Long roleId);

    int countRoleNameInShop(@Param("shopId") Long shopId, @Param("roleName") String roleName,
            @Param("excludeRoleId") Long excludeRoleId);

    int countEmployeeBindByRole(@Param("shopId") Long shopId, @Param("roleId") Long roleId);

    List<Long> selectMenuIdsByRoleId(@Param("roleId") Long roleId);

    int insertShopRole(@Param("shopId") Long shopId, @Param("roleId") Long roleId);

    int deleteShopRole(@Param("shopId") Long shopId, @Param("roleId") Long roleId);
}
