forked from xiangwang25/whale-town-end-v2
feat: integrate invitation access, world NPCs, and deployment
This commit is contained in:
@@ -71,6 +71,12 @@ export class LoginDto {
|
||||
* 注册请求DTO
|
||||
*/
|
||||
export class RegisterDto {
|
||||
@ApiProperty({ description: '邀请码', example: 'WT-ABCD-EFGH-IJKL' })
|
||||
@IsString({ message: '邀请码必须是字符串' })
|
||||
@IsNotEmpty({ message: '邀请码不能为空' })
|
||||
@Length(8, 30, { message: '邀请码格式不正确' })
|
||||
invitation_code: string;
|
||||
|
||||
/**
|
||||
* 用户名
|
||||
*/
|
||||
@@ -383,12 +389,9 @@ export class EmailVerificationDto {
|
||||
}
|
||||
|
||||
/**
|
||||
* 发送邮箱验证码请求DTO
|
||||
* 邮箱地址请求DTO
|
||||
*/
|
||||
export class SendEmailVerificationDto {
|
||||
/**
|
||||
* 邮箱地址
|
||||
*/
|
||||
export class EmailAddressDto {
|
||||
@ApiProperty({
|
||||
description: '邮箱地址',
|
||||
example: 'test@example.com'
|
||||
@@ -398,6 +401,17 @@ export class SendEmailVerificationDto {
|
||||
email: string;
|
||||
}
|
||||
|
||||
/**
|
||||
* 发送邮箱验证码请求DTO
|
||||
*/
|
||||
export class SendEmailVerificationDto extends EmailAddressDto {
|
||||
@ApiProperty({ description: '邀请码', example: 'WT-ABCD-EFGH-IJKL' })
|
||||
@IsString({ message: '邀请码必须是字符串' })
|
||||
@IsNotEmpty({ message: '邀请码不能为空' })
|
||||
@Length(8, 30, { message: '邀请码格式不正确' })
|
||||
invitation_code: string;
|
||||
}
|
||||
|
||||
/**
|
||||
* 验证码登录请求DTO
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user