From d6111ca1fa9f70afc50c8213f81c9d78c14a6527 Mon Sep 17 00:00:00 2001 From: duheng <2784771470@qq.com> Date: 星期三, 22 一月 2025 14:37:21 +0800 Subject: [PATCH] 阀门单独匹配修改 --- BLL/HStation.BLL.TransferFile.Core/02-httpclient/01-user/TransferFileUser.cs | 40 ++++++++++++++++++++++++++++++---------- 1 files changed, 30 insertions(+), 10 deletions(-) diff --git a/BLL/HStation.BLL.TransferFile.Core/02-httpclient/01-user/TransferFileUser.cs b/BLL/HStation.BLL.TransferFile.Core/02-httpclient/01-user/TransferFileUser.cs index 5deb91e..225e98a 100644 --- a/BLL/HStation.BLL.TransferFile.Core/02-httpclient/01-user/TransferFileUser.cs +++ b/BLL/HStation.BLL.TransferFile.Core/02-httpclient/01-user/TransferFileUser.cs @@ -12,29 +12,49 @@ get { return $"{HStation.BLL.TransferFile.ConfigHelper.HttpUrl}/Transfer/File/User"; } } - public Task<bool> Active(ActiveTransferFileUserInput input) + public async Task<bool> Active(ActiveTransferFileUserInput input) { - throw new NotImplementedException(); + var paras = new List<(string Name, object Value)>() + { + (nameof(input),input), + }; + return await GetUrl("Active@V1.0").Post<bool>(paras); } - public Task<TransferFileUserDto> GetByName(string input) + public async Task<TransferFileUserDto> GetByName(string input) { - throw new NotImplementedException(); + var paras = new List<(string Name, object Value)>() + { + (nameof(input),input), + }; + return await GetUrl("GetByName@V1.0").Get<TransferFileUserDto>(paras); } - public Task<bool> Invalid(InvalidTransferFileUserInput input) + public async Task<bool> Invalid(InvalidTransferFileUserInput input) { - throw new NotImplementedException(); + var paras = new List<(string Name, object Value)>() + { + (nameof(input),input), + }; + return await GetUrl("Invalid@V1.0").Post<bool>(paras); } - public Task<bool> IsExistName(string input) + public async Task<bool> IsExistName(string input) { - throw new NotImplementedException(); + var paras = new List<(string Name, object Value)>() + { + (nameof(input),input), + }; + return await GetUrl("IsExistName@V1.0").Get<bool>(paras); } - public Task<bool> IsExistNameExceptID(NameExceptInput input) + public async Task<bool> IsExistNameExceptID(NameExceptInput input) { - throw new NotImplementedException(); + var paras = new List<(string Name, object Value)>() + { + (nameof(input),input), + }; + return await GetUrl("IsExistNameExceptID@V1.0").Get<bool>(paras); } } } \ No newline at end of file -- Gitblit v1.9.3