Quellcode durchsuchen

增加返回视频地址

qinchaoyue vor 1 Tag
Ursprung
Commit
1dcb0faeab

+ 3 - 1
src/Hotline.Application/Snapshot/SnapshotApplicationBase.cs

@@ -1054,7 +1054,8 @@ public abstract class SnapshotApplicationBase
                 notify.ExternalId,
                 bulletin.SnapshotBulletinTypeName,
                 bulletin.VideoCoverImgUrl,
-                notify.CreationTime
+                notify.CreationTime,
+                bulletin.VideoPath
             })
             .OrderByDescending((receiver, notify) => notify.CreationTime)
             .Select((receiver, notify, bulletin) => new VideoBulletinOutDto
@@ -1064,6 +1065,7 @@ public abstract class SnapshotApplicationBase
                 UnReadCount = SqlFunc.AggregateSum(SqlFunc.IIF( receiver.IsRead == false, 1, 0)),
                 SnapshotBulletinTypeName = bulletin.SnapshotBulletinTypeName,
                 VideoCoverImgUrl = bulletin.VideoCoverImgUrl,
+                VideoPath = bulletin.VideoPath,
             }).FirstAsync();
 
         outDto.Bulletins = new PointsBulletinOutDto

+ 5 - 0
src/Hotline.Share/Dtos/Snapshot/PointsDto.cs

@@ -179,6 +179,11 @@ public class VideoBulletinOutDto
     /// 未读个数
     /// </summary>
     public int UnReadCount { get; set; }
+
+    /// <summary>
+    /// 视频地址
+    /// </summary>
+    public string? VideoPath { get; set; }
 }
 
 public class PointsRankUserDto