|
@@ -355,8 +355,8 @@ type SpeechRecognitionDetailItem struct {
|
|
|
SysUserName string `description:"创建人姓名"`
|
|
|
Abstract string `description:"摘要,取前几段内容"`
|
|
|
Sort int `description:"目录下的排序"`
|
|
|
- FileSecond int `description:"文件时长(秒)"`
|
|
|
- FileSize int `description:"文件大小(byte)"`
|
|
|
+ FileSecond string `description:"文件时长(HH:MM:SS/MM:SS)"`
|
|
|
+ FileSize string `description:"文件大小(MB)"`
|
|
|
CreateTime string `description:"创建时间"`
|
|
|
ModifyTime string `description:"修改时间"`
|
|
|
Contents []*SpeechRecognitionContentItem `description:"语音识别内容"`
|
|
@@ -388,8 +388,8 @@ func FormatSpeechRecognition2DetailItem(origin *SpeechRecognition, contents []*S
|
|
|
item.SysUserName = origin.SysUserName
|
|
|
item.Abstract = origin.Abstract
|
|
|
item.Sort = origin.Sort
|
|
|
- item.FileSecond = origin.FileSecond
|
|
|
- item.FileSize = origin.FileSize
|
|
|
+ item.FileSecond = utils.SecondsToHHMMSS(origin.FileSecond)
|
|
|
+ item.FileSize = fmt.Sprintf("%.2fM", utils.ByteToMB(origin.FileSize))
|
|
|
item.CreateTime = utils.TimeTransferString(utils.FormatDateTime, origin.CreateTime)
|
|
|
item.ModifyTime = utils.TimeTransferString(utils.FormatDateTime, origin.ModifyTime)
|
|
|
item.Contents = contents
|