using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace HuanMeng.DotNetCore.AttributeExtend
{
    /// <summary>
    /// 执行成功后返回的消息
    /// </summary>
    [AttributeUsage(AttributeTargets.Method)]
    public class MessageAttribute : Attribute
    {
        /// <summary>
        /// 执行成功后返回的消息
        /// </summary>
        /// <param name="message">消息内容</param>
        public MessageAttribute(string message)
        {
            Message = message;
        }

        public string Message { get; set; }
    }
}
