From abf3ceabdd98abd0d955b03732e581a43c4e9fb0 Mon Sep 17 00:00:00 2001 From: lixiaojun <1287241240@qq.com> Date: 星期一, 13 一月 2025 15:01:31 +0800 Subject: [PATCH] 解决冲突 --- Yw.BLL.Unit.Core/03-localclient/06-helper/SysUnitHelper.cs | 59 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 59 insertions(+), 0 deletions(-) diff --git a/Yw.BLL.Unit.Core/03-localclient/06-helper/SysUnitHelper.cs b/Yw.BLL.Unit.Core/03-localclient/06-helper/SysUnitHelper.cs new file mode 100644 index 0000000..23617b1 --- /dev/null +++ b/Yw.BLL.Unit.Core/03-localclient/06-helper/SysUnitHelper.cs @@ -0,0 +1,59 @@ +锘縩amespace Yw.CAL.LocalClient +{ + /// <summary> + /// + /// </summary> + public partial class SysUnitHelper : ISysUnitHelper + { + private readonly Yw.Service.SysUnitTransfer _service = new(); + + /// <summary> + /// + /// </summary> + public async Task<string> GetUnitName(string UnitType, string UnitValue, string UnitLang) + { + return await Task.Factory.StartNew(() => + { + return Service.SysUnitHelper.GetUnitName(UnitType, UnitValue, UnitLang); + }); + } + + /// <summary> + /// + /// </summary> + public async Task<List<string>> GetUnitNameList(string UnitType, string UnitLang) + { + return await Task.Factory.StartNew(() => + { + return Service.SysUnitHelper.GetUnitNameList(UnitType, UnitLang); + }); + } + + /// <summary> + /// + /// </summary> + public async Task<Dictionary<string, string>> GetUnitDict(string UnitType, string UnitLang) + { + return await Task.Factory.StartNew(() => + { + return Service.SysUnitHelper.GetUnitDict(UnitType, UnitLang); + }); + } + + /// <summary> + /// + /// </summary> + public async Task<double> Transfer(string UnitType, string FromUnitValue, string ToUnitValue, double FromValue) + { + return await Task.Factory.StartNew(() => + { + return Service.SysUnitHelper.Transfer(FromValue, UnitType, FromUnitValue, ToUnitValue); + }); + } + + + + + + } +} \ No newline at end of file -- Gitblit v1.9.3