@@ -66,3 +66,6 @@ CREATE TABLE `user_voice_language` ( | |||||
ALTER TABLE `service_video_record` | ALTER TABLE `service_video_record` | ||||
ADD COLUMN user_mould_video_id bigint NOT NULL COMMENT '视频记录ID'; | ADD COLUMN user_mould_video_id bigint NOT NULL COMMENT '视频记录ID'; | ||||
ALTER TABLE `voice_language` | |||||
ADD COLUMN trial_text varchar(100) COMMENT '试听文本内容'; |
@@ -54,6 +54,8 @@ public class WxCVoiceTable { | |||||
private String styleDisplayName; | private String styleDisplayName; | ||||
@io.swagger.annotations.ApiModelProperty(value = "声纹风格样例文件链接", name = "style_demo") | @io.swagger.annotations.ApiModelProperty(value = "声纹风格样例文件链接", name = "style_demo") | ||||
private String styleDemo; | private String styleDemo; | ||||
@io.swagger.annotations.ApiModelProperty(value = "试听内容", name = "trialText") | |||||
private String trialText; | |||||
} | } | ||||
@@ -60,6 +60,7 @@ public class WxCVoiceServiceImpl implements WxCVoiceService { | |||||
audio = new HashMap<>(); | audio = new HashMap<>(); | ||||
audio.put("LocaleName", wxCVoiceTable.getLocalelName()); | audio.put("LocaleName", wxCVoiceTable.getLocalelName()); | ||||
audio.put("displayname", wxCVoiceTable.getLocalDisPlayName()); | audio.put("displayname", wxCVoiceTable.getLocalDisPlayName()); | ||||
audio.put("TrialText", wxCVoiceTable.getTrialText()); | |||||
audioList.put(wxCVoiceTable.getLanguageId(),audio); | audioList.put(wxCVoiceTable.getLanguageId(),audio); | ||||
} | } | ||||
List<Map<String, Object>> voiceList = (List<Map<String, Object>>) audio.get("voiceList"); | List<Map<String, Object>> voiceList = (List<Map<String, Object>>) audio.get("voiceList"); | ||||
@@ -21,7 +21,7 @@ | |||||
<result column="style_name" jdbcType="VARCHAR" property="styleName"/> | <result column="style_name" jdbcType="VARCHAR" property="styleName"/> | ||||
<result column="style_display_name" jdbcType="VARCHAR" property="styleDisplayName"/> | <result column="style_display_name" jdbcType="VARCHAR" property="styleDisplayName"/> | ||||
<result column="style_demo" jdbcType="VARCHAR" property="styleDemo"/> | <result column="style_demo" jdbcType="VARCHAR" property="styleDemo"/> | ||||
<result column="trial_text" jdbcType="VARCHAR" property="trialText"/> | |||||
</resultMap> | </resultMap> | ||||
@@ -35,7 +35,7 @@ | |||||
<!-- </select> --> | <!-- </select> --> | ||||
<select id="getById" resultMap="BaseResultMap"> | <select id="getById" resultMap="BaseResultMap"> | ||||
select wca.user_name,wca.resource_id,wca.expire_time,vi.id,vi.language_id,vi.sex,vi.display_name,vi.local_name,vi.mould_sm_id,vi.style_list, | select wca.user_name,wca.resource_id,wca.expire_time,vi.id,vi.language_id,vi.sex,vi.display_name,vi.local_name,vi.mould_sm_id,vi.style_list, | ||||
vl.name,vl.chinese_name | |||||
vl.name,vl.chinese_name,vl.trial_text | |||||
FROM wx_c_author wca | FROM wx_c_author wca | ||||
join voice_info vi on wca.resource_id = vi.id | join voice_info vi on wca.resource_id = vi.id | ||||
join voice_language vl on vi.language_id =vl.id | join voice_language vl on vi.language_id =vl.id | ||||