lixiaojun
2024-12-19 1dd158434a41627a6684cd630b2696fb83b1e3d6
BLL/HStation.BLL.Assets.Core/02-httpclient/17-flowmeter/01-series/AssetsFlowmeterSeries.cs
ÎļþÃû´Ó BLL/HStation.BLL.Assets.Core/02-httpclient/17-Flowmeter/AssetsFlowmeterSeries.cs ÐÞ¸Ä
@@ -1,32 +1,20 @@
using Flurl.Http;
using HStation.Dto;
using Yw;
using Yw.CAL.HttpClient;
using Yw.Untity;
using Yw.CAL.HttpClient;
namespace HStation.CAL.HttpClient
{
    /// <summary>
    /// æµé‡è®¡ç³»åˆ—
    ///</summary>
    ///
    /// </summary>
    public class AssetsFlowmeterSeries : BaseCAL_Paras_Flags_TagName_TreeSorter<AddAssetsFlowmeterSeriesInput, UpdateAssetsFlowmeterSeriesInput, AssetsFlowmeterSeriesDto>, IAssetsFlowmeterSeries
    {
        protected override string Prefix
        {
            get { return $"{HStation.BLL.Assets.ConfigHelper.HttpUrl}/AssetsFlowmeterSeries"; }
            get { return $"{ConfigHelper.HttpUrl}/Assets/Flowmeter/Series"; }
        }
        /// <summary>
        /// æ›´æ–°æ ‘排序码
        /// </summary>
        public async Task<bool> UpdateTreeSortCode(long ID, List<long> ParentIds, int SortCode)
        {
            var paras = new { ID, ParentIds = Yw.Untity.LongListHelper.ToString(ParentIds), SortCode };
            return await GetUrl("UpdateTreeSortCode@V1.0").Put<bool>(paras);
        }
        /// <summary>
        /// åˆ¤æ–­TagName是否存在
        ///
        /// </summary>
        public async Task<bool> IsExistTagName(string TagName)
        {
@@ -38,7 +26,7 @@
        }
        /// <summary>
        /// åˆ¤æ–­TagName是否存在 ExceptID
        ///
        /// </summary>
        public async Task<bool> IsExistTagNameExceptID(string TagName, long ExceptID)
        {
@@ -49,5 +37,7 @@
            };
            return await GetUrl("IsExistTagNameExceptID@V1.0").Get<bool>(paras);
        }
    }
}