feat: add user createOne and refactor code

This commit is contained in:
2026-02-23 09:19:34 +03:30
parent 72a001a150
commit 63b4567166
13 changed files with 192 additions and 110 deletions
+13
View File
@@ -0,0 +1,13 @@
import { IsNotEmpty, IsString } from 'class-validator';
import { PhoneDTO } from './login.dto';
import { i18nValidationMessage as t } from 'nestjs-i18n';
export class VerifyOtpDTO extends PhoneDTO {
@IsString()
@IsNotEmpty({
message: t('validation.requiredField', {
field: '$t(auth.fields.otp)',
}),
})
otp: string;
}