package org.ta.authserver.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.ta.commoncore.model.User;

import java.util.List;

@Mapper
public interface UserMapper extends BaseMapper<User> {
    // 根据用户名查找用户
    @Select("SELECT * FROM `user` WHERE `username` = #{username};")
    List<User> selectByUsername(String username);
}
