lifang 3 месяцев назад
Родитель
Сommit
d1b2743b3b

+ 3 - 0
tr-modules/tr-module-mobile/src/main/java/cn/tr/module/mobile/controller/vo/ImMsgReceivedVO.java

@@ -42,4 +42,7 @@ public class ImMsgReceivedVO implements Serializable {
 
     @ApiModelProperty(value = "消息类型", position = 9)
     private String msgType;
+
+    @ApiModelProperty("音/视频时长")
+    private Integer duration;
 }

+ 1 - 0
tr-modules/tr-module-mobile/src/main/java/cn/tr/module/mobile/repository/ImMsgReceivedRepository.java

@@ -44,6 +44,7 @@ public interface ImMsgReceivedRepository extends BaseMapper<ImMsgReceivedPO> {
             "imr.group_id as group_id,\n" +
             "imr.msg_content as msg_content,\n" +
             "imr.send_time as send_time,\n" +
+            "imr.duration as duration,\n" +
             "imr.msg_type as msg_type\n" +
             "from \n" +
             "im_msg_received as imr\n" +