using Bootstrap.DataAccess; using Bootstrap.Security; using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.Mvc; using System.Collections.Generic; namespace Bootstrap.Admin.Controllers { /// /// /// [Route("api/[controller]/[action]")] [AllowAnonymous] [ApiController] public class InterfaceController : ControllerBase { /// /// /// /// [HttpPost] public IEnumerable RetrieveDicts() { return DictHelper.RetrieveDicts(); } /// /// /// /// [HttpPost] public IEnumerable RetrieveRolesByUrl([FromBody]string url) { return RoleHelper.RetrieveRolesByUrl(url); } /// /// /// /// [HttpPost] public IEnumerable RetrieveRolesByUserName([FromBody]string userName) { return RoleHelper.RetrieveRolesByUserName(userName); } /// /// /// /// [HttpPost] public BootstrapUser RetrieveUserByUserName([FromBody]string userName) { return UserHelper.RetrieveUserByUserName(userName); } /// /// /// /// [HttpPost] public IEnumerable RetrieveAppMenus([FromBody]AppMenuOption args) { return MenuHelper.RetrieveAppMenus(args.AppId, args.UserName, args.Url); } } }