From adca1401eb0510d26aa873e6b81e13e70f78e5b1 Mon Sep 17 00:00:00 2001 From: CZ Date: Tue, 18 Jun 2024 11:34:35 +0800 Subject: [PATCH] tbox controller --- WebStarter/Controllers/TBoxController.cs | 52 ++++++++++++++++++++++++ 1 file changed, 52 insertions(+) create mode 100644 WebStarter/Controllers/TBoxController.cs 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