服务端的TigerApi 框架,基于.NET6 2024 版本
Rodney Chen
2025-04-02 76245024a71fedf2e9c9cb03fd489851f81bce55
Tiger.Model.Net/Entitys/Api/Base.cs
@@ -1,4 +1,5 @@
using System.Collections.Generic;
using System.ComponentModel;
namespace Tiger.Model
{
@@ -24,4 +25,52 @@
        public int total { get; set; }
    }
    public class ShortMessage
    {
        public ShortMessage(string msg, Types type)
        {
            Content = msg;
            Type = type;
        }
        public string Content { get; set; }
        public Types Type { get; set; }
        /// <summary>
        /// 信息类型
        /// </summary>
        public enum Types
        {
            /// <summary>
            /// 默认信息
            /// </summary>
            [Description("默认信息")]
            Normal,
            /// <summary>
            /// 成功信息
            /// </summary>
            [Description("成功信息")]
            Success,
            /// <summary>
            /// 警告信息
            /// </summary>
            [Description("警告信息")]
            Warning,
            /// <summary>
            /// 错误信息
            /// </summary>
            [Description("错误信息")]
            Error,
            /// <summary>
            /// 失败信息
            /// </summary>
            [Description("失败信息")]
            Failed,
            /// <summary>
            /// 异常信息
            /// </summary>
            [Description("异常信息")]
            Exception,
        }
    }
}