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