package com.github.wxiaoqi.security.admin.mapper;

import com.github.wxiaoqi.security.admin.dto.BaseUserMemberVO;
import com.github.wxiaoqi.security.admin.entity.BaseUserMember;
import com.github.wxiaoqi.security.admin.vo.UserMemberVo;
import org.apache.ibatis.annotations.Param;
import tk.mybatis.mapper.common.Mapper;

import java.util.List;

/**
 * 用户会员表
 * 
 * @author zjw
 * @email nishijjo@qq.com
 * @date 2019-06-18 19:38:56
 */
public interface BaseUserMemberMapper extends Mapper<BaseUserMember> {

    //获取用户会员信息
    public UserMemberVo getInfoByUserId(@Param("userId")Integer userId);

    BaseUserMemberVO getBaseUserMemberVOByUserId(@Param("userId") Integer userId);

    List<BaseUserMember> selectAllChildrenByLevel(@Param("userId") Integer userId, @Param("level") Integer level);
}
