From 30f34f880dc6dd1b54f156d4b914e527b66b1b17 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=BD=87=E9=98=B3=20=E9=82=B9?= Date: Thu, 30 Nov 2023 10:23:52 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E5=AF=B9dto=E7=9A=84?= =?UTF-8?q?=E5=BC=95=E7=94=A8=E3=80=82=E6=B7=BB=E5=8A=A0=E4=B8=8A=E4=BC=A0?= =?UTF-8?q?=E5=9B=BE=E7=89=87=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 24Hour/24Hour.csproj | 5 ++-- 24Hour/TwentySystemProxyClient.cs | 39 ++++++++++++++++++++++++++++++- 2 files changed, 41 insertions(+), 3 deletions(-) diff --git a/24Hour/24Hour.csproj b/24Hour/24Hour.csproj index c7460f4..369ecfb 100644 --- a/24Hour/24Hour.csproj +++ b/24Hour/24Hour.csproj @@ -8,8 +8,8 @@ True e485308c-2f05-470b-b0a4-68f1ec2b3412 Linux - 1.0.1.16 - 1.0.1.16 + 1.0.1.17 + 1.0.1.17 @@ -28,6 +28,7 @@ + diff --git a/24Hour/TwentySystemProxyClient.cs b/24Hour/TwentySystemProxyClient.cs index 74a6009..cff895b 100644 --- a/24Hour/TwentySystemProxyClient.cs +++ b/24Hour/TwentySystemProxyClient.cs @@ -1,9 +1,11 @@ using com.sun.xml.@internal.xsom; +using Dto; using Elight.Entity.APPDto.Lawyer; using Elight.Utility; using Elight.Utility.Code; using Elight.Utility.Extensions; using Microsoft.AspNetCore.DataProtection; +using Microsoft.AspNetCore.Mvc; namespace _24Hour { @@ -20,6 +22,19 @@ namespace _24Hour httpCliet.DefaultRequestHeaders.Add("User-Agent", "HttpClientFactory-Sample"); httpCliet.DefaultRequestHeaders.ConnectionClose = true; } + + /// + /// 申请人资格资料 + /// + /// + [HttpPost("UploadImage")] + public async Task UploadImage(UploadDto dto) + { + var request = await httpCliet.PostAsJsonAsync($"/TwentySystem/UploadImage", dto); + var response = await request.EnsureSuccessStatusCode().Content.ReadAsStringAsync(); + return response.ConvertToModel(); + } + public async Task>> GetCaseList(string? casename, string? bmsah, string? dwbm, DateTime? starttime, DateTime? endtime, int page, int size) { Result> Result = new(); @@ -91,7 +106,6 @@ namespace _24Hour } return Result; } - public async Task> GetArchivesInfo(string bmsah, string dwbm) { var result = new Result(); @@ -200,5 +214,28 @@ namespace _24Hour public string? sfkcz { get; set; } public string? qlzt { get; set; } } + class MyClass + { + /// + /// 部门受案号 + /// + public string bmsah { get; set; } + + /// + /// base64字符串 + /// + public string ImageStr { get; set; } + + /// + /// 1423000000100-律师执业证书, + /// 1423000000200-律师事务所证, + /// 1423000000300-授权委托书, + /// 1423000000400-法律援助公函, + /// 1423000000500-身份证件 , + /// 1423000000600-关系证明材料, + /// 1423000000700-其他 + /// + public string Code { get; set; } + } } }