You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
40 lines
1.2 KiB
40 lines
1.2 KiB
3 years ago
|
using Microsoft.AspNetCore.Mvc;
|
||
|
using System.Threading.Tasks;
|
||
|
using Volo.Abp;
|
||
|
|
||
|
namespace Sanhe.Abp.MenuManagement
|
||
|
{
|
||
|
/// <summary>
|
||
|
/// 菜单分配
|
||
|
/// </summary>
|
||
|
[RemoteService]
|
||
|
[Route("api/menu-management/menu-grant")]
|
||
|
public class MenuGrantController : MenuManagementController, IMenuGrantAppService
|
||
|
{
|
||
|
private readonly IMenuGrantAppService _menuGrantAppService;
|
||
|
|
||
|
public MenuGrantController(IMenuGrantAppService menuGrantAppService)
|
||
|
{
|
||
|
_menuGrantAppService = menuGrantAppService;
|
||
|
}
|
||
|
|
||
|
[HttpGet("list")]
|
||
|
public virtual Task<GetMenuResultDto> GetListAsync()
|
||
|
{
|
||
|
return _menuGrantAppService.GetListAsync();
|
||
|
}
|
||
|
|
||
|
[HttpGet]
|
||
|
public virtual Task<GetMenuGrantListResultDto> GetAsync(string providerName, string providerKey)
|
||
|
{
|
||
|
return _menuGrantAppService.GetAsync(providerName, providerKey);
|
||
|
}
|
||
|
|
||
|
[HttpPut]
|
||
|
public virtual Task UpdateAsync(string providerName, string providerKey, UpdateMenuGrantsDto input)
|
||
|
{
|
||
|
return _menuGrantAppService.UpdateAsync(providerName, providerKey, input);
|
||
|
}
|
||
|
}
|
||
|
}
|