duheng
2024-08-30 67abe8d2af8cf0a21d915ed62dcc4c738e9adcbc
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
using Yw.CAL;
using Yw.CAL.HttpClient;
 
namespace HStation.CAL.HttpClient
{
    /// <summary>
    ///
    /// </summary>
    public class PumpPropContent : BaseCAL<AddPumpPropContentDto, UpdatePumpPropContentDto, PumpPropContentDto>, IPumpPropContent
    {
        protected override string Prefix
        {
            get { return $"{HStation.BLL.ConfigHelper.HttpUrl}/Assets/PumpPropContent"; }
        }
 
        public async Task<List<PumpPropContentDto>> GetByPumpPartID(long pumpPartId)
        {
            var paras = new List<(string Name, object Value)>()
            {
                (nameof(pumpPartId),pumpPartId)
            };
            return await GetUrl("GetByPumpPartID@V1.0").Get<List<PumpPropContentDto>>(paras);
        }
    }
}