package org.ta.authserver.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.springframework.security.core.userdetails.UserDetails;
import org.ta.commoncore.model.User;

import java.util.List;

@Mapper
public interface UserMapper extends BaseMapper<User>{

    @Select("select * from sys_user where username = #{username}")
    List<User> selectByUsername(String username);
}
