yl-backend/src/main/java/com/guwan/backend/service/UserService.java

29 lines
720 B
Java
Raw Normal View History

2024-12-06 20:36:28 +08:00
package com.guwan.backend.service;
2024-12-07 16:21:40 +08:00
import com.guwan.backend.dto.user.LoginDto;
2024-12-06 20:36:28 +08:00
import com.guwan.backend.dto.user.RegisterDTO;
import com.guwan.backend.dto.user.UserDTO;
public interface UserService {
2024-12-07 14:43:43 +08:00
/**
* 用户注册
* @param registerDTO
* @return
*/
2024-12-06 20:36:28 +08:00
UserDTO register(RegisterDTO registerDTO);
2024-12-07 16:21:40 +08:00
/**
* 登录
* @param request
* @return
*/
UserDTO login(LoginDto request);
2024-12-06 20:36:28 +08:00
UserDTO getCurrentUser();
Long getCurrentUserId();
UserDTO getUserById(Long id);
UserDTO updateUserInfo(UserDTO userDTO);
void changePassword(String oldPassword, String newPassword);
void resetPassword(String email);
public String refreshToken(String token);
2024-12-07 19:41:47 +08:00
}