chenhaozhe
2026-04-16 d6a8c7e9ef3f740cdcc0e494f8f07539ec3cf0b3
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
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; }
        /// <summary>
        /// 无参构造(支持单独赋值属性)
        /// </summary>
        public PermissionAttribute()
        {
        }
        public PermissionAttribute(string hModName,string operate)
        {
            HModName = hModName;
            Operate = operate;
        }
    }
}