refactor: remove User-based import and RBAC UserDingMapping endpoints

This commit is contained in:
2026-07-09 17:10:33 +08:00
parent 570ef7b7e9
commit 7b8691866e
7 changed files with 8 additions and 844 deletions

View File

@@ -19,7 +19,6 @@ import {
UpdateUserDto,
ResetPasswordDto,
UpdateProfileDto,
CreateStudentDingMappingDto,
} from './dto/rbac.dto';
import { JwtAuthGuard } from '../auth/guards/jwt-auth.guard';
import { RequirePermission } from '../auth/decorators/permission.decorator';
@@ -299,32 +298,6 @@ export class RbacController {
}
}
// ---- 钉钉用户绑定 ----
@Get('user-ding-mappings')
@RequirePermission('user:view')
async getStudentDingMappings() {
return this.rbacService.getUserDingMappings();
}
@Get('user-ding-mappings/unbound-users')
@RequirePermission('user:view')
async getUnboundUsers() {
return this.rbacService.getUnboundUsers();
}
@Post('user-ding-mappings')
@RequirePermission('user:edit')
async createStudentDingMapping(@Body() dto: CreateStudentDingMappingDto) {
return this.rbacService.createUserDingMapping(dto);
}
@Delete('user-ding-mappings/:id')
@RequirePermission('user:delete')
async deleteStudentDingMapping(@Param('id') id: string) {
return this.rbacService.deleteUserDingMapping(+id);
}
// ---- 教师工作台 ----
@Get('teacher-workspace')