qinchaoyue 4 hónapja
szülő
commit
4bd8243fd0

+ 2 - 2
src/Hotline.Api/Controllers/Snapshot/IndustryController.cs

@@ -279,7 +279,7 @@ public class IndustryController : BaseController
     /// <param name="dto"></param>
     /// <returns></returns>
     [HttpPut("volunteer")]
-    public async Task UpdateVolunteerAsync(UpdateVolunteerInDto dto)
+    public async Task UpdateVolunteerAsync([FromBody]UpdateVolunteerInDto dto)
         => await _industryApplication.UpdateVolunteerAsync(dto);
 
     /// <summary>
@@ -288,7 +288,7 @@ public class IndustryController : BaseController
     /// <param name="dto"></param>
     /// <returns></returns>
     [HttpGet("volunteer/report")]
-    public async Task<PagedDto<VolunteerReportItemsOutDto>> GetVolunteerReportItemsAsync(VolunteerReportItemsInDto dto)
+    public async Task<PagedDto<VolunteerReportItemsOutDto>> GetVolunteerReportItemsAsync([FromQuery]VolunteerReportItemsInDto dto)
         => (await _industryApplication.GetVolunteerReportItemsAsync(dto).ToPagedListAsync(dto)).ToPaged();
     #endregion
 }