using BPA.SAAS.Manage.Application.System.Dtos; using BPA.SAAS.Manage.Application.System.Interface; using System; using System.Collections.Generic; using System.Drawing.Drawing2D; using System.Linq; using System.Text; using System.Threading.Tasks; namespace BPA.SAAS.Manage.Application.System { [ApiDescriptionSettings("SYS", Tag = "菜单信息")] public class MenuServices: IDynamicApiController { IMenuService _menuService; public MenuServices(IMenuService menuService) { _menuService = menuService; } [HttpPost("/api/menu/getmenutreepage")] public async Task> GetMenuTreePage(MenuTreeSearchDtoInput input) { return await _menuService.GetMenuTreePage(input); } /// /// 添加菜单 /// /// /// [HttpPost("/api/menu/add")] public async Task Add(MenuDtoInput input) { return await _menuService.Add(input); } /// /// 编辑菜单 /// /// /// [HttpPost("/api/menu/update")] public async Task Update(MenuDtoInput input) { return await _menuService.Update(input); } /// /// 删除菜单 /// /// /// [HttpPost("/api/menu/delete")] public async Task Delete(List input) { return await _menuService.Delete(input); } /// /// 查询菜单树 /// /// /// [HttpGet("/api/menu/menutrees")] public async Task> MenuTree(string GetType) { return await _menuService.MenuTree(GetType); } [HttpGet("/api/menu/menutreesall")] public async Task> MenuTree() { return await _menuService.MenuTree(); } [HttpGet("/api/menu/menuparmytrees")] public async Task> MenuParmyTree(string GetType, string type) { return await _menuService.MenuParmyTree(GetType, type); } [HttpGet("/api/menu/menutree")] public async Task> DymicMenuTree(int type) { return await _menuService.DymicMenuTree(type); } [HttpGet("/api/menu/enable")] public async Task Enable(string Id) { return await _menuService.Enable(Id); } [HttpGet("/api/menu/disable")] public async Task Disable(string Id) { return await _menuService.Disable(Id); } } }