From fda6f23b4163e20fce1b180fb160b2304684db7f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=BD=87=E9=98=B3=20=E9=82=B9?= Date: Tue, 31 Oct 2023 09:08:30 +0800 Subject: [PATCH] =?UTF-8?q?=E9=87=8D=E5=91=BD=E5=90=8DCaseServiceTwentyCli?= =?UTF-8?q?ent?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 24Hour/CaseServiceTwentyClient.cs | 43 ------------------------------- 1 file changed, 43 deletions(-) delete mode 100644 24Hour/CaseServiceTwentyClient.cs diff --git a/24Hour/CaseServiceTwentyClient.cs b/24Hour/CaseServiceTwentyClient.cs deleted file mode 100644 index 946bca6..0000000 --- a/24Hour/CaseServiceTwentyClient.cs +++ /dev/null @@ -1,43 +0,0 @@ -using com.sun.xml.@internal.xsom; -using Elight.Entity.APPDto.Lawyer; -using Elight.Utility.Extensions; -using Microsoft.AspNetCore.DataProtection; - -namespace _24Hour -{ - public class CaseServiceTwentyClient - { - private readonly HttpClient httpCliet; - public CaseServiceTwentyClient(HttpClient _httpCliet) - { - this.httpCliet = _httpCliet; - - httpCliet.DefaultRequestHeaders.Add("Accept", "application/json"); - httpCliet.DefaultRequestHeaders.Add("User-Agent", "HttpClientFactory-Sample"); - httpCliet.DefaultRequestHeaders.ConnectionClose = true; - } - public object GetCaseList() - { - return null; - } - public async Task GetArchivesInfo(string bmsah) - { - var path = Path.Combine(Environment.CurrentDirectory, "datajson.txt"); - var json = await System.IO.File.ReadAllTextAsync(path); - var convert = json.ConvertToModel(); - convert.Id = Guid.NewGuid().ToString(); - foreach (var ml in convert.jzml) - { - ml.Id = Guid.NewGuid().ToString(); - ml.jzId = convert.Id; - foreach (var item in ml.jzwj) - { - item.jzmlId = ml.Id; - item.Id = Guid.NewGuid().ToString(); - } - } - return convert; - } - - } -}