feat: 添加用户管理模块 + username/email 唯一约束
- 新增 UserController,实现完整的用户 CRUD 接口 - 扩展 SysUserService 接口和实现类 - 为 sys_user 表添加 username 和 email 唯一约束 - 添加 phone、role_type、status 索引优化查询性能 - 修复 Result 类方法名(failed -> error) 相关接口: - GET /api/users - 获取用户列表(分页) - GET /api/users/:id - 获取用户详情 - POST /api/users - 创建用户 - PUT /api/users/:id - 更新用户 - DELETE /api/users/:id - 删除用户 - GET /api/users/teachers - 获取教师列表 - POST /api/users/change-password - 修改密码 - PUT /api/users/profile - 更新个人资料
This commit is contained in:
0
backend/target/classes/com/innovation/platform/InnovationPlatformApplication.class
Executable file → Normal file
0
backend/target/classes/com/innovation/platform/InnovationPlatformApplication.class
Executable file → Normal file
0
backend/target/classes/com/innovation/platform/common/PageResult.class
Executable file → Normal file
0
backend/target/classes/com/innovation/platform/common/PageResult.class
Executable file → Normal file
0
backend/target/classes/com/innovation/platform/common/Result.class
Executable file → Normal file
0
backend/target/classes/com/innovation/platform/common/Result.class
Executable file → Normal file
0
backend/target/classes/com/innovation/platform/config/SaTokenConfig.class
Executable file → Normal file
0
backend/target/classes/com/innovation/platform/config/SaTokenConfig.class
Executable file → Normal file
0
backend/target/classes/com/innovation/platform/controller/AuthController.class
Executable file → Normal file
0
backend/target/classes/com/innovation/platform/controller/AuthController.class
Executable file → Normal file
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
0
backend/target/classes/com/innovation/platform/dto/LoginRequest.class
Executable file → Normal file
0
backend/target/classes/com/innovation/platform/dto/LoginRequest.class
Executable file → Normal file
0
backend/target/classes/com/innovation/platform/dto/LoginResponse$LoginResponseBuilder.class
Executable file → Normal file
0
backend/target/classes/com/innovation/platform/dto/LoginResponse$LoginResponseBuilder.class
Executable file → Normal file
0
backend/target/classes/com/innovation/platform/dto/LoginResponse.class
Executable file → Normal file
0
backend/target/classes/com/innovation/platform/dto/LoginResponse.class
Executable file → Normal file
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
0
backend/target/classes/com/innovation/platform/dto/RegisterRequest.class
Executable file → Normal file
0
backend/target/classes/com/innovation/platform/dto/RegisterRequest.class
Executable file → Normal file
0
backend/target/classes/com/innovation/platform/entity/Achievement.class
Executable file → Normal file
0
backend/target/classes/com/innovation/platform/entity/Achievement.class
Executable file → Normal file
0
backend/target/classes/com/innovation/platform/entity/AchievementAttachment.class
Executable file → Normal file
0
backend/target/classes/com/innovation/platform/entity/AchievementAttachment.class
Executable file → Normal file
0
backend/target/classes/com/innovation/platform/entity/BaseEntity.class
Executable file → Normal file
0
backend/target/classes/com/innovation/platform/entity/BaseEntity.class
Executable file → Normal file
0
backend/target/classes/com/innovation/platform/entity/Project.class
Executable file → Normal file
0
backend/target/classes/com/innovation/platform/entity/Project.class
Executable file → Normal file
0
backend/target/classes/com/innovation/platform/entity/ProjectAttachment.class
Executable file → Normal file
0
backend/target/classes/com/innovation/platform/entity/ProjectAttachment.class
Executable file → Normal file
0
backend/target/classes/com/innovation/platform/entity/ProjectMember.class
Executable file → Normal file
0
backend/target/classes/com/innovation/platform/entity/ProjectMember.class
Executable file → Normal file
0
backend/target/classes/com/innovation/platform/entity/Review.class
Executable file → Normal file
0
backend/target/classes/com/innovation/platform/entity/Review.class
Executable file → Normal file
0
backend/target/classes/com/innovation/platform/entity/ReviewScoreItem.class
Executable file → Normal file
0
backend/target/classes/com/innovation/platform/entity/ReviewScoreItem.class
Executable file → Normal file
0
backend/target/classes/com/innovation/platform/entity/StuInfo.class
Executable file → Normal file
0
backend/target/classes/com/innovation/platform/entity/StuInfo.class
Executable file → Normal file
0
backend/target/classes/com/innovation/platform/entity/SysConfig.class
Executable file → Normal file
0
backend/target/classes/com/innovation/platform/entity/SysConfig.class
Executable file → Normal file
0
backend/target/classes/com/innovation/platform/entity/SysLog.class
Executable file → Normal file
0
backend/target/classes/com/innovation/platform/entity/SysLog.class
Executable file → Normal file
0
backend/target/classes/com/innovation/platform/entity/SysUser.class
Executable file → Normal file
0
backend/target/classes/com/innovation/platform/entity/SysUser.class
Executable file → Normal file
0
backend/target/classes/com/innovation/platform/entity/TeacherInfo.class
Executable file → Normal file
0
backend/target/classes/com/innovation/platform/entity/TeacherInfo.class
Executable file → Normal file
0
backend/target/classes/com/innovation/platform/exception/GlobalExceptionHandler.class
Executable file → Normal file
0
backend/target/classes/com/innovation/platform/exception/GlobalExceptionHandler.class
Executable file → Normal file
Binary file not shown.
0
backend/target/classes/com/innovation/platform/mapper/SysUserMapper.class
Executable file → Normal file
0
backend/target/classes/com/innovation/platform/mapper/SysUserMapper.class
Executable file → Normal file
Binary file not shown.
BIN
backend/target/classes/com/innovation/platform/service/SysUserService.class
Executable file → Normal file
BIN
backend/target/classes/com/innovation/platform/service/SysUserService.class
Executable file → Normal file
Binary file not shown.
Binary file not shown.
BIN
backend/target/classes/com/innovation/platform/service/impl/SysUserServiceImpl.class
Executable file → Normal file
BIN
backend/target/classes/com/innovation/platform/service/impl/SysUserServiceImpl.class
Executable file → Normal file
Binary file not shown.
Reference in New Issue
Block a user