| | |
| | | using System.Collections.Generic; |
| | | using System.ComponentModel; |
| | | |
| | | namespace Tiger.Model |
| | | { |
| | |
| | | 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, |
| | | } |
| | | } |
| | | } |