You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
31 lines
847 B
31 lines
847 B
using System; |
|
|
|
namespace medical.insu.transfomer.Attributes |
|
{ |
|
/// <summary> |
|
/// 标记不需要认证的API方法 |
|
/// 可以应用于类(控制器)或方法 |
|
/// </summary> |
|
[AttributeUsage(AttributeTargets.Class | AttributeTargets.Method, AllowMultiple = false, Inherited = true)] |
|
public class SkipAuthAttribute : Attribute |
|
{ |
|
/// <summary> |
|
/// 说明 |
|
/// </summary> |
|
public string Description { get; set; } |
|
|
|
/// <summary> |
|
/// 构造函数 |
|
/// </summary> |
|
public SkipAuthAttribute() { } |
|
|
|
/// <summary> |
|
/// 带说明的构造函数 |
|
/// </summary> |
|
/// <param name="description">免验证的说明</param> |
|
public SkipAuthAttribute(string description) |
|
{ |
|
Description = description; |
|
} |
|
} |
|
} |