chore: initial commit
This commit is contained in:
@@ -0,0 +1,44 @@
|
||||
using Newtonsoft.Json;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Data;
|
||||
using System.Linq;
|
||||
using System.Net.Http;
|
||||
using System.Text;
|
||||
using System.Web;
|
||||
using System.Web.Http;
|
||||
using System.Collections.Concurrent;
|
||||
using Newtonsoft.Json.Linq;
|
||||
using System.Threading;
|
||||
using System.Net;
|
||||
using System.Net.Http.Headers;
|
||||
using System.IO;
|
||||
using MisDataSaveDate;
|
||||
|
||||
namespace MisDataSaveDate
|
||||
{
|
||||
/// <summary>
|
||||
/// AGV接口控制器
|
||||
/// </summary>
|
||||
public class AGVController : ApiController
|
||||
{
|
||||
readonly string headUrl = "agv/";
|
||||
|
||||
/// <summary>
|
||||
/// AGV请求进入离开、下降举升接口(接收方)
|
||||
/// 接收AGV的进入、离开、下降、举升请求并存储到数据库
|
||||
/// </summary>
|
||||
/// <param name="jobj">AGV请求数据</param>
|
||||
/// <returns>处理结果</returns>
|
||||
[HttpPost]
|
||||
[Route("agv/agvReqInOut")]
|
||||
public HttpResponseMessage agvReqInOut([FromBody] JObject jobj)
|
||||
{
|
||||
return new HttpResponseMessage
|
||||
{
|
||||
Content = new StringContent(AGV_BusinessLogic.ProcessAGVEnterRequest(headUrl + System.Reflection.MethodBase.GetCurrentMethod().Name, jobj), Encoding.GetEncoding("UTF-8"), "application/json")
|
||||
};
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user