iotgateway/WalkingTec.Mvvm/WalkingTec.Mvvm.Core/Attributes/PublicAttribute.cs
2021-12-14 14:10:44 +08:00

15 lines
471 B
C#
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

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
{
}
}