1 changed files with 43 additions and 0 deletions
@ -0,0 +1,43 @@ |
|||||||
|
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<JZJBXXDto> GetArchivesInfo(string bmsah) |
||||||
|
{ |
||||||
|
var path = Path.Combine(Environment.CurrentDirectory, "datajson.txt"); |
||||||
|
var json = await System.IO.File.ReadAllTextAsync(path); |
||||||
|
var convert = json.ConvertToModel<JZJBXXDto>(); |
||||||
|
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; |
||||||
|
} |
||||||
|
|
||||||
|
} |
||||||
|
} |
Loading…
Reference in new issue