mirror of
https://github.com/SyncrowIOT/backend.git
synced 2025-11-26 12:34:54 +00:00
authentication module done
This commit is contained in:
4
libs/common/src/response/response.decorator.ts
Normal file
4
libs/common/src/response/response.decorator.ts
Normal file
@ -0,0 +1,4 @@
|
||||
import { SetMetadata } from '@nestjs/common';
|
||||
|
||||
export const ResponseMessage = (message: string) =>
|
||||
SetMetadata('response_message', message);
|
||||
5
libs/common/src/response/response.interceptor.ts
Normal file
5
libs/common/src/response/response.interceptor.ts
Normal file
@ -0,0 +1,5 @@
|
||||
export interface Response<T> {
|
||||
statusCode: number;
|
||||
message: string;
|
||||
data?: T;
|
||||
}
|
||||
Reference in New Issue
Block a user