|
|
@@ -1,4 +1,4 @@
|
|
|
-import { IsString, MaxLength } from 'class-validator'
|
|
|
+import { IsOptional, IsString, MaxLength } from 'class-validator'
|
|
|
|
|
|
export class SendCodeDto {
|
|
|
@IsString()
|
|
|
@@ -6,13 +6,16 @@ export class SendCodeDto {
|
|
|
readonly phone: string
|
|
|
|
|
|
@IsString()
|
|
|
- readonly sessionId: string
|
|
|
+ @IsOptional()
|
|
|
+ readonly sessionId?: string
|
|
|
|
|
|
@IsString()
|
|
|
- readonly sig: string
|
|
|
+ @IsOptional()
|
|
|
+ readonly sig?: string
|
|
|
|
|
|
@IsString()
|
|
|
- readonly token: string
|
|
|
+ @IsOptional()
|
|
|
+ readonly token?: string
|
|
|
}
|
|
|
|
|
|
export class VerifyCodeDto {
|