fix fromRoute

This commit is contained in:
2025-10-11 13:50:03 +08:00
parent 7402d75ed2
commit 5d468fe23c

View File

@@ -72,7 +72,7 @@ public class AssignmentsController : ControllerBase
[AllowAnonymous] [AllowAnonymous]
[HttpPost("balance/calc/{month:int}")] [HttpPost("balance/calc/{month:int}")]
[IgnoreTenant] [IgnoreTenant]
public async Task Calc([FromQuery] int month) public async Task Calc([FromRoute] int month)
{ {
if (month is < 1 or > 12) if (month is < 1 or > 12)
{ {