refactor(core): 迁移开场白字段至i18n表并简化实体
This commit is contained in:
@@ -119,14 +119,6 @@ public class KeyboardAiCompanion {
|
|||||||
@Schema(description="更新时间")
|
@Schema(description="更新时间")
|
||||||
private Date updatedAt;
|
private Date updatedAt;
|
||||||
|
|
||||||
@TableField(value = "prologue")
|
|
||||||
@Schema(description="开场白")
|
|
||||||
private String prologue;
|
|
||||||
|
|
||||||
@TableField(value = "prologue_audio")
|
|
||||||
@Schema(description="开场白音频")
|
|
||||||
private String prologueAudio;
|
|
||||||
|
|
||||||
@TableField(value = "voice_id")
|
@TableField(value = "voice_id")
|
||||||
@Schema(description="角色音频Id")
|
@Schema(description="角色音频Id")
|
||||||
private String voiceId;
|
private String voiceId;
|
||||||
|
|||||||
@@ -75,4 +75,13 @@ public class KeyboardAiCompanionI18n {
|
|||||||
@TableField(value = "updated_at")
|
@TableField(value = "updated_at")
|
||||||
@Schema(description="更新时间")
|
@Schema(description="更新时间")
|
||||||
private Date updatedAt;
|
private Date updatedAt;
|
||||||
|
|
||||||
|
@TableField(value = "prologue")
|
||||||
|
@Schema(description = "开场白")
|
||||||
|
private String prologue;
|
||||||
|
|
||||||
|
@TableField(value = "prologue_audio")
|
||||||
|
@Schema(description = "开场白音频")
|
||||||
|
private String prologueAudio;
|
||||||
|
|
||||||
}
|
}
|
||||||
@@ -324,6 +324,8 @@ public class KeyboardAiCompanionServiceImpl extends ServiceImpl<KeyboardAiCompan
|
|||||||
vo.setName(i18n.getName());
|
vo.setName(i18n.getName());
|
||||||
vo.setShortDesc(i18n.getShortDesc());
|
vo.setShortDesc(i18n.getShortDesc());
|
||||||
vo.setIntroText(i18n.getIntroText());
|
vo.setIntroText(i18n.getIntroText());
|
||||||
|
vo.setPrologue(i18n.getPrologue());
|
||||||
|
vo.setPrologueAudio(i18n.getPrologueAudio());
|
||||||
return vo;
|
return vo;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user