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

import java.util.List;
import org.apache.ibatis.annotations.Param;
import com.ruoyi.web.modules.merchant.vo.MerchantAdminUserOptionVO;
import com.ruoyi.web.modules.merchant.vo.MerchantMemberOptionVO;

/**
 * 商户入驻绑定查询
 */
public interface MerchantBindMapper
{
    List<MerchantAdminUserOptionVO> selectAdminUsersByKeyword(@Param("keyword") String keyword,
            @Param("roleKey") String roleKey);

    List<MerchantMemberOptionVO> selectMembersByKeyword(
            @Param("keyword") String keyword, @Param("roleKey") String roleKey);

    int countUserHasRole(@Param("userId") Long userId, @Param("roleKey") String roleKey);
}
