using DataCapture_MA.HttpHelper;
|
using DataCapture_MA.Util;
|
using System;
|
using System.Collections.Generic;
|
using System.Linq;
|
using System.Text;
|
using System.Threading.Tasks;
|
|
namespace DataCapture_MA.Mes
|
{
|
public class MesApiRequest
|
{
|
|
/// <summary>
|
/// AGV根路由
|
/// </summary>
|
private static string mesHost = ConfigHelper.GetConfigString("mesHost");
|
private static string warningApi = ConfigHelper.GetConfigString("warningApi");
|
private static string equipmentStatusApi = ConfigHelper.GetConfigString("equipmentStatusApi");
|
private static string equipmentInfoApi = ConfigHelper.GetConfigString("equipmentInfoApi");
|
|
public static MesResult PushEquipmentWarning<T>(T input)
|
{
|
var agvResult = HttpRequesHelper.PostHttpRequest<T, MesResult>(mesHost, warningApi, input, null, false);
|
return agvResult;
|
}
|
|
public static MesResult PushEquipmentStatus<T>(T input)
|
{
|
var agvResult = HttpRequesHelper.PostHttpRequest<T, MesResult>(mesHost, equipmentStatusApi, input, null, false);
|
return agvResult;
|
}
|
|
|
public static MesResult PushEquipmentInfo<T>(T input)
|
{
|
var agvResult = HttpRequesHelper.PostHttpRequest<T, MesResult>(mesHost, equipmentInfoApi, input, null, false);
|
return agvResult;
|
}
|
}
|
}
|