iotgateway/WalkingTec.Mvvm/WalkingTec.Mvvm.Core/Attributes/PublicAttribute.cs

15 lines
471 B
C#
Raw Normal View History

2021-12-14 06:10:44 +00:00
using System;
using Microsoft.AspNetCore.Authorization;
namespace WalkingTec.Mvvm.Core
{
//[Obsolete("已废弃预计v3.0版本及v2.10版本开始将删除")]
/// <summary>
/// 标记Action返回的为公共页面跳过权限验证不需要登录即可访问
/// </summary>
[AttributeUsage(AttributeTargets.Method | AttributeTargets.Class, AllowMultiple = false)]
public class PublicAttribute : Attribute, IAllowAnonymous
{
}
}