wanshenmean
2024-10-21 2187fcbff389c2a7cc799845410580b37abfe921
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
45
46
47
using Masuit.Tools;
using WIDESEA_Common;
using WIDESEA_DTO;
using WIDESEA_IStoragIntegrationServices;
 
namespace WIDESEA_StoragIntegrationServices;
 
public class CellStateService : ICellStateService
{
    /// <summary>
    /// 单电芯属性获取
    /// </summary>
    /// <param name="input">电芯数据</param>
    /// <returns></returns>
    public async Task<dynamic> GetCellStateAsync(CellStateDto input)
    {
        try
        {
            var inputJson = input.ToDictionary();
            var x = await HttpsClient.PostAsync("https://localhost:7251/api/CellState/GetCellState", inputJson);
        }
        catch (Exception err)
        {
            Console.WriteLine(err.Message.ToString());
        }
        return Task.FromResult<dynamic>(null);
    }
 
    /// <summary>
    /// 整盘电芯属性获取
    /// </summary>
    /// <param name="input">电芯数据</param>
    /// <returns></returns>
    public async Task<dynamic> GetTrayCellStatusAsync(TrayCellsStatusDto input)
    {
        try
        {
            var inputJson = input.ToDictionary();
            var x = await HttpsClient.PostAsync("https://localhost:7251/api/CellState/GetCellState", inputJson);
        }
        catch (Exception err)
        {
            Console.WriteLine(err.Message.ToString());
        }
        return Task.FromResult<dynamic>(null);
    }
}