feat: 在用户资料中添加活动水平字段
- 更新用户资料相关逻辑,新增活动水平字段,支持用户在更新资料时提供活动水平信息。 - 修改相关DTO和模型,确保活动水平字段的有效性和数据一致性。 - 更新用户响应数据结构,包含活动水平信息,提升用户体验和数据完整性。
This commit is contained in:
@@ -52,6 +52,10 @@ export class UpdateUserDto {
|
||||
@ApiProperty({ description: '身高(厘米)', example: 168 })
|
||||
height?: number;
|
||||
|
||||
@IsOptional()
|
||||
@ApiProperty({ description: '活动水平(1-5的枚举值)', example: 3, minimum: 1, maximum: 5 })
|
||||
activityLevel?: number;
|
||||
|
||||
}
|
||||
|
||||
export class UpdateUserResponseDto {
|
||||
|
||||
Reference in New Issue
Block a user