namespace MiaoYu.Core.Permission.Attributes;
///
/// action 功能模块描述
///
[AttributeUsage(AttributeTargets.Method, AllowMultiple = true, Inherited = true)]
public class ActionDescriptorAttribute : Attribute
{
///
/// 功能名称
///
private readonly string _functionName;
///
/// 接口显示名称
///
public string? DisplayName { get; set; }
public ActionDescriptorAttribute()
{
}
public ActionDescriptorAttribute(string functionName)
{
_functionName = functionName;
}
///
/// 获取功能名称
///
///
public string? GetFunctionName() => _functionName;
}