纽威
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

40 lines
915 B

3 years ago
  1. namespace NFine.Code
  2. {
  3. public class AjaxResult
  4. {
  5. /// <summary>
  6. /// 操作结果类型
  7. /// </summary>
  8. public object state { get; set; }
  9. /// <summary>
  10. /// 获取 消息内容
  11. /// </summary>
  12. public string message { get; set; }
  13. /// <summary>
  14. /// 获取 返回数据
  15. /// </summary>
  16. public object data { get; set; }
  17. }
  18. /// <summary>
  19. /// 表示 ajax 操作结果类型的枚举
  20. /// </summary>
  21. public enum ResultType
  22. {
  23. /// <summary>
  24. /// 消息结果类型
  25. /// </summary>
  26. info,
  27. /// <summary>
  28. /// 成功结果类型
  29. /// </summary>
  30. success,
  31. /// <summary>
  32. /// 警告结果类型
  33. /// </summary>
  34. warning,
  35. /// <summary>
  36. /// 异常结果类型
  37. /// </summary>
  38. error
  39. }
  40. }