namespace Tiobon.Core.Controllers;
///
/// 公共服务
///
[Produces("application/json")]
[Route("api/Common")]
[Authorize(Permissions.Name), ApiExplorerSettings(GroupName = Grouping.GroupName_System)]
public class CommonController : BaseApiController
{
private readonly ILogger _logger;
private readonly ICommonServices _commonServices;
///
/// 构造函数
///
///
///
public CommonController(ILogger logger, ICommonServices commonServices)
{
_commonServices = commonServices;
_logger = logger;
}
#region 获取菜单
///
/// 获取菜单
///
///
///
[HttpPost, Route("GetMenu")]
public async Task> GetMenuAsync([FromBody] MenuParam param)
{
return await _commonServices.GetMenuAsync(param);
}
#endregion
#region 获取模块信息接口
///
/// 获取模块信息接口
///
///
///
[HttpPost, Route("GetModuleInfo")]
public async Task> GetModuleInfoAsync([FromBody] ModuleParam param)
{
return await _commonServices.GetModuleInfoAsync(param);
}
#endregion
#region 获取模块信息接口
///
/// 获取模块信息接口
///
///
///
[HttpPost, Route("GetSelect")]
public async Task> GetSelectAsync(string type)
{
return await _commonServices.GetSelectAsync(type);
}
#endregion
}