chore: user setting module
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
import { ApiPropertyOptional } from "@nestjs/swagger";
|
||||
import { IsNotEmpty, IsOptional } from "class-validator";
|
||||
|
||||
import { SettingMessageEnum } from "../../../common/enums/message.enum";
|
||||
|
||||
export class UpdateUserSettingsDto {
|
||||
@IsOptional()
|
||||
@IsNotEmpty({ message: SettingMessageEnum.SMS_MUST_BE_BOOLEAN })
|
||||
@ApiPropertyOptional({ description: "Sms Setting", example: true })
|
||||
sms: boolean;
|
||||
|
||||
@IsOptional()
|
||||
@IsNotEmpty({ message: SettingMessageEnum.EMAIL_MUST_BE_BOOLEAN })
|
||||
@ApiPropertyOptional({ description: "email Setting", example: false })
|
||||
email: boolean;
|
||||
}
|
||||
Reference in New Issue
Block a user