初始化项目
This commit is contained in:
1 parent
45a1702948
commit
934b8aad40
155 files changed
+2649
-68
No files matched your search
@@ -0,0 +1,43 @@
|
||||
package com.bycrm.service;
|
||||
|
||||
import com.bycrm.dto.ChangePasswordDTO;
|
||||
import com.bycrm.dto.LoginDTO;
|
||||
import com.bycrm.dto.ResetPasswordDTO;
|
||||
import com.bycrm.entity.User;
|
||||
import com.bycrm.vo.UserInfoVO;
|
||||
|
||||
/**
|
||||
* 用户服务接口
|
||||
*/
|
||||
public interface UserService {
|
||||
|
||||
/**
|
||||
* 用户登录
|
||||
*/
|
||||
String login(LoginDTO loginDTO);
|
||||
|
||||
/**
|
||||
* 根据 ID 获取用户信息
|
||||
*/
|
||||
User getUserById(Long id);
|
||||
|
||||
/**
|
||||
* 根据用户名获取用户信息
|
||||
*/
|
||||
User getUserByUsername(String username);
|
||||
|
||||
/**
|
||||
* 获取当前登录用户信息
|
||||
*/
|
||||
UserInfoVO getCurrentUser(String token);
|
||||
|
||||
/**
|
||||
* 修改密码
|
||||
*/
|
||||
void changePassword(Long userId, ChangePasswordDTO dto);
|
||||
|
||||
/**
|
||||
* 重置密码(管理员功能)
|
||||
*/
|
||||
void resetPassword(ResetPasswordDTO dto);
|
||||
}
|
||||
Reference in new issue
Block a user