package com.sf.mapper;


import com.sf.entity.UserProfile;
import org.apache.ibatis.annotations.Select;

/**
 * @author WanJl
 * @version 1.0
 * @title UserProfileMapper
 * @description
 * @create 2025/11/9
 */
public interface UserProfileMapper {
    /**
     * 根据用户id查询用户详细信息
     * @param userId
     * @return
     */
    @Select("SELECT up.* from `user_profile` up WHERE user_id=#{userId}")
    UserProfile selectByUserId(int userId);

}
