SysMenuAppService.cs 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. using YBEE.EQM.Core;
  2. namespace YBEE.EQM.Application
  3. {
  4. /// <summary>
  5. /// 菜单
  6. /// </summary>
  7. [ApiDescriptionSettings(Name = "sys-menu")]
  8. [Route("sys/menu")]
  9. [AppAuthorize]
  10. public class SysMenuAppService : IDynamicApiController
  11. {
  12. private readonly ISysMenuService _menuService;
  13. public SysMenuAppService(ISysMenuService menuService)
  14. {
  15. _menuService = menuService;
  16. }
  17. /// <summary>
  18. /// 添加菜单
  19. /// </summary>
  20. /// <param name="input"></param>
  21. /// <returns></returns>
  22. /// <exception cref="NotImplementedException"></exception>
  23. public Task Add(AddSysMenuInput input)
  24. {
  25. throw new NotImplementedException();
  26. }
  27. /// <summary>
  28. /// 更新菜单
  29. /// </summary>
  30. /// <param name="input"></param>
  31. /// <returns></returns>
  32. /// <exception cref="NotImplementedException"></exception>
  33. public Task Update(UpdateSysMenuInput input)
  34. {
  35. throw new NotImplementedException();
  36. }
  37. /// <summary>
  38. /// 删除菜单
  39. /// </summary>
  40. /// <param name="input"></param>
  41. /// <returns></returns>
  42. public async Task Del(DeleteSysMenuInput input)
  43. {
  44. await _menuService.Del(input);
  45. }
  46. /// <summary>
  47. /// 获取菜单列表
  48. /// </summary>
  49. /// <returns></returns>
  50. [DisableOpLog]
  51. public async Task<List<SysMenuOutput>> GetAllList()
  52. {
  53. return await _menuService.GetAllList();
  54. }
  55. /// <summary>
  56. /// 获取所有菜单(树形)
  57. /// </summary>
  58. /// <returns></returns>
  59. [DisableOpLog]
  60. public async Task<List<SysMenuOutput>> GetAllTreeList()
  61. {
  62. return await _menuService.GetAllTreeList();
  63. }
  64. }
  65. }