using Bootstrap.DataAccess; using Microsoft.AspNetCore.Mvc; using System.Collections.Generic; namespace Bootstrap.Admin.Controllers.Api { /// /// /// [Route("api/[controller]")] [ApiController] public class AppsController : ControllerBase { /// /// /// /// /// [HttpPost("{id}")] public IEnumerable Post(string id) => AppHelper.RetrievesByRoleId(id); /// /// 保存应用程序授权 /// /// /// /// [HttpPut("{id}")] public bool Put(string id, [FromBody]IEnumerable appIds) => AppHelper.SaveByRoleId(id, appIds); } }