huawei
3 天以前 63d047db30e03608479ab3d340e925bc3366357c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
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);
    }
}