JsonView.cs 506 B

12345678910111213141516171819202122232425
  1. namespace OASystem.Domain.ViewModels;
  2. /// <summary>
  3. /// 统一返回结构
  4. /// </summary>
  5. public class JsonView
  6. {
  7. /// <summary>
  8. /// 状态码
  9. /// </summary>
  10. public int Code { get; set; } = 400;
  11. /// <summary>
  12. /// 消息
  13. /// </summary>
  14. public string? Msg { get; set; } = "";
  15. /// <summary>
  16. /// 条数
  17. /// </summary>
  18. public int? Count { get; set; } = 0;
  19. /// <summary>
  20. /// 数据
  21. /// </summary>
  22. public object? Data { get; set; } = new { } ;
  23. }