feat: 接入真实登录与成员权限

- auth/members/messages: 新增超级管理员登录、成员权限和密码消息流程
- agent-config/agent: 支持服务端保存 Agent 配置并取消未配置 mock 成功结果
- projects/deploy-runs/settings: 按当前用户权限保护真实接口
- prisma: 新增用户、项目权限和平台消息表结构
This commit is contained in:
湛兮
2026-06-12 00:38:23 +08:00
parent cf1bebf625
commit bc3aa31289
83 changed files with 3844 additions and 378 deletions
+9 -4
View File
@@ -1,17 +1,22 @@
import { Controller, Get } from '@nestjs/common';
import { Controller, Get, UseGuards } from '@nestjs/common';
import { ApiOkResponse, ApiTags } from '@nestjs/swagger';
import { AdminOnlyMessage } from '../auth/admin-only-message.decorator';
import { AuthGuard } from '../auth/auth.guard';
import { PasswordChangeGuard } from '../auth/password-change.guard';
import { SuperAdminGuard } from '../auth/super-admin.guard';
import { SettingsService } from './settings.service';
import { IntegrationConfigStatusResponse } from './settings.types';
@ApiTags('settings')
@ApiTags('系统设置')
@Controller('settings')
@UseGuards(AuthGuard, PasswordChangeGuard, SuperAdminGuard)
@AdminOnlyMessage('无权限访问系统设置')
export class SettingsController {
constructor(private readonly settingsService: SettingsService) {}
@Get('integration-config')
@ApiOkResponse({
description:
'Integration configuration status with secret values redacted server-side.',
description: '查询集成配置状态,所有密钥值均在服务端脱敏。',
})
getIntegrationConfig(): IntegrationConfigStatusResponse {
return this.settingsService.getIntegrationConfigStatus();
+2
View File
@@ -1,8 +1,10 @@
import { Module } from '@nestjs/common';
import { AuthModule } from '../auth/auth.module';
import { SettingsController } from './settings.controller';
import { SettingsService } from './settings.service';
@Module({
imports: [AuthModule],
controllers: [SettingsController],
providers: [SettingsService],
})