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

This commit is contained in:
SikongJueluo 2025-05-20 11:21:12 +08:00
parent 5bb011e685
commit 7b1d1a5e87
No known key found for this signature in database
1 changed files with 3 additions and 3 deletions

View File

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