forked from wangziqi/gongxue-base
chore: check off Task 5 (RbacController)
This commit is contained in:
@@ -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/
|
||||
|
||||
Reference in New Issue
Block a user