using System;
|
using System.Collections.Generic;
|
using System.Text;
|
using WIDESEA.Common;
|
using WIDESEA.Core.Utilities;
|
using WIDESEA_Common;
|
using WIDESEA_Entity.CustomModels.RGVModel;
|
|
namespace WIDESEA_Services.Services.APIInvoke.RGV
|
{
|
public class RGVAPIInvokeGetRgvInfo
|
{
|
|
/// <summary>
|
/// 获取RGV小车状态
|
/// </summary>
|
/// <param name="model"></param>
|
/// <returns></returns>
|
public static WebResponseContent GetRgvInfo()
|
{
|
WebResponseContent content = new WebResponseContent();
|
try
|
{
|
Dictionary<string, string> model = new Dictionary<string, string>();
|
model.Add("rgvId",null);
|
content = HttpHelper<Dictionary<string, string>>.PostHttpRequestDataToRGV(model, WCSAPIAddress.RgvIPAddress + WCSAPIAddress.GetRgvInfos);
|
if (!content.Status)
|
{
|
throw new Exception($"给RGV下发任务调用失败:" + content.Message);
|
}
|
content.OK(data:content.Data);
|
}
|
catch (Exception ex)
|
{
|
content.Error(ex.Message);
|
}
|
|
return content;
|
}
|
}
|
}
|