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:
@@ -25,7 +25,7 @@ services:
|
||||
SPRING_DATASOURCE_USERNAME: innovation
|
||||
SPRING_DATASOURCE_PASSWORD: innovation123
|
||||
ports:
|
||||
- "8080:8080"
|
||||
- "127.0.0.1:8081:8080"
|
||||
networks:
|
||||
- innovation-network
|
||||
|
||||
|
||||
Reference in New Issue
Block a user