tbox controller

master
CZ 5 months ago
parent c592bf200d
commit adca1401eb

@ -0,0 +1,52 @@
using HybirdFrameworkDriver.Session;
using log4net;
using Microsoft.AspNetCore.Mvc;
using Service.Car.Server;
using Service.TBox.Msg.Host;
using Service.TBox.Server;
namespace WebStarter.Controllers;
/// <summary>
/// 车辆管理
/// </summary>
[ApiController]
[Route("[controller]")]
public class TBoxController : ControllerBase
{
private static readonly ILog Log = LogManager.GetLogger(typeof(TBoxController));
/// <summary>
/// 加锁
/// </summary>
/// <param name="carNo">vin码</param>
/// <returns></returns>
[HttpGet("/lock/{carNo}")]
public bool Lock()
{
Log.Info($"Lock");
return false;
}
/// <summary>
/// 解锁
/// </summary>
/// <param name="carNo">vin码</param>
/// <returns></returns>
[HttpGet("/unLock/{carNo}")]
public bool UnLock(string carNo)
{
Log.Info($"UnLock {carNo}");
return false;
}
/// <summary>
/// 重启
/// </summary>
/// <returns></returns>
[HttpGet("/Restart")]
public bool Restart()
{
Log.Info($"Restart");
return false;
}
}
Loading…
Cancel
Save