平安校园
Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.

IMenuService.cs 1.9 KiB

před 4 měsíci
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. 
  2. //
  3. namespace SafeCampus.System;
  4. /// <summary>
  5. /// 菜单服务
  6. /// </summary>
  7. public interface IMenuService : ITransient
  8. {
  9. /// <summary>
  10. /// 添加菜单
  11. /// </summary>
  12. /// <param name="input">添加参数</param>
  13. /// <returns></returns>
  14. Task Add(MenuAddInput input);
  15. /// <summary>
  16. /// 详情
  17. /// </summary>
  18. /// <param name="input">id</param>
  19. /// <returns>详细信息</returns>
  20. Task<SysResource> Detail(BaseIdInput input);
  21. /// <summary>
  22. /// 构建菜单树形结构
  23. /// </summary>
  24. /// <param name="resourceList">菜单列表</param>
  25. /// <param name="parentId">父ID</param>
  26. /// <returns>菜单形结构</returns>
  27. List<SysResource> ConstructMenuTrees(List<SysResource> resourceList, long? parentId = 0);
  28. /// <summary>
  29. /// 获取菜单树
  30. /// </summary>
  31. /// <param name="input">菜单树查询参数</param>
  32. /// <param name="showDisabled">是否显示禁用的</param>
  33. /// <returns>菜单树列表</returns>
  34. Task<List<SysResource>> Tree(MenuTreeInput input, bool showDisabled = true);
  35. /// <summary>
  36. /// 编辑菜单
  37. /// </summary>
  38. /// <param name="input">菜单编辑参数</param>
  39. /// <returns></returns>
  40. Task Edit(MenuEditInput input);
  41. /// <summary>
  42. /// 删除菜单
  43. /// </summary>
  44. /// <param name="input">删除菜单参数</param>
  45. /// <returns></returns>
  46. Task Delete(BaseIdListInput input);
  47. /// <summary>
  48. /// 改变菜单模块
  49. /// </summary>
  50. /// <param name="input">改变菜单模块参数</param>
  51. /// <returns></returns>
  52. Task ChangeModule(MenuChangeModuleInput input);
  53. /// <summary>
  54. /// 快捷方式菜单树
  55. /// </summary>
  56. /// <param name="sysResources">资源列表</param>
  57. /// <returns></returns>
  58. Task<List<SysResource>> ShortcutTree(List<SysResource> sysResources = null);
  59. }