using Microsoft.AspNetCore.Mvc; using NewPdaSqlServer.Dto.Simple; using NewPdaSqlServer.service.Simple; namespace NewPdaSqlServer.Controllers.Simple; [Route("simple")] [ApiController] public class SimpleController : ControllerBase { private readonly SimpleManager _simpleManager = new(); [HttpPost("getTree")] public ResultDto> GetTree() { return _simpleManager.GetTree(); } [HttpPost("list")] public ResultDto> GetList() { return _simpleManager.GetMenuList(); } [HttpGet("listByMenuId/{menuId}")] public ResultDto> GetBiViews(long menuId) { return _simpleManager.GetBiViewsByMenuId(menuId); } }