duheng
2024-12-03 2fffcba2e248eeb287acdd305ec7e6a5d50ab3a4
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
using Flurl.Http;
using HStation.Dto;
using Yw;
using Yw.CAL.HttpClient;
using Yw.Untity;
 
namespace HStation.CAL.HttpClient
{
    /// <summary>
    /// 流量计
    ///</summary>
    public class AssetsFlowmeterMain : BaseCAL_Paras_Flags_TagName_Sorter<AddAssetsFlowmeterMainInput, UpdateAssetsFlowmeterMainInput, AssetsFlowmeterMainDto>, IAssetsFlowmeterMain
    {
        protected override string Prefix
        {
            get { return $"{HStation.BLL.ConfigHelper.HttpUrl}/AssetsFlowmeterMain"; }
        }
 
        /// <summary>
        /// 判断TagName是否存在
        /// </summary>
        public async Task<bool> IsExistTagName(string TagName)
        {
            var paras = new List<(string Name, object Value)>()
            {
                (nameof(TagName),TagName)
            };
            return await GetUrl("IsExistTagName@V1.0").Get<bool>(paras);
        }
 
        /// <summary>
        /// 判断TagName是否存在 ExceptID
        /// </summary>
        public async Task<bool> IsExistTagNameExceptID(string TagName, long ExceptID)
        {
            var paras = new List<(string Name, object Value)>()
            {
                (nameof(TagName),TagName),
                (nameof(ExceptID),ExceptID)
            };
            return await GetUrl("IsExistTagNameExceptID@V1.0").Get<bool>(paras);
        }
    }
}