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.
44 lines
1.2 KiB
44 lines
1.2 KiB
using BaseService.Controllers;
|
|
using BaseService.Systems.TenantManagement;
|
|
using BaseService.Systems.TenantManagement.Dto;
|
|
using BaseService.Systems.UserRoleMenusManagement.Dto;
|
|
using Microsoft.AspNetCore.Mvc;
|
|
using System;
|
|
using System.Threading.Tasks;
|
|
using Volo.Abp.Application.Dtos;
|
|
|
|
namespace BaseService.HttpApi.Systems
|
|
{
|
|
[Area("base")]
|
|
[Route("api/base/tenant")]
|
|
public class TenantController : BaseServiceController, ITenantAppService
|
|
{
|
|
private readonly ITenantAppService _tenantAppService;
|
|
|
|
public TenantController(ITenantAppService tenantAppService)
|
|
{
|
|
_tenantAppService = tenantAppService;
|
|
}
|
|
|
|
[HttpGet]
|
|
[Route("menu/{id}")]
|
|
public Task<ListResultDto<MenusListDto>> GetTenantMenusById(Guid id)
|
|
{
|
|
return _tenantAppService.GetTenantMenusById(id);
|
|
}
|
|
|
|
[HttpGet]
|
|
[Route("menu-list")]
|
|
public Task<ListResultDto<MenusListDto>> GetTenantMenusList()
|
|
{
|
|
return _tenantAppService.GetTenantMenusList();
|
|
}
|
|
|
|
[HttpPost]
|
|
[Route("menu")]
|
|
public Task UpdateTenantMenu(UpdateTenantMenuDto input)
|
|
{
|
|
return _tenantAppService.UpdateTenantMenu(input);
|
|
}
|
|
}
|
|
}
|
|
|