소스 검색

修复异常

qinchaoyue 2 달 전
부모
커밋
1de27940b7

+ 0 - 4
src/Hotline/CallCenter/Tels/CallTelDomain/QueryTelRequest.cs

@@ -34,18 +34,14 @@ public class QueryBlacklistRequest
 }
 public class QueryBlacklistResponse
 {
-    [JsonPropertyName("uuid")]
     public string Id { get; set; }
 
-    [JsonPropertyName("user_uuid")]
     public string UserId { get; set; }
 
-    [JsonPropertyName("created_at")]
     public string CreationTime { get; set; }
 
     public string Phone { get; set; }
 
-    [JsonPropertyName("special_flag")]
     public int SpecialFlag { get; set; }
 
     public int? Priority { get; set; }

+ 0 - 9
src/Hotline/CallCenter/Tels/CallTelDomain/QueryTelResponse.cs

@@ -9,29 +9,20 @@ using System.Threading.Tasks;
 namespace Hotline.CallCenter.Tels.CallTelDomain;
 public class QueryTelResponse
 {
-    [JsonPropertyName("uuid")]
     public string Id { get; set; }
     public string Name { get; set; }
-    [JsonPropertyName("nbr")]
     public string TelNo { get; set; }
     public string Description { get; set; }
-
     public string Password { get; set; }
-
-    [JsonPropertyName("queue_id")]
     public string QueueId { get; set; }
-
 }
 
 public class QueryTelStateResponse
 {
-    [JsonPropertyName("count")]
     public string Count { get; set; }
 
-    [JsonPropertyName("agents")]
     public List<Agent>? AgentList { get; set; }
 
-    [JsonPropertyName("agent")]
     public List<Agent>? Agents { get; set; }
 }
 

+ 1 - 1
src/Tr.Sdk/CallTelClient.cs

@@ -30,7 +30,7 @@ public class CallTelClient : ICallTelClient
     public async Task<List<QueryBlacklistResponse>> QueryBlacklistAsync(QueryBlacklistRequest request, CancellationToken token)
     {
         var result = await _trClient.QueryBlacklistAsync(request.Adapt<Blacklist.QueryBlacklistRequest>(), token);
-        return request.Adapt<List<QueryBlacklistResponse>>();
+        return result.Adapt<List<QueryBlacklistResponse>>();
     }
 
     public async Task<List<QueryTelResponse>> QueryTelsAsync(QueryTelRequest request, CancellationToken cancellationToken)