using System; using System.Collections.Generic; using System.Linq; using System.Web; namespace WebAPI.Utility { [AttributeUsage(AttributeTargets.Class | AttributeTargets.Method)] public class PermissionAttribute : Attribute { public string HModName { get; } public string Operate { get; } public PermissionAttribute(string hModName,string operate) { HModName = hModName; Operate = operate; } } }