fix: backend change matrix key api to post to fix set failed

This commit is contained in:
2025-05-20 11:21:12 +08:00
parent 390ce8250d
commit b68d8eaf11

View File

@@ -19,7 +19,7 @@ public class MatrixKeyController : ControllerBase
/// <param name="address">设备的IP地址</param> /// <param name="address">设备的IP地址</param>
/// <param name="port">设备的端口号</param> /// <param name="port">设备的端口号</param>
/// <returns>返回操作结果的状态码</returns> /// <returns>返回操作结果的状态码</returns>
[HttpGet("EnabelMatrixKey")] [HttpPost("EnabelMatrixKey")]
[EnableCors("Users")] [EnableCors("Users")]
[ProducesResponseType(typeof(uint), StatusCodes.Status200OK)] [ProducesResponseType(typeof(uint), StatusCodes.Status200OK)]
[ProducesResponseType(typeof(Exception), StatusCodes.Status500InternalServerError)] [ProducesResponseType(typeof(Exception), StatusCodes.Status500InternalServerError)]
@@ -46,7 +46,7 @@ public class MatrixKeyController : ControllerBase
/// <param name="address">设备的IP地址</param> /// <param name="address">设备的IP地址</param>
/// <param name="port">设备的端口号</param> /// <param name="port">设备的端口号</param>
/// <returns>返回操作结果的状态码</returns> /// <returns>返回操作结果的状态码</returns>
[HttpGet("DisableMatrixKey")] [HttpPost("DisableMatrixKey")]
[EnableCors("Users")] [EnableCors("Users")]
[ProducesResponseType(typeof(uint), StatusCodes.Status200OK)] [ProducesResponseType(typeof(uint), StatusCodes.Status200OK)]
[ProducesResponseType(typeof(Exception), StatusCodes.Status500InternalServerError)] [ProducesResponseType(typeof(Exception), StatusCodes.Status500InternalServerError)]
@@ -74,7 +74,7 @@ public class MatrixKeyController : ControllerBase
/// <param name="port">设备的端口号</param> /// <param name="port">设备的端口号</param>
/// <param name="keyStates">矩阵键的状态数组长度应为16</param> /// <param name="keyStates">矩阵键的状态数组长度应为16</param>
/// <returns>返回操作结果的状态码</returns> /// <returns>返回操作结果的状态码</returns>
[HttpGet("SetMatrixKeyStatus")] [HttpPost("SetMatrixKeyStatus")]
[EnableCors("Users")] [EnableCors("Users")]
[ProducesResponseType(typeof(uint), StatusCodes.Status200OK)] [ProducesResponseType(typeof(uint), StatusCodes.Status200OK)]
[ProducesResponseType(typeof(Exception), StatusCodes.Status500InternalServerError)] [ProducesResponseType(typeof(Exception), StatusCodes.Status500InternalServerError)]