You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

52 lines
1.1 KiB

5 months ago
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;
}
}