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
| using Yw.CAL.HttpClient;
|
| namespace HStation.CAL.HttpClient
| {
| /// <summary>
| ///
| /// </summary>
| public class AssetsPumpSeries : BaseCAL_Paras_Flags_TagName_Sorter<AddAssetsPumpSeriesInput, UpdateAssetsPumpSeriesInput, AssetsPumpSeriesDto>, IAssetsPumpSeries
| {
| protected override string Prefix
| {
| get { return $"{HStation.BLL.Assets.ConfigHelper.HttpUrl}/Assets/AssetsPumpSeries"; }
| }
|
| public async Task<bool> UpdateUseStatus(long ID, int UseStatus)
| {
| var paras = new List<(string Name, object Value)>()
| {
| (nameof(ID),ID),
| (nameof(UseStatus),UseStatus)
| };
| return await GetUrl("UpdateUseStatus@V1.0").Put<bool>(paras);
| }
|
| public async Task<bool> DeleteEx(long ID)
| {
| var paras = new List<(string Name, object Value)>()
| {
| (nameof(ID),ID)
| };
| return await GetUrl("DeleteEx@V1.0").Delete<bool>(paras);
| }
| }
| }
|
|