using System; namespace medical.insu.transfomer.Attributes { /// /// 标记不需要认证的API方法 /// 可以应用于类(控制器)或方法 /// [AttributeUsage(AttributeTargets.Class | AttributeTargets.Method, AllowMultiple = false, Inherited = true)] public class SkipAuthAttribute : Attribute { /// /// 说明 /// public string Description { get; set; } /// /// 构造函数 /// public SkipAuthAttribute() { } /// /// 带说明的构造函数 /// /// 免验证的说明 public SkipAuthAttribute(string description) { Description = description; } } }