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; } } }