转移.net core 3.1,为.NET 5做准备

This commit is contained in:
ÂëÉñ
2020-10-22 14:59:36 +08:00
parent fd9bca23a7
commit a35d596237
1080 changed files with 175912 additions and 185681 deletions

View File

@@ -0,0 +1,36 @@
using Infrastructure;
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Mvc;
using Microsoft.Extensions.Options;
using OpenAuth.App;
namespace OpenAuth.Mvc.Controllers
{
/// <summary>
/// 系统配置信息
/// </summary>
public class SysConfController : Controller
{
private IOptions<AppSetting> _appConfiguration;
public SysConfController(IOptions<AppSetting> appConfiguration)
{
_appConfiguration = appConfiguration;
}
/// <summary>
/// 是否Identity认证
/// </summary>
/// <returns></returns>
[AllowAnonymous]
public string IsIdentityAuth()
{
var result = new Response<bool>
{
Result = _appConfiguration.Value.IsIdentityAuth
};
return JsonHelper.Instance.Serialize(result);
}
}
}