using System;
using FAuth.Extensions;
using FAuth.Models;
using Microsoft.AspNetCore.Mvc;
using Microsoft.Extensions.Logging;
namespace FAuth.Controllers.api
{
///
/// api控制器基类
///
[Area("api")]
//[ApiController]
[Route("api/[Controller]/[Action]")]
[ServiceFilter(typeof(ApiExceptionFilterAttribute))]
[ProducesResponseType(typeof(ApiErrorResult),500)]
[ProducesResponseType(typeof(ApiErrorResult),400)]
public abstract class ApiControllerBase:ControllerBase
{
public ApiControllerBase(ILogger logger,IServiceProvider service) : base(logger,service) {
}
//public override Task OnActionExecutionAsync(ActionExecutingContext context,ActionExecutionDelegate next) {
// return base.OnActionExecutionAsync(context,next);
//}
}
}