Browse Source

添加对dto的引用。添加上传图片接口

develop
胡超1 2 years ago
parent
commit
30f34f880d
  1. 5
      24Hour/24Hour.csproj
  2. 39
      24Hour/TwentySystemProxyClient.cs

5
24Hour/24Hour.csproj

@ -8,8 +8,8 @@
<GenerateDocumentationFile>True</GenerateDocumentationFile> <GenerateDocumentationFile>True</GenerateDocumentationFile>
<UserSecretsId>e485308c-2f05-470b-b0a4-68f1ec2b3412</UserSecretsId> <UserSecretsId>e485308c-2f05-470b-b0a4-68f1ec2b3412</UserSecretsId>
<DockerDefaultTargetOS>Linux</DockerDefaultTargetOS> <DockerDefaultTargetOS>Linux</DockerDefaultTargetOS>
<AssemblyVersion>1.0.1.16</AssemblyVersion> <AssemblyVersion>1.0.1.17</AssemblyVersion>
<Version>1.0.1.16</Version> <Version>1.0.1.17</Version>
</PropertyGroup> </PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'"> <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
@ -28,6 +28,7 @@
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>
<ProjectReference Include="..\Dto\Dto.csproj" />
<ProjectReference Include="..\Elight.Entity\Elight.Entity.csproj" /> <ProjectReference Include="..\Elight.Entity\Elight.Entity.csproj" />
<ProjectReference Include="..\Elight.Logic\Elight.Logic.csproj" /> <ProjectReference Include="..\Elight.Logic\Elight.Logic.csproj" />
<ProjectReference Include="..\Elight.Utility\Elight.Utility.csproj" /> <ProjectReference Include="..\Elight.Utility\Elight.Utility.csproj" />

39
24Hour/TwentySystemProxyClient.cs

@ -1,9 +1,11 @@
using com.sun.xml.@internal.xsom; using com.sun.xml.@internal.xsom;
using Dto;
using Elight.Entity.APPDto.Lawyer; using Elight.Entity.APPDto.Lawyer;
using Elight.Utility; using Elight.Utility;
using Elight.Utility.Code; using Elight.Utility.Code;
using Elight.Utility.Extensions; using Elight.Utility.Extensions;
using Microsoft.AspNetCore.DataProtection; using Microsoft.AspNetCore.DataProtection;
using Microsoft.AspNetCore.Mvc;
namespace _24Hour namespace _24Hour
{ {
@ -20,6 +22,19 @@ namespace _24Hour
httpCliet.DefaultRequestHeaders.Add("User-Agent", "HttpClientFactory-Sample"); httpCliet.DefaultRequestHeaders.Add("User-Agent", "HttpClientFactory-Sample");
httpCliet.DefaultRequestHeaders.ConnectionClose = true; httpCliet.DefaultRequestHeaders.ConnectionClose = true;
} }
/// <summary>
/// 申请人资格资料
/// </summary>
/// <returns></returns>
[HttpPost("UploadImage")]
public async Task<Result> UploadImage(UploadDto dto)
{
var request = await httpCliet.PostAsJsonAsync($"/TwentySystem/UploadImage", dto);
var response = await request.EnsureSuccessStatusCode().Content.ReadAsStringAsync();
return response.ConvertToModel<Result>();
}
public async Task<Result<QueryResult<CaseInfo>>> GetCaseList(string? casename, string? bmsah, string? dwbm, DateTime? starttime, DateTime? endtime, int page, int size) public async Task<Result<QueryResult<CaseInfo>>> GetCaseList(string? casename, string? bmsah, string? dwbm, DateTime? starttime, DateTime? endtime, int page, int size)
{ {
Result<QueryResult<CaseInfo>> Result = new(); Result<QueryResult<CaseInfo>> Result = new();
@ -91,7 +106,6 @@ namespace _24Hour
} }
return Result; return Result;
} }
public async Task<Result<JZJBXXDto>> GetArchivesInfo(string bmsah, string dwbm) public async Task<Result<JZJBXXDto>> GetArchivesInfo(string bmsah, string dwbm)
{ {
var result = new Result<JZJBXXDto>(); var result = new Result<JZJBXXDto>();
@ -200,5 +214,28 @@ namespace _24Hour
public string? sfkcz { get; set; } public string? sfkcz { get; set; }
public string? qlzt { get; set; } public string? qlzt { get; set; }
} }
class MyClass
{
/// <summary>
/// 部门受案号
/// </summary>
public string bmsah { get; set; }
/// <summary>
/// base64字符串
/// </summary>
public string ImageStr { get; set; }
/// <summary>
/// 1423000000100-律师执业证书,
/// 1423000000200-律师事务所证,
/// 1423000000300-授权委托书,
/// 1423000000400-法律援助公函,
/// 1423000000500-身份证件 ,
/// 1423000000600-关系证明材料,
/// 1423000000700-其他
/// </summary>
public string Code { get; set; }
}
} }
} }

Loading…
Cancel
Save