You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
43 lines
1.4 KiB
43 lines
1.4 KiB
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; |
|
} |
|
|
|
} |
|
}
|
|
|