ResponseEntity.cs 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. using System.Collections.Generic;
  2. namespace DocTools.Entity.Doc
  3. {
  4. public class ResponseEntity
  5. {
  6. public ResponseResultEntity error { get; set; } = new ResponseResultEntity();
  7. public ResponseResultEntity success { get; set; } = new ResponseResultEntity();
  8. }
  9. public class ResponseParameterEntity
  10. {
  11. public string description { get; set; } = string.Empty;
  12. public int is_checked { get; set; } = 0;
  13. public string key { get; set; } = string.Empty;
  14. public string type { get; set; } = string.Empty;
  15. public string not_null { get; set; } = string.Empty;
  16. public string field_type { get; set; } = string.Empty;
  17. public object value { get; set; } = string.Empty;
  18. //0表示默认,啥也不干,1-表示为enum类型
  19. public int field_type_value { get; set; } = 0;
  20. public string field_type_target_id { get; set; } = string.Empty;
  21. public string file_name { get; set; } = string.Empty;
  22. }
  23. public class ResponseResultEntity
  24. {
  25. public string raw { get; set; } = string.Empty;
  26. public List<ResponseParameterEntity> parameter { get; set; } = new List<ResponseParameterEntity>();
  27. public List<ExceptionResultEntity> error_result { get; set; } = new List<ExceptionResultEntity>();
  28. }
  29. public class ExceptionResultEntity
  30. {
  31. public string title { get; set; } = string.Empty;
  32. public string name { get; set; } = string.Empty;
  33. public List<string> header { get; set; } = new List<string>();
  34. public List<ExceptionContentEntity> content { get; set; } = new List<ExceptionContentEntity>();
  35. }
  36. public class ExceptionContentEntity
  37. {
  38. public List<string> content_data { get; set; } = new List<string>();
  39. }
  40. }