using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace HuanMeng.DotNetCore.AttributeExtend
{
///
/// 消息特性,用于标记控制器方法返回的消息内容
///
[AttributeUsage(AttributeTargets.Method, AllowMultiple = false, Inherited = true)]
public class MessageAttribute : Attribute
{
///
/// 消息内容
///
public string Message { get; }
///
/// 构造函数
///
/// 消息内容
public MessageAttribute(string message)
{
Message = message;
}
}
}