using Bootstrap.Admin.Query;
using Bootstrap.DataAccess;
using Longbow.Web.Mvc;
using Microsoft.AspNetCore.Mvc;
using System.Collections.Generic;
using System.Linq;
namespace Bootstrap.Admin.Controllers.Api
{
///
///
///
[Route("api/[controller]")]
public class RolesController : Controller
{
///
///
///
///
///
[HttpGet]
public QueryData Get(QueryRoleOption value)
{
return value.RetrieveData();
}
///
/// 通过指定用户ID/部门ID/菜单ID获得所有角色集合,已经授权的有checked标记
///
/// 用户ID/部门ID/菜单ID
/// 类型
///
[HttpPost("{id}")]
public IEnumerable