fix 参数来源

This commit is contained in:
2024-03-24 21:49:40 +08:00
parent 9cd35d4277
commit 0eb099e7a1

View File

@@ -52,7 +52,7 @@ public class GainfosController : ControllerBase
/// <param name="code"></param>
/// <returns></returns>
[HttpPost("page-all")]
public async Task<Pagination<GainfoAllPageResponse>> GetPageByCodeAsync(string code)
public async Task<Pagination<GainfoAllPageResponse>> GetPageByCodeAsync([FromBody] string code)
{
return await _gainfoService.GetPageByCodeAsync(code);
}