Files
Yi.Framework/Yi.Furion.Net6/Yi.Framework.Infrastructure/Attributes/PermissionAttribute.cs
2023-04-18 20:29:53 +08:00

24 lines
472 B
C#

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Mvc.Filters;
namespace Yi.Framework.Infrastructure.Attributes
{
[AttributeUsage(AttributeTargets.Method)]
public class PermissionAttribute : ActionFilterAttribute
{
internal string Code { get; set; }
public PermissionAttribute(string code)
{
Code = code;
}
}
}