mirror of
https://github.com/SyncrowIOT/backend.git
synced 2025-11-26 23:44:53 +00:00
added success message
This commit is contained in:
@ -23,6 +23,7 @@ export class SuccessResponseDto<Type> implements BaseResponseDto {
|
||||
constructor(input: BaseResponseDto) {
|
||||
if (input.statusCode) this.statusCode = input.statusCode;
|
||||
else this.statusCode = 200;
|
||||
if (input.message) this.message = input.message;
|
||||
if (input.data) this.data = input.data;
|
||||
this.success = true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user