namespace Tiobon.Core.Controllers; /// /// 公共服务 /// [Produces("application/json")] [Route("api/Common")] [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 }