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.
18 lines
513 B
18 lines
513 B
using System;
|
|
|
|
namespace Operation
|
|
{
|
|
//权限的描述,标记在协议请求接口方法上,代表协议需要此权限才能进行访问
|
|
[AttributeUsage(AttributeTargets.Enum | AttributeTargets.Field, AllowMultiple = false)]
|
|
class PermissionMapping : Attribute
|
|
{
|
|
public int PCode;
|
|
public string Name;
|
|
|
|
public PermissionMapping(PermissionCode pCode = 0, string name = "")
|
|
{
|
|
this.PCode = (int)pCode;
|
|
this.Name = name;
|
|
}
|
|
}
|
|
}
|