diff --git a/WebStarter/Controllers/TBoxController.cs b/WebStarter/Controllers/TBoxController.cs new file mode 100644 index 0000000..7ac0ede --- /dev/null +++ b/WebStarter/Controllers/TBoxController.cs @@ -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; + +/// +/// 车辆管理 +/// +[ApiController] +[Route("[controller]")] +public class TBoxController : ControllerBase +{ + private static readonly ILog Log = LogManager.GetLogger(typeof(TBoxController)); + + /// + /// 加锁 + /// + /// vin码 + /// + [HttpGet("/lock/{carNo}")] + public bool Lock() + { + Log.Info($"Lock"); + return false; + } + + /// + /// 解锁 + /// + /// vin码 + /// + [HttpGet("/unLock/{carNo}")] + public bool UnLock(string carNo) + { + Log.Info($"UnLock {carNo}"); + return false; + } + /// + /// 重启 + /// + /// + [HttpGet("/Restart")] + public bool Restart() + { + Log.Info($"Restart"); + return false; + } +} \ No newline at end of file