22301115 | cf6dba2 | 2025-03-25 19:06:21 +0800 | [diff] [blame] | 1 | package com.example.myproject.service; |
| 2 | |
| 3 | |
| 4 | |
| 5 | import com.baomidou.mybatisplus.extension.service.IService; |
| 6 | |
| 7 | import com.example.myproject.entity.User; |
| 8 | |
| 9 | public interface UserService extends IService<User> { |
| 10 | User loginService(String username, String password); |
| 11 | |
| 12 | |
| 13 | boolean preRegisterUser(User user); |
| 14 | |
| 15 | |
| 16 | boolean verifyEmail(String email, String token); |
| 17 | |
| 18 | |
| 19 | boolean checkEmailExists(String email); |
| 20 | |
| 21 | boolean checkPassword(Long userId, String rawPassword); |
| 22 | |
| 23 | |
| 24 | } |