Files
qhmes/yy-admin-master/YY.Admin.Core/Attribute/OperateCodeAttribute.cs

28 lines
638 B
C#

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace YY.Admin.Core
{
/// <summary>
/// 表示查询操作的前台操作码
/// </summary>
public class OperateCodeAttribute : Attribute
{
/// <summary>
/// 初始化一个<see cref="OperateCodeAttribute"/>类型的新实例
/// </summary>
public OperateCodeAttribute(string code)
{
Code = code;
}
/// <summary>
/// 获取 属性名称
/// </summary>
public string Code { get; private set; }
}
}