feat: integrate invitation access, world NPCs, and deployment

This commit is contained in:
2026-09-08 22:22:38 +08:00
parent 2a3125075f
commit 513a3eba31
75 changed files with 9566 additions and 1070 deletions

View File

@@ -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
*/