修复升级.net 9后webapi controller参数为空

This commit is contained in:
wintel
2024-12-02 20:52:35 +08:00
parent b17be2c2a0
commit beaf0e5200
23 changed files with 56 additions and 56 deletions

View File

@@ -41,7 +41,7 @@ namespace OpenAuth.WebApi.Controllers
//添加
[HttpPost]
public Response<string> Add(AddOrUpdateSysPrinterPlanReq obj)
public Response<string> Add([FromBody] AddOrUpdateSysPrinterPlanReq obj)
{
var result = new Response<string>();
try
@@ -103,7 +103,7 @@ namespace OpenAuth.WebApi.Controllers
//修改
[HttpPost]
public Response Update(AddOrUpdateSysPrinterPlanReq obj)
public Response Update([FromBody] AddOrUpdateSysPrinterPlanReq obj)
{
var result = new Response();
try