using System; using System.Collections.Generic; using System.Linq; using System.Web; namespace WebAPI.Utility { [AttributeUsage(AttributeTargets.Class | AttributeTargets.Method, AllowMultiple = false)] public class PermissionAttribute : Attribute { public string HModName { get; set; } public string Operate { get; set; } /// /// 无参构造(支持单独赋值属性) /// public PermissionAttribute() { } public PermissionAttribute(string hModName,string operate) { HModName = hModName; Operate = operate; } } }