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<List<TreeViewDto>> GetTree()
|
{
|
return _simpleManager.GetTree();
|
}
|
|
[HttpPost("list")]
|
public ResultDto<List<MesSimpleDto>> GetList()
|
{
|
return _simpleManager.GetMenuList();
|
}
|
|
[HttpGet("listByMenuId/{menuId}")]
|
public ResultDto<List<BiViewDto>> GetBiViews(long menuId)
|
{
|
return _simpleManager.GetBiViewsByMenuId(menuId);
|
}
|
}
|