fix get参数问题处理

This commit is contained in:
2025-02-24 14:46:51 +08:00
parent 657aa63d0f
commit f2f03e8685

View File

@@ -134,7 +134,7 @@ public class WorkGridsController : ControllerBase
/// <param name="date"></param>
/// <returns></returns>
[HttpGet("user/schedule/list")]
public async Task<List<WorkGridScheduleResponse>> GetListAsync(Guid workGridCode, DateOnly date)
public async Task<List<WorkGridScheduleResponse>> GetListAsync([FromQuery] Guid workGridCode, [FromQuery] DateOnly date)
{
return await _workGridScheduleService.GetListAsync(workGridCode, date);
}