forked from makefriends/dating
34 lines
703 B
Java
34 lines
703 B
Java
package com.bao.dating.mapper;
|
|
|
|
import com.bao.dating.pojo.dto.UserInfoUpdateDTO;
|
|
import com.bao.dating.pojo.entity.Post;
|
|
import com.bao.dating.pojo.entity.User;
|
|
import org.apache.ibatis.annotations.Mapper;
|
|
|
|
@Mapper
|
|
public interface UserMapper {
|
|
|
|
/**
|
|
* 根据用户名查询用户
|
|
*
|
|
* @param username 用户名
|
|
* @return 用户
|
|
*/
|
|
User getByUsername(String username);
|
|
|
|
/**
|
|
* 根据用户id查询用户信息
|
|
*
|
|
* @param userid 用户id
|
|
* @return 用户
|
|
*/
|
|
User selectByUserId(Long userid);
|
|
|
|
/**
|
|
* 更新用户信息
|
|
* @param userInfoUpdateDTO
|
|
*/
|
|
void updateUserInfoByUserId(UserInfoUpdateDTO userInfoUpdateDTO);
|
|
|
|
}
|