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.
24 lines
485 B
24 lines
485 B
using Microsoft.AspNetCore.Mvc;
|
|
using Service.Led;
|
|
|
|
namespace WebStarter.Controllers;
|
|
|
|
/// <summary>
|
|
/// led测试工具
|
|
/// </summary>
|
|
[ApiController]
|
|
[Route("api/[controller]")]
|
|
public class LedController
|
|
{
|
|
/// <summary>
|
|
/// 发送led提示
|
|
/// </summary>
|
|
/// <param name="key">houtui,qianjin,xiangzuo</param>
|
|
/// <returns></returns>
|
|
[HttpGet("SendBy/{key}")]
|
|
public bool SendByKey(string key)
|
|
{
|
|
return LedClient.SendMsgByKey(key);
|
|
}
|
|
}
|