From 0c7f9b6da9193700898ea31e32b04808dffcf5ac Mon Sep 17 00:00:00 2001 From: hailin Date: Sun, 7 Dec 2025 10:58:47 -0800 Subject: [PATCH] =?UTF-8?q?feat(identity-service):=20=E6=89=A9=E5=B1=95Dev?= =?UTF-8?q?iceNameDto=E6=94=AF=E6=8C=81=E6=9B=B4=E5=A4=9A=E8=AE=BE?= =?UTF-8?q?=E5=A4=87=E4=BF=A1=E6=81=AF=E5=AD=97=E6=AE=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 添加以下可选字段: - brand: 品牌 - manufacturer: 厂商 - device: 设备名 - product: 产品名 - hardware: 硬件名 - sdkInt: SDK版本(Android) - isPhysicalDevice: 是否真机 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- .../dto/request/auto-create-account.dto.ts | 33 +++++++++++++++++++ 1 file changed, 33 insertions(+) diff --git a/backend/services/identity-service/src/api/dto/request/auto-create-account.dto.ts b/backend/services/identity-service/src/api/dto/request/auto-create-account.dto.ts index 98333e4a..7893d55b 100644 --- a/backend/services/identity-service/src/api/dto/request/auto-create-account.dto.ts +++ b/backend/services/identity-service/src/api/dto/request/auto-create-account.dto.ts @@ -17,6 +17,39 @@ export class DeviceNameDto { @IsOptional() @IsString() osVersion?: string; + + @ApiPropertyOptional({ example: 'Apple', description: '品牌' }) + @IsOptional() + @IsString() + brand?: string; + + @ApiPropertyOptional({ example: 'Apple', description: '厂商' }) + @IsOptional() + @IsString() + manufacturer?: string; + + @ApiPropertyOptional({ example: 'iPhone15,2', description: '设备名' }) + @IsOptional() + @IsString() + device?: string; + + @ApiPropertyOptional({ example: 'iPhone15,2', description: '产品名' }) + @IsOptional() + @IsString() + product?: string; + + @ApiPropertyOptional({ example: 'qcom', description: '硬件名' }) + @IsOptional() + @IsString() + hardware?: string; + + @ApiPropertyOptional({ example: 33, description: 'SDK 版本 (Android)' }) + @IsOptional() + sdkInt?: number; + + @ApiPropertyOptional({ example: true, description: '是否真机' }) + @IsOptional() + isPhysicalDevice?: boolean; } export class AutoCreateAccountDto {