短信验证调试成功
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
import { IsIn, IsNotEmpty, IsOptional, IsString } from 'class-validator';
|
||||
import { SmsScene } from '@dukang/shared-types';
|
||||
|
||||
export class SendSmsDto {
|
||||
@IsString()
|
||||
@@ -7,6 +8,7 @@ export class SendSmsDto {
|
||||
|
||||
@IsString()
|
||||
@IsNotEmpty()
|
||||
@IsIn(Object.values(SmsScene))
|
||||
scene: string;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user