wuchimedes | a1bf278 | 2025-03-27 15:08:54 +0800 | [diff] [blame] | 1 | package com.example.g8backend.mapper; |
| 2 | |
| 3 | import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
| 4 | import com.example.g8backend.entity.User; |
| 5 | import org.apache.ibatis.annotations.Mapper; |
| 6 | import org.apache.ibatis.annotations.Param; |
| 7 | |
| 8 | @Mapper |
| 9 | public interface UserMapper extends BaseMapper<User> { |
wuchimedes | 079c163 | 2025-04-02 22:01:20 +0800 | [diff] [blame] | 10 | User getUserByName(@Param("userName") String userName); |
| 11 | User getUserByEmail(@Param("email") String email); |
wuchimedes | a1bf278 | 2025-03-27 15:08:54 +0800 | [diff] [blame] | 12 | } |