12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667 |
- using YBEE.EQM.Core;
- namespace YBEE.EQM.Application
- {
- /// <summary>
- /// 菜单
- /// </summary>
- [ApiDescriptionSettings(Name = "sys-menu")]
- [Route("sys/menu")]
- [AppAuthorize]
- public class SysMenuAppService : IDynamicApiController
- {
- private readonly ISysMenuService _menuService;
- public SysMenuAppService(ISysMenuService menuService)
- {
- _menuService = menuService;
- }
- /// <summary>
- /// 添加菜单
- /// </summary>
- /// <param name="input"></param>
- /// <returns></returns>
- /// <exception cref="NotImplementedException"></exception>
- public Task Add(AddSysMenuInput input)
- {
- throw new NotImplementedException();
- }
- /// <summary>
- /// 更新菜单
- /// </summary>
- /// <param name="input"></param>
- /// <returns></returns>
- /// <exception cref="NotImplementedException"></exception>
- public Task Update(UpdateSysMenuInput input)
- {
- throw new NotImplementedException();
- }
- /// <summary>
- /// 删除菜单
- /// </summary>
- /// <param name="input"></param>
- /// <returns></returns>
- public async Task Del(DeleteSysMenuInput input)
- {
- await _menuService.Del(input);
- }
- /// <summary>
- /// 获取菜单列表
- /// </summary>
- /// <returns></returns>
- [DisableOpLog]
- public async Task<List<SysMenuOutput>> GetAllList()
- {
- return await _menuService.GetAllList();
- }
- /// <summary>
- /// 获取所有菜单(树形)
- /// </summary>
- /// <returns></returns>
- [DisableOpLog]
- public async Task<List<SysMenuOutput>> GetAllTreeList()
- {
- return await _menuService.GetAllTreeList();
- }
- }
- }
|