fix get参数问题处理

This commit is contained in:
2025-02-24 14:46:51 +08:00
parent 1dbeefd0ea
commit 19df0242a6

View File

@@ -133,7 +133,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);
}