feat: 完成咨询相关接口
This commit is contained in:
1 parent
1bce0d9187
commit
7eb95c85b9
19 files changed
+314
-11
No files matched your search
File renamed without changes.
File renamed without changes.
@@ -1,5 +1,5 @@
|
||||
import { HttpException, HttpStatus } from '@nestjs/common';
|
||||
import { ErrorResponse } from '../errors/error.response';
|
||||
import { ErrorResponse } from '../error/error.response';
|
||||
|
||||
export class BizException extends HttpException {
|
||||
constructor(error: ErrorResponse) {
|
||||
+1
-1
@@ -5,7 +5,7 @@ import {
|
||||
HttpException,
|
||||
HttpStatus,
|
||||
} from '@nestjs/common';
|
||||
import { ErrorResponse } from '../errors/error.response';
|
||||
import { ErrorResponse } from '../error/error.response';
|
||||
|
||||
@Catch()
|
||||
export class GlobalExceptionFilter implements ExceptionFilter {
|
||||
@@ -1,5 +1,5 @@
|
||||
import { HttpStatus, ValidationError, ValidationPipe } from '@nestjs/common';
|
||||
import { ErrorResponse } from '../errors/error.response';
|
||||
import { ErrorResponse } from '../error/error.response';
|
||||
|
||||
export class GlobalValidationPipe extends ValidationPipe {
|
||||
constructor() {
|
||||
|
||||
Reference in new issue
Block a user