123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869 |
- namespace AipGateway.Test
- {
- public class ApiResponseModel<T>
- {
- public bool success { get; set; }
- public int errorCode { get; set; }
- public string errorMessage { get; set; } = string.Empty;
- public T result { get; set; }
- }
- public class ResponseFile
- {
- public int errorCode { get; set; } = 0;
- //[JsonIgnore]
- public string errorMessage { get; set; } = string.Empty;
- public string dispFileName { get; set; } = string.Empty;
- public string realFileName { get; set; } = string.Empty;
-
- public string actualFileName { get; set; } = string.Empty;
- }
- public class RequestFile
- {
- //[Required]
- public string dispFileName { get; set; } = string.Empty;
- //[Required]
- public string realFileName { get; set; } = string.Empty;
- public RequestFile()
- {
- }
- }
- public class RequestFileSet
- {
- //[Required]
- public string apiKey { get; set; } = string.Empty;
- //[Required]
- public string email { get; set; } = string.Empty;
- //[JsonIgnore]
- //public string apiGuid { get; set; } = string.Empty;
- //[JsonIgnore]
- //public string decryptKey { get; set; } = string.Empty;
- //[Required]
- public string aipGuid { get; set; } = string.Empty;
- public string comment { get; set; } = string.Empty;
- //[Required]
- public RequestFile file { get; set; }
- public RequestFileSet()
- {
- }
- public RequestFileSet(string apiKey, string email, string aipGuid, string comment, RequestFile file)
- {
- this.apiKey = apiKey;
- this.email = email;
- this.aipGuid = aipGuid;
- this.comment = comment;
- this.file = file;
- }
- }
- }
|