From 67abe8d2af8cf0a21d915ed62dcc4c738e9adcbc Mon Sep 17 00:00:00 2001 From: duheng <2784771470@qq.com> Date: 星期五, 30 八月 2024 18:39:00 +0800 Subject: [PATCH] 增加httpclient --- BLL/HStation.BLL.Xhs.Core/02-httpclient/XhsProject.cs | 45 +++++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 45 insertions(+), 0 deletions(-) diff --git a/BLL/HStation.BLL.Xhs.Core/02-httpclient/XhsProject.cs b/BLL/HStation.BLL.Xhs.Core/02-httpclient/XhsProject.cs new file mode 100644 index 0000000..55966f0 --- /dev/null +++ b/BLL/HStation.BLL.Xhs.Core/02-httpclient/XhsProject.cs @@ -0,0 +1,45 @@ +锘縰sing Yw.CAL.HttpClient; + +namespace HStation.CAL.HttpClient +{ + /// <summary> + /// + /// </summary> + public class XhsProject : BaseCAL_Paras_Flags_TagName_Sorter_UseStatus<AddXhsProjectInput, UpdateXhsProjectInput, XhsProjectDto>, IXhsProject + { + protected override string Prefix + { + get { return $"{HStation.BLL.Xhs.ConfigHelper.HttpUrl}/Xhs/Project"; } + } + + public Task<bool> DeleteEx(long ID) + { + return default; + } + + public class ProjectInputs + { + public AddXhsProjectInput ProjectInput { get; set; } + public AddXhsProjectItemInput ItemInput { get; set; } + public AddXhsProjectItemModelInput ModelInput { get; set; } + public AddXhsProjectItemModelMapInput MapInput { get; set; } + } + + public async Task<long> InsertEx(AddXhsProjectInput projectInput, AddXhsProjectItemInput itemInput, AddXhsProjectItemModelInput modelInput, AddXhsProjectItemModelMapInput MapInput) + { + var posttext = new ProjectInputs + { + ItemInput = itemInput, + ModelInput = modelInput, + MapInput = MapInput, + ProjectInput = projectInput, + }; + return await GetUrl("InsertEx@V1.0").Post<long>(posttext); + } + + public Task<bool> UpdateEx(UpdateXhsProjectInput projectInput, UpdateXhsProjectItemInput itemInput) + { + throw new NotImplementedException(); + } + } +} \ No newline at end of file -- Gitblit v1.9.3