25개 이상의 토픽을 선택하실 수 없습니다. Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

30 lines
598 B

  1. using System;
  2. using System.Collections.Generic;
  3. using System.Text;
  4. namespace JT808.Gateway.Dtos
  5. {
  6. public class JT808ResultDto<T>
  7. {
  8. public JT808ResultDto()
  9. {
  10. Code = JT808ResultCode.Ok;
  11. }
  12. public string Message { get; set; }
  13. public int Code { get; set; }
  14. public T Data { get; set; }
  15. }
  16. public class JT808ResultCode
  17. {
  18. public const int Ok = 200;
  19. public const int Empty = 201;
  20. public const int NotFound = 404;
  21. public const int Fail = 400;
  22. public const int Error = 500;
  23. }
  24. }