chenhaozhe
8 天以前 c3c3ba8325acc965729de86b896f4dbeea80b8a2
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;
        }
    }
}