Browse Source

菜单新增快捷图标字段

Dun.Jason 2 years ago
parent
commit
15e08aa103

+ 8 - 0
src/Hotline.Api/Realtimes/RealtimeService.cs

@@ -18,6 +18,14 @@ public class RealtimeService : IRealtimeService, IScopeDependency
         _userCacheManager = userCacheManager;
     }
 
+    /// <summary>
+    /// 振铃事件通知
+    /// </summary>
+    /// <param name="userId"></param>
+    /// <param name="dto"></param>
+    /// <param name="cancellationToken"></param>
+    /// <returns></returns>
+    /// <exception cref="UserFriendlyException"></exception>
     public async Task RingAsync(string userId, RingDto dto, CancellationToken cancellationToken)
     {
         var work = _userCacheManager.GetWorkByUser(userId);

+ 1 - 0
src/Hotline.Share/Dtos/Menu/MenuDto.cs

@@ -17,6 +17,7 @@
         public bool IsLink { get; set; }
         public string Link { get; set; }
         public bool IsFast { get; set; }
+        public string FastIcon { get; set; }
     }
 
     public record UpdateMenuDto:AddMenuDto

+ 6 - 2
src/Hotline/Settings/SystemMenu.cs

@@ -92,13 +92,17 @@ namespace Hotline.Settings
         /// </summary>
         public bool IsFast { get; set; }
 
+        /// <summary>
+        /// 快捷图标
+        /// </summary>
+        [SugarColumn(IsNullable = true)]
+        public string FastIcon { get; set; }
+
         [SugarColumn(IsIgnore = true)]
         public List<SystemMenu> children { get; set; }
 
         [SugarColumn(IsIgnore = true)]
         [Navigate(NavigateType.OneToMany, nameof(SystemButton.MenuId))]
         public List<SystemButton> ButtonArr { get; set; }
-
-
     }
 }