chore: check off Task 5 (RbacController)

This commit is contained in:
2026-07-02 11:44:41 +08:00
parent 2f793833eb
commit 2541ff8d9e
2 changed files with 7 additions and 7 deletions

View File

@@ -1004,7 +1004,7 @@ git commit -m "feat(rbac): integrate RbacService into AuthService login, update
- Consumes: `RbacService` (Task 2), `JwtAuthGuard` (existing), `@RequirePermission` (Task 3)
- Produces: REST API endpoints for roles, permissions, and user management
- [ ] **Step 1: 创建 DTO**
- [x] **Step 1: 创建 DTO**
```typescript
// backend/src/rbac/dto/rbac.dto.ts
@@ -1078,7 +1078,7 @@ export class ResetPasswordDto {
}
```
- [ ] **Step 2: 创建 RbacController**
- [x] **Step 2: 创建 RbacController**
```typescript
// backend/src/rbac/rbac.controller.ts
@@ -1225,7 +1225,7 @@ export class RbacController {
}
```
- [ ] **Step 3: 在 RbacService 中补充用户管理方法**
- [x] **Step 3: 在 RbacService 中补充用户管理方法**
`backend/src/rbac/rbac.service.ts` 中追加:
@@ -1299,7 +1299,7 @@ export class RbacController {
}
```
- [ ] **Step 4: 编译验证**
- [x] **Step 4: 编译验证**
```bash
cd backend && npx tsc --noEmit
@@ -1307,7 +1307,7 @@ cd backend && npx tsc --noEmit
预期:无类型错误。
- [ ] **Step 5: Commit**
- [x] **Step 5: Commit**
```bash
git add backend/src/rbac/