feat(auth): add user profile to auth token response
- Add jwt configuration in application.yaml - Include user profile information in authentication response - Implement user profile response DTO with role mapping - Fix typo in UserProfileService interface and implementation class names - Add pagination support for user list endpoint - Configure MyBatis Plus interceptor for MariaDB - Add MyBatis Plus JSQLParser dependency - Implement page-based user retrieval with role information - Remove obsolete MyBatis configuration class - Update controller to use paginated user data - Replace manual user conversion with constructor mapping - Rename UserProfileServcie to UserProfileService consistently
This commit is contained in:
@@ -2,6 +2,7 @@ package cn.nopj.chaos_api.service;
|
||||
|
||||
import cn.nopj.chaos_api.dto.request.UserProfileUpdateRequest;
|
||||
import cn.nopj.chaos_api.dto.response.UserProfileResponse;
|
||||
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||
import jakarta.validation.constraints.NotBlank;
|
||||
import jakarta.validation.constraints.Pattern;
|
||||
|
||||
@@ -12,7 +13,7 @@ import java.util.List;
|
||||
*
|
||||
* @author nopj
|
||||
*/
|
||||
public interface UserProfileServcie {
|
||||
public interface UserProfileService {
|
||||
|
||||
/**
|
||||
* 设置用户密码
|
||||
@@ -80,4 +81,13 @@ public interface UserProfileServcie {
|
||||
* @return 处理结果
|
||||
*/
|
||||
UserProfileResponse updateUserProfile(String username, UserProfileUpdateRequest request);
|
||||
|
||||
/**
|
||||
* 获取所有用户信息
|
||||
*
|
||||
* @param pageNum 页码
|
||||
* @param pageSize 页大小
|
||||
* @return 所有用户信息
|
||||
*/
|
||||
IPage<UserProfileResponse> getAllUsers(Integer pageNum, Integer pageSize);
|
||||
}
|
||||
Reference in New Issue
Block a user