feat(identity-service): 扩展DeviceNameDto支持更多设备信息字段
添加以下可选字段: - brand: 品牌 - manufacturer: 厂商 - device: 设备名 - product: 产品名 - hardware: 硬件名 - sdkInt: SDK版本(Android) - isPhysicalDevice: 是否真机 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
parent
7a0e83dac5
commit
0c7f9b6da9
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Reference in New Issue