feat:UserProfile 新增性格标签库与兴趣爱好库字段

- t_user_profile 表新增 personality_tag_library 和 hobby_library 两个 TEXT 字段
- UserProfile 实体类新增对应字段,使用 @TableField 映射
- UserProfileUpdateRequest、UserProfileCreateRequest、UserProfileResponse DTO 同步新增字段
- 迁移脚本命名符合 V{YYYYMMDD}__描述.sql 规范

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-06-24 21:30:11 +08:00
parent 433ba4c498
commit 341b08c02e
5 changed files with 46 additions and 0 deletions
@@ -105,6 +105,16 @@ public class UserProfileCreateRequest {
*/
private String personalityTags;
/**
* 用户完整性格标签库 (JSON字符串)
*/
private String personalityTagLibrary;
/**
* 用户完整兴趣爱好库 (JSON字符串)
*/
private String hobbyLibrary;
/**
* 生日
*/
@@ -109,6 +109,16 @@ public class UserProfileUpdateRequest {
*/
private String personalityTags;
/**
* 用户完整性格标签库 (JSON字符串)
*/
private String personalityTagLibrary;
/**
* 用户完整兴趣爱好库 (JSON字符串)
*/
private String hobbyLibrary;
/**
* 生日
*/
@@ -124,6 +124,16 @@ public class UserProfileResponse {
*/
private String personalityTags;
/**
* 用户完整性格标签库 (JSON字符串)
*/
private String personalityTagLibrary;
/**
* 用户完整兴趣爱好库 (JSON字符串)
*/
private String hobbyLibrary;
/**
* 生日
*/
@@ -139,6 +139,18 @@ public class UserProfile extends BaseEntity {
@TableField("personality_tags")
private String personalityTags;
/**
* 用户完整性格标签库 (JSON字符串,含剩余预设 + 自定义)
*/
@TableField("personality_tag_library")
private String personalityTagLibrary;
/**
* 用户完整兴趣爱好库 (JSON字符串,含剩余预设 + 自定义)
*/
@TableField("hobby_library")
private String hobbyLibrary;
/**
* 生日
*/
@@ -0,0 +1,4 @@
-- 用户档案表新增标签库字段,用于存储用户专属的完整标签列表(含剩余预设 + 自定义)
ALTER TABLE t_user_profile
ADD COLUMN personality_tag_library TEXT DEFAULT NULL COMMENT '用户完整性格标签库(JSON数组)',
ADD COLUMN hobby_library TEXT DEFAULT NULL COMMENT '用户完整兴趣爱好库(JSON数组)';