优化注释

master
expressgy 2 years ago
parent 87cb473ff5
commit 60251ca955
  1. 14
      src/main.ts
  2. 1
      src/starlight/starlight.module.ts

@ -4,15 +4,23 @@ import {
FastifyAdapter,
NestFastifyApplication,
} from '@nestjs/platform-fastify';
// 参数验证
import { ValidationPipe } from '@nestjs/common';
// Fastify文件上传插件
import fastifyMultipart from '@fastify/multipart';
// 日志服务
import { GloggerService } from './Gservice/GLOGGER/glogger.service';
// API文档
import { DocumentBuilder, SwaggerModule } from '@nestjs/swagger';
import * as process from 'process';
import { GdevinterceptorInterceptor } from './Ginterceptor/gdevinterceptor.interceptor';
// 配置文件
import { ConfigService } from '@nestjs/config';
import { GresponseinterceptorInterceptor } from './Ginterceptor/gresponseinterceptor.interceptor';
// 异常捕获
import { GexceptionsfilterFilter } from './Gexceptions/gexceptionsfilter.filter';
// 拦截器
// --全局开发拦截
import { GdevinterceptorInterceptor } from './Ginterceptor/gdevinterceptor.interceptor';
// --全局响应拦截
import { GresponseinterceptorInterceptor } from './Ginterceptor/gresponseinterceptor.interceptor';
async function bootstrap() {
const app = await NestFactory.create<NestFastifyApplication>(

@ -1,7 +1,6 @@
import { Module } from '@nestjs/common';
import { StarlightService } from './starlight.service';
import { StarlightController } from './starlight.controller';
// import { LoggerService } from '../Logger/logger.service';
@Module({
controllers: [StarlightController],

Loading…
Cancel
Save