package com.kxs.user.biz.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.kxs.user.api.model.KxsUser;
import com.kxs.user.api.vo.kxsapp.user.RealUserInfoVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * 用户表(KxsSecurityUser)表数据库访问层
 *
 * @author 快秃顶的码农
 * @since 2023-12-05 13:50:09
 */
@Mapper
public interface KxsUserMapper extends BaseMapper<KxsUser> {

    /**
     * 实名认证查看
     *
     * @param userId 用户ID
     * @return {@link RealUserInfoVO}
     */
    RealUserInfoVO findUserRealBankInfo(Integer userId);

    /**
     * 选择最高级别
     *
     * @param userId 编号
     * @return {@link Integer}
     */
    Integer selectMaxLevel(@Param("userId") Long userId);
}

