fix 处理上传照片url问题

This commit is contained in:
2024-12-01 14:25:39 +08:00
parent 8e14e625e8
commit 9d398791ed
3 changed files with 21 additions and 3 deletions

View File

@@ -82,6 +82,6 @@ public interface IJinkoJipApi
/// <param name="base64"></param>
/// <returns></returns>
[Post("/JIP/HCM/HCM_I_PHOTO")]
[RequestContentHandler(typeof(SyncFaceContentHandler))]
Task<SapFaceSyncResponse> SyncFaceToSapAsync(string userCode, string base64);
//[RequestContentHandler(typeof(SyncFaceContentHandler))]
Task<SapFaceSyncResponse> SyncFaceToSapAsync(SyncFaceRequest request);
}

View File

@@ -0,0 +1,12 @@
using Newtonsoft.Json;
namespace Dlhis.Jip.Api.Requests;
public class SyncFaceRequest
{
[JsonProperty("I_WORKCODE")]
public string UserCode { get; set; }
[JsonProperty("I_PHOTO_STR")]
public string Base64 { get; set; }
}