RequestFileSet.cs 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. namespace AipGateway.Test
  2. {
  3. public class ApiResponseModel<T>
  4. {
  5. public bool success { get; set; }
  6. public int errorCode { get; set; }
  7. public string errorMessage { get; set; } = string.Empty;
  8. public T result { get; set; }
  9. }
  10. public class ResponseFile
  11. {
  12. public int errorCode { get; set; } = 0;
  13. //[JsonIgnore]
  14. public string errorMessage { get; set; } = string.Empty;
  15. public string dispFileName { get; set; } = string.Empty;
  16. public string realFileName { get; set; } = string.Empty;
  17. public string actualFileName { get; set; } = string.Empty;
  18. }
  19. public class RequestFile
  20. {
  21. //[Required]
  22. public string dispFileName { get; set; } = string.Empty;
  23. //[Required]
  24. public string realFileName { get; set; } = string.Empty;
  25. public RequestFile()
  26. {
  27. }
  28. }
  29. public class RequestFileSet
  30. {
  31. //[Required]
  32. public string apiKey { get; set; } = string.Empty;
  33. //[Required]
  34. public string email { get; set; } = string.Empty;
  35. //[JsonIgnore]
  36. //public string apiGuid { get; set; } = string.Empty;
  37. //[JsonIgnore]
  38. //public string decryptKey { get; set; } = string.Empty;
  39. //[Required]
  40. public string aipGuid { get; set; } = string.Empty;
  41. public string comment { get; set; } = string.Empty;
  42. //[Required]
  43. public RequestFile file { get; set; }
  44. public RequestFileSet()
  45. {
  46. }
  47. public RequestFileSet(string apiKey, string email, string aipGuid, string comment, RequestFile file)
  48. {
  49. this.apiKey = apiKey;
  50. this.email = email;
  51. this.aipGuid = aipGuid;
  52. this.comment = comment;
  53. this.file = file;
  54. }
  55. }
  56. }